electrobun 0.13.0-beta.2 → 0.13.0-beta.4
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/package.json +1 -1
- package/src/cli/index.ts +4 -1
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -1036,7 +1036,10 @@ if (commandArg === "init") {
|
|
|
1036
1036
|
const targetOS = currentTarget.os;
|
|
1037
1037
|
const targetARCH = currentTarget.arch;
|
|
1038
1038
|
const targetBinExt = targetOS === 'win' ? '.exe' : '';
|
|
1039
|
-
|
|
1039
|
+
// Format: MyApp (stable) or MyApp-canary (non-stable)
|
|
1040
|
+
const appFileName = buildEnvironment === "stable"
|
|
1041
|
+
? config.app.name.replace(/ /g, "")
|
|
1042
|
+
: `${config.app.name.replace(/ /g, "")}-${buildEnvironment}`;
|
|
1040
1043
|
const buildSubFolder = `${buildEnvironment}-${currentTarget.os}-${currentTarget.arch}`;
|
|
1041
1044
|
const buildFolder = join(projectRoot, config.build.buildFolder, buildSubFolder);
|
|
1042
1045
|
const bundleFileName = targetOS === 'macos' ? `${appFileName}.app` : appFileName;
|