react-native-bspatch 1.0.8 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/lib/commonjs/ota/OtaProvider.js +27 -4
- package/lib/commonjs/ota/OtaProvider.js.map +1 -1
- package/lib/commonjs/ota/otaAssetResolver.js +14 -4
- package/lib/commonjs/ota/otaAssetResolver.js.map +1 -1
- package/lib/commonjs/ota/otaCore.js +4 -0
- package/lib/commonjs/ota/otaCore.js.map +1 -1
- package/lib/commonjs/ota/otaMetadata.js +3 -0
- package/lib/commonjs/ota/otaMetadata.js.map +1 -1
- package/lib/commonjs/ota/types.js.map +1 -1
- package/lib/module/ota/OtaProvider.js +27 -4
- package/lib/module/ota/OtaProvider.js.map +1 -1
- package/lib/module/ota/otaAssetResolver.js +14 -4
- package/lib/module/ota/otaAssetResolver.js.map +1 -1
- package/lib/module/ota/otaCore.js +4 -0
- package/lib/module/ota/otaCore.js.map +1 -1
- package/lib/module/ota/otaMetadata.js +3 -0
- package/lib/module/ota/otaMetadata.js.map +1 -1
- package/lib/module/ota/types.js.map +1 -1
- package/lib/typescript/ota/OtaProvider.d.ts.map +1 -1
- package/lib/typescript/ota/otaAssetResolver.d.ts.map +1 -1
- package/lib/typescript/ota/otaCore.d.ts.map +1 -1
- package/lib/typescript/ota/otaMetadata.d.ts.map +1 -1
- package/lib/typescript/ota/types.d.ts +5 -0
- package/lib/typescript/ota/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ota/OtaProvider.tsx +34 -4
- package/src/ota/otaAssetResolver.ts +15 -5
- package/src/ota/otaCore.ts +8 -0
- package/src/ota/otaMetadata.ts +4 -0
- package/src/ota/types.ts +5 -0
- package/tools/build_ota.sh +29 -16
- package/tools/update_registry.js +0 -47
- package/tools/upload_ota_custom.sh +4 -4
|
@@ -94,8 +94,8 @@ if [[ "$BASE_URL" == *"github"* ]] || [[ "$BASE_URL" == *"raw.githubusercontent"
|
|
|
94
94
|
|
|
95
95
|
# 2. Copy generated files into storage repo (or reset remote)
|
|
96
96
|
if [ "$CLEAN_REMOTE" = true ]; then
|
|
97
|
-
echo " Resetting remote storage state..."
|
|
98
|
-
rm -rf "$GH_REPO_DIR/$BASE_FOLDER/$APP_VERSION"
|
|
97
|
+
echo " Resetting remote storage state for channel '$CHANNEL'..."
|
|
98
|
+
rm -rf "$GH_REPO_DIR/$BASE_FOLDER/$APP_VERSION/$CHANNEL"
|
|
99
99
|
mkdir -p "$GH_REPO_DIR/$BASE_FOLDER"
|
|
100
100
|
cp "$REGISTRY_FILE" "$GH_REPO_DIR/$BASE_FOLDER/ota_registry.json"
|
|
101
101
|
cp "$REGISTRY_FILE" "$GH_REPO_DIR/ota_registry.json" 2>/dev/null || true
|
|
@@ -103,8 +103,8 @@ if [[ "$BASE_URL" == *"github"* ]] || [[ "$BASE_URL" == *"raw.githubusercontent"
|
|
|
103
103
|
TARGET_RELEASE_DIR="$GH_REPO_DIR/$BASE_FOLDER/$APP_VERSION/$CHANNEL"
|
|
104
104
|
mkdir -p "$TARGET_RELEASE_DIR"
|
|
105
105
|
|
|
106
|
-
echo " Copying release files to storage repo..."
|
|
107
|
-
for FILE in "$OUTPUT_DIR"
|
|
106
|
+
echo " Copying release files to storage repo for channel '$CHANNEL'..."
|
|
107
|
+
for FILE in "$OUTPUT_DIR"/*_${CHANNEL}.json "$OUTPUT_DIR"/*_${CHANNEL}.hbc "$OUTPUT_DIR"/*_${CHANNEL}_*.patch "$OUTPUT_DIR"/*_${CHANNEL}.patch; do
|
|
108
108
|
[[ -f "$FILE" ]] || continue
|
|
109
109
|
FNAME=$(basename "$FILE")
|
|
110
110
|
cp "$FILE" "$TARGET_RELEASE_DIR/$FNAME"
|