electron-version-deployer-cli 0.1.3 → 0.1.5
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 +5 -3
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -424,7 +424,7 @@ const _Cloudflare = class {
|
|
|
424
424
|
const chunkCount = Math.ceil(fileSizeInMB / SPLIT_SIZE);
|
|
425
425
|
const splitZipsFileName = [];
|
|
426
426
|
const fileBuffer = node_fs.readFileSync(fullCodeZipPath);
|
|
427
|
-
const fileName = fullCodeZipPath.split(
|
|
427
|
+
const fileName = fullCodeZipPath.split(node_path.sep).pop().split(".");
|
|
428
428
|
const fileExtension = fileName.pop();
|
|
429
429
|
const baseFileName = fileName.join(".");
|
|
430
430
|
for (let i = 0; i < chunkCount; i++) {
|
|
@@ -453,7 +453,9 @@ const _Cloudflare = class {
|
|
|
453
453
|
"deploy",
|
|
454
454
|
props.folder,
|
|
455
455
|
"--project-name",
|
|
456
|
-
cloudflareConfig.projectName
|
|
456
|
+
cloudflareConfig.projectName,
|
|
457
|
+
"--branch",
|
|
458
|
+
"main"
|
|
457
459
|
], {
|
|
458
460
|
stdio: ["pipe", "inherit", "inherit"],
|
|
459
461
|
env: {
|
|
@@ -603,4 +605,4 @@ async function installPrebuilt(configs) {
|
|
|
603
605
|
}
|
|
604
606
|
commander.program.description(
|
|
605
607
|
"Electron 版本部署 CLI,简化你的 Electron 软件更新,让一切变得简单。"
|
|
606
|
-
).helpOption("-h, --help", "使用帮助").version("0.1.
|
|
608
|
+
).helpOption("-h, --help", "使用帮助").version("0.1.5", "-V, --version", "显示版本号").parse(process.argv);
|