@renbostudios/edge-ota 0.2.4 → 0.2.6
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/dist/index.js +4 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -228,18 +228,8 @@ program
|
|
|
228
228
|
let projectId = options.project;
|
|
229
229
|
if (!serverUrl) {
|
|
230
230
|
console.log(` ${colors.dim}no --server flag provided${colors.reset}`);
|
|
231
|
-
const answer = await askQuestion(` server url [
|
|
232
|
-
|
|
233
|
-
serverUrl = "http://localhost:3000";
|
|
234
|
-
}
|
|
235
|
-
else if (answer.toLowerCase().includes("host")) {
|
|
236
|
-
console.log(` ${colors.yellow}hint${colors.reset} use your hosted EdgeOTA instance (e.g. https://api.edge-ota.renbo.site)`);
|
|
237
|
-
const hostedAnswer = await askQuestion(` hosted server url: `);
|
|
238
|
-
serverUrl = hostedAnswer.trim() || "http://localhost:3000";
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
serverUrl = answer;
|
|
242
|
-
}
|
|
231
|
+
const answer = await askQuestion(` server url [https://api.edge-ota.renbo.site]: `);
|
|
232
|
+
serverUrl = answer.trim() || "https://api.edge-ota.renbo.site";
|
|
243
233
|
}
|
|
244
234
|
if (!projectId && !options.server) {
|
|
245
235
|
const pAnswer = await askQuestion(` project id (optional, press Enter to skip): `);
|
|
@@ -351,7 +341,8 @@ program
|
|
|
351
341
|
platform,
|
|
352
342
|
bundleHash,
|
|
353
343
|
timestamp: Date.now(),
|
|
354
|
-
assetCount: assets.length
|
|
344
|
+
assetCount: assets.length,
|
|
345
|
+
publicKey: config.publicKey
|
|
355
346
|
};
|
|
356
347
|
const payloadStr = JSON.stringify(payloadObj);
|
|
357
348
|
console.log(` signing ECDSA P-256`);
|
package/package.json
CHANGED