Revert electron-builder to fix icon (Closes #741)

This commit is contained in:
Gregory Schier 2018-02-14 01:04:39 +08:00
parent 4aa4d7f92d
commit b3e4730718
4 changed files with 1131 additions and 7 deletions

1122
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -17,6 +17,9 @@
"app-package": "lerna run package --stream --scope=insomnia-app"
},
"devDependencies": {
"electron-builder": "^19.47.1",
"electron-builder-lib": "^19.47.1",
"electron-builder-squirrel-windows": "^19.47.0",
"electron-rebuild": "^1.6.0",
"jest": "^22.1.1",
"lerna": "^2.7.1"

View File

@ -6,7 +6,7 @@
"name": "insomnia",
"productName": "Insomnia",
"longName": "Insomnia REST Client",
"version": "5.14.6",
"version": "5.14.7",
"main": "main.min.js"
},
"licence": "MIT",

View File

@ -14,8 +14,12 @@ const PLATFORM_MAP = {
// Start package if ran from CLI
if (require.main === module) {
process.nextTick(async () => {
await buildTask.start();
await module.exports.start();
try {
await buildTask.start();
await module.exports.start();
} catch (err) {
console.warn('ERROR: ', err.stack);
}
});
}
@ -41,8 +45,7 @@ async function pkg (relConfigPath) {
[targetPlatform]: config[targetPlatform].target
});
return packager.build();
} catch
(err) {
} catch (err) {
console.log('[package] Failed: ' + err.stack);
throw err;
}