react-native-custom-ota 1.0.3 → 1.0.4
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/bin/custom-ota.js +1 -0
- package/package.json +1 -1
package/bin/custom-ota.js
CHANGED
|
@@ -161,6 +161,7 @@ async function buildAndPublish(p) {
|
|
|
161
161
|
console.log(`📡 [3/3] Đang upload lên server: ${serverUrl} (App: ${appId})...`);
|
|
162
162
|
const zipBuffer = fs.readFileSync(zipPath);
|
|
163
163
|
manifest.size = zipBuffer.length;
|
|
164
|
+
manifest.sha256 = crypto.createHash("sha256").update(zipBuffer).digest("hex");
|
|
164
165
|
|
|
165
166
|
const url = new URL(`/admin/publish/${appId}/${p}/${version}`, serverUrl);
|
|
166
167
|
const payload = Buffer.from(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-custom-ota",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Self-hosted OTA (Over-The-Air) update library for React Native with automatic rollback, similar to react-native-code-push",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|