mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-24 11:01:17 -08:00
fix(ci): preserve mobile flavor customizations
This commit is contained in:
4 files changed
+12
-12
No files matched your search
@@ -299,13 +299,17 @@ jobs:
|
||||
if: ${{ needs.setup-release.outputs.nightly == 'true' }}
|
||||
shell: bash
|
||||
run: |
|
||||
# Tauri regenerates these files without the LiveKit dependency overrides.
|
||||
cp src-tauri/gen/android/build.gradle.kts "$RUNNER_TEMP/android-build.gradle.kts"
|
||||
cp src-tauri/gen/android/app/build.gradle.kts "$RUNNER_TEMP/android-app-build.gradle.kts"
|
||||
rm -rf src-tauri/gen/android
|
||||
pnpm tauri android init --ci --config src-tauri/tauri.nightly.conf.json
|
||||
cp "$RUNNER_TEMP/android-build.gradle.kts" src-tauri/gen/android/build.gradle.kts
|
||||
cp "$RUNNER_TEMP/android-app-build.gradle.kts" src-tauri/gen/android/app/build.gradle.kts
|
||||
# Tauri requires source files at the configured package path. Overlay the
|
||||
# nightly package rather than regenerating and losing tracked customizations.
|
||||
APP_DIR=src-tauri/gen/android/app
|
||||
NIGHTLY_PACKAGE_DIR="$APP_DIR/src/main/java/moe/sable/client/nightly"
|
||||
NIGHTLY_SOURCE_DIR="$RUNNER_TEMP/android-nightly-package"
|
||||
cp -a "$APP_DIR/src/main/java/moe/sable/client" "$NIGHTLY_SOURCE_DIR"
|
||||
find "$NIGHTLY_SOURCE_DIR" -type f -exec sed -i \
|
||||
's/moe\.sable\.client/moe.sable.client.nightly/g' {} +
|
||||
mv "$NIGHTLY_SOURCE_DIR" "$NIGHTLY_PACKAGE_DIR"
|
||||
sed -i 's/moe\.sable\.client/moe.sable.client.nightly/g' \
|
||||
"$APP_DIR/build.gradle.kts" "$APP_DIR/src/main/AndroidManifest.xml"
|
||||
|
||||
- name: Setup Android signing
|
||||
if: ${{ env.ANDROID_KEY_BASE64 != '' }}
|
||||
@@ -442,12 +446,9 @@ jobs:
|
||||
IS_NIGHTLY: ${{ needs.setup-release.outputs.nightly }}
|
||||
run: |
|
||||
if [ "$IS_NIGHTLY" = "true" ]; then
|
||||
# Tauri does not regenerate this tracked privacy manifest.
|
||||
cp src-tauri/gen/apple/PrivacyInfo.xcprivacy "$RUNNER_TEMP/PrivacyInfo.xcprivacy"
|
||||
rm -rf src-tauri/gen/apple
|
||||
command -v pod >/dev/null 2>&1 || brew install cocoapods
|
||||
pnpm tauri ios init --ci --config src-tauri/tauri.nightly.conf.json
|
||||
cp "$RUNNER_TEMP/PrivacyInfo.xcprivacy" src-tauri/gen/apple/PrivacyInfo.xcprivacy
|
||||
else
|
||||
mise -y run tauri:setup:ios
|
||||
fi
|
||||
|
||||
@@ -43,7 +43,6 @@ src-tauri/target/
|
||||
src-tauri/gen/android/app/build/
|
||||
# Tauri Apple outputs
|
||||
src-tauri/gen/apple/*
|
||||
!src-tauri/gen/apple/PrivacyInfo.xcprivacy
|
||||
# Tauri Android release keystore
|
||||
*.jks
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ targets:
|
||||
{{~#each ios-additional-targets}}
|
||||
- path: {{prefix-path this}}{{/each}}
|
||||
- path: LaunchScreen.storyboard
|
||||
- path: PrivacyInfo.xcprivacy
|
||||
- path: ../../ios/PrivacyInfo.xcprivacy
|
||||
buildPhase: resources
|
||||
# UNNotificationSound resolves names from the bundle root, not tauri's assets/ dir.
|
||||
- path: ../../resources/notification.caf
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user