electrobun 0.1.13-beta.4 → 0.1.13-beta.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli/index.ts +8 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "0.1.13-beta.4",
3
+ "version": "0.1.13-beta.5",
4
4
  "description": "Build ultra fast, tiny, and cross-platform desktop apps with Typescript.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",
package/src/cli/index.ts CHANGED
@@ -1980,13 +1980,15 @@ exec "\$LAUNCHER_BINARY" "\$@"
1980
1980
  artifactsToUpload.push(patchFilePath);
1981
1981
  const result = Bun.spawnSync(
1982
1982
  [bsdiffpath, prevTarballPath, tarPath, patchFilePath, "--use-zstd"],
1983
- { cwd: buildFolder }
1984
- );
1985
- console.log(
1986
- "bsdiff result: ",
1987
- result.stdout.toString(),
1988
- result.stderr.toString()
1983
+ {
1984
+ cwd: buildFolder,
1985
+ stdout: "inherit",
1986
+ stderr: "inherit"
1987
+ }
1989
1988
  );
1989
+ if (!result.success) {
1990
+ throw new Error(`bsdiff failed with exit code ${result.exitCode}`);
1991
+ }
1990
1992
  }
1991
1993
  } else {
1992
1994
  console.log("prevoius version not found at: ", urlToLatestTarball);