electron-version-deployer-cli 0.3.1 → 0.3.2
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 +3 -2
- package/dist/main.js +4 -4
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -382,10 +382,11 @@ const _Netlify = class _Netlify {
|
|
|
382
382
|
throw new Error("netlify 配置为空");
|
|
383
383
|
return new Promise((res) => {
|
|
384
384
|
const cmd = node_os.platform() === "win32" ? "netlify.cmd" : "netlify";
|
|
385
|
+
const folderPath = props.folder.includes(" ") ? `"${props.folder}"` : props.folder;
|
|
385
386
|
const output = node_child_process.spawn(cmd, [
|
|
386
387
|
"deploy",
|
|
387
388
|
"--dir",
|
|
388
|
-
|
|
389
|
+
folderPath,
|
|
389
390
|
"--site",
|
|
390
391
|
netlifyConfig.siteID,
|
|
391
392
|
"--auth",
|
|
@@ -662,4 +663,4 @@ async function installPrebuilt(configs) {
|
|
|
662
663
|
}
|
|
663
664
|
commander.program.description(
|
|
664
665
|
"Electron 版本部署 CLI,简化你的 Electron 软件更新,让一切变得简单。"
|
|
665
|
-
).helpOption("-h, --help", "使用帮助").version("0.3.
|
|
666
|
+
).helpOption("-h, --help", "使用帮助").version("0.3.2", "-V, --version", "显示版本号").parse(process.argv);
|
package/dist/main.js
CHANGED
|
@@ -116,6 +116,10 @@ function EVDInit(props) {
|
|
|
116
116
|
}
|
|
117
117
|
globalArgs = props;
|
|
118
118
|
const { detectionFrequency, detectAtStart, onError } = getConfigs();
|
|
119
|
+
const appPath = electron.app.getAppPath();
|
|
120
|
+
cacheCurrentPkgJSON = JSON.parse(
|
|
121
|
+
node_fs.readFileSync(node_path.join(appPath, "package.json"), "utf-8")
|
|
122
|
+
);
|
|
119
123
|
setInterval(async () => {
|
|
120
124
|
try {
|
|
121
125
|
await EVDCheckUpdate();
|
|
@@ -132,10 +136,6 @@ function EVDInit(props) {
|
|
|
132
136
|
onError(e);
|
|
133
137
|
}
|
|
134
138
|
}, 1e3 * 2);
|
|
135
|
-
const appPath = electron.app.getAppPath();
|
|
136
|
-
cacheCurrentPkgJSON = JSON.parse(
|
|
137
|
-
node_fs.readFileSync(node_path.join(appPath, "package.json"), "utf-8")
|
|
138
|
-
);
|
|
139
139
|
}
|
|
140
140
|
async function EVDCheckUpdate() {
|
|
141
141
|
const { remoteUrl } = getConfigs();
|