electron-version-deployer-cli 0.0.6 → 0.0.7
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/cli.cjs +1 -1
- package/dist/main.js +1 -2
- package/dist/templates/newVersionDialog.html +3 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -495,4 +495,4 @@ async function installPrebuilt(configs) {
|
|
|
495
495
|
}
|
|
496
496
|
commander.program.description(
|
|
497
497
|
"Electron 版本部署 CLI,简化你的 Electron 软件更新,让一切变得简单。"
|
|
498
|
-
).helpOption("-h, --help", "使用帮助").version("0.0.
|
|
498
|
+
).helpOption("-h, --help", "使用帮助").version("0.0.7", "-V, --version", "显示版本号").parse(process.argv);
|
package/dist/main.js
CHANGED
|
@@ -178,7 +178,7 @@ async function installNewVersion() {
|
|
|
178
178
|
cacheCurrentPkgJSON.dependencies
|
|
179
179
|
);
|
|
180
180
|
try {
|
|
181
|
-
await installPkg(needInstallFullSize ? "fullCode.zip" : "logicCode.zip");
|
|
181
|
+
await installPkg(!needInstallFullSize ? "fullCode.zip" : "logicCode.zip");
|
|
182
182
|
} catch (error) {
|
|
183
183
|
onError(error);
|
|
184
184
|
}
|
|
@@ -222,7 +222,6 @@ function bindEvent(promptWindow) {
|
|
|
222
222
|
});
|
|
223
223
|
electron.ipcMain.on("evd-update-now", (_) => {
|
|
224
224
|
installNewVersion().then(() => {
|
|
225
|
-
console.log(222);
|
|
226
225
|
promptWindow.close();
|
|
227
226
|
electron.app.relaunch();
|
|
228
227
|
electron.app.exit();
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
href="https://chat.openai.com/favicon-32x32.png"
|
|
14
14
|
/>
|
|
15
15
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
|
16
|
-
<title
|
|
16
|
+
<title>有可用的更新</title>
|
|
17
17
|
<style>
|
|
18
18
|
* {
|
|
19
19
|
margin: 0;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.title-bar img {
|
|
98
|
-
margin-right:
|
|
98
|
+
margin-right: 12px;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
.loading-box {
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
<body>
|
|
118
118
|
<div class="loading-box">软件更新中……</div>
|
|
119
119
|
<div class="title-bar">
|
|
120
|
-
<img src="" width="
|
|
120
|
+
<img src="" width="34" class="logo" style="display: none" />
|
|
121
121
|
<span>有可用的新版本:</span>
|
|
122
122
|
</div>
|
|
123
123
|
<div class="content">具体更新内容请查看 Changelogs</div>
|