sparkbun 0.2.8 → 0.2.9

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/package.json +1 -1
  2. package/src/cli/index.ts +8 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sparkbun",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Build fast, lightweight, cross-platform desktop apps with TypeScript and Bun.",
5
5
  "license": "MIT",
6
6
  "author": "SparkBun Contributors",
package/src/cli/index.ts CHANGED
@@ -4465,8 +4465,14 @@ ${archiveExports.join("\n")}
4465
4465
 
4466
4466
  const setupFileName = isWindows
4467
4467
  ? getWindowsSetupFileName(config.app.name, buildEnvironment)
4468
- : _appFileName;
4469
- const outputPath = join(buildFolder, setupFileName + (isWindows ? "" : ""));
4468
+ // Linux has no extension to set the installer apart from the
4469
+ // self-extracting app bundle directory (created above at
4470
+ // buildFolder/<appFileName>). Without a suffix the Bun.build outfile
4471
+ // resolves to that exact directory and the compile aborts with
4472
+ // "<name> is a directory". The "-Setup" suffix matches the naming the
4473
+ // standalone `installer` command and getLinuxAppImageBaseName use.
4474
+ : `${_appFileName}-Setup`;
4475
+ const outputPath = join(buildFolder, setupFileName);
4470
4476
 
4471
4477
  console.log(`Creating ${isWindows ? "Windows" : "Linux"} installer via Bun.build()...`);
4472
4478