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.
Files changed (2) hide show
  1. package/dist/cli.cjs +11 -1
  2. 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.14", "-V, --version", "显示版本号").parse(process.argv);
510
+ ).helpOption("-h, --help", "使用帮助").version("0.0.15", "-V, --version", "显示版本号").parse(process.argv);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "electron-version-deployer-cli",
3
3
  "private": false,
4
- "version": "0.0.14",
4
+ "version": "0.0.15",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.es.js",