electron-version-deployer-cli 0.0.14 → 0.0.15
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 +11 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -266,6 +266,16 @@ async function copySourceAndZipFiles(configs) {
|
|
|
266
266
|
]);
|
|
267
267
|
await archiveFiles(logicCodeZipPath, [codesPath, packageJSONPath]);
|
|
268
268
|
node_fs.copyFileSync(packageJSONPath, r("node_modules/.evd/package.json"));
|
|
269
|
+
node_fs.writeFileSync(
|
|
270
|
+
r("node_modules/.evd/netlify.toml"),
|
|
271
|
+
`[[headers]]
|
|
272
|
+
for = "/*"
|
|
273
|
+
[headers.values]
|
|
274
|
+
Access-Control-Allow-Origin = "*"
|
|
275
|
+
Access-Control-Allow-Methods = "*"
|
|
276
|
+
Access-Control-Allow-Headers = "*"`,
|
|
277
|
+
"utf-8"
|
|
278
|
+
);
|
|
269
279
|
console.log(logSymbols.success, "更新包创建成功!");
|
|
270
280
|
}
|
|
271
281
|
async function genChangelog(configs) {
|
|
@@ -497,4 +507,4 @@ async function installPrebuilt(configs) {
|
|
|
497
507
|
}
|
|
498
508
|
commander.program.description(
|
|
499
509
|
"Electron 版本部署 CLI,简化你的 Electron 软件更新,让一切变得简单。"
|
|
500
|
-
).helpOption("-h, --help", "使用帮助").version("0.0.
|
|
510
|
+
).helpOption("-h, --help", "使用帮助").version("0.0.15", "-V, --version", "显示版本号").parse(process.argv);
|