refactor(build): streamline prebuild and build scripts for consistency

This commit is contained in:
zimplexing
2025-08-13 21:23:51 +08:00
parent 250c42e1ff
commit 108c20cd26
2 changed files with 5 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ jobs:
java-version: "17" java-version: "17"
- name: Prebuild TV App - name: Prebuild TV App
run: yarn prebuild-tv run: yarn prebuild
- name: Build TV APK - name: Build TV APK
run: yarn build-tv run: yarn build-tv
@@ -72,7 +72,7 @@ jobs:
java-version: "17" java-version: "17"
- name: Prebuild Mobile App - name: Prebuild Mobile App
run: yarn prebuild-mobile run: yarn prebuild
- name: Build Mobile APK - name: Build Mobile APK
run: yarn build-mobile run: yarn build-mobile

View File

@@ -13,13 +13,11 @@
"ios": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo run:ios", "ios": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo run:ios",
"ios-tv": "EXPO_TV=1 EXPO_USE_METRO_WORKSPACE_ROOT=1 expo run:ios", "ios-tv": "EXPO_TV=1 EXPO_USE_METRO_WORKSPACE_ROOT=1 expo run:ios",
"ios-mobile": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo run:ios --device", "ios-mobile": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo run:ios --device",
"prebuild": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo prebuild --clean", "prebuild": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo prebuild --clean && yarn copy-config",
"prebuild-tv": "EXPO_TV=1 EXPO_USE_METRO_WORKSPACE_ROOT=1 expo prebuild --clean && yarn copy-config",
"prebuild-mobile": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo prebuild --clean --platform android",
"copy-config": "cp -r xml/* android/app/src/*", "copy-config": "cp -r xml/* android/app/src/*",
"build": "cd android && ./gradlew assembleRelease", "build": "cd android && ./gradlew assembleRelease",
"build-tv": "EXPO_TV=1 yarn prebuild-tv && cd android && ./gradlew assembleRelease", "build-tv": "EXPO_TV=1 yarn prebuild && cd android && ./gradlew assembleRelease",
"build-mobile": "yarn prebuild-mobile && cd android && ./gradlew assembleRelease", "build-mobile": "yarn prebuild && cd android && ./gradlew assembleRelease",
"build-debug": "cd android && ./gradlew assembleDebug", "build-debug": "cd android && ./gradlew assembleDebug",
"test": "jest --watchAll", "test": "jest --watchAll",
"test-ci": "jest --ci --coverage --no-cache", "test-ci": "jest --ci --coverage --no-cache",