electrobun 1.14.2-beta.0 → 1.14.3

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 +3 -3
  2. package/src/cli/index.ts +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "1.14.2-beta.0",
3
+ "version": "1.14.3",
4
4
  "description": "Build ultra fast, tiny, and cross-platform desktop apps with Typescript.",
5
5
  "license": "MIT",
6
6
  "author": "Blackboard Technologies Inc.",
@@ -35,8 +35,8 @@
35
35
  "dev:canary": "bun install && bun build:release && cd ../kitchen && bun install && bun build:canary",
36
36
  "dev:stable": "bun install && bun build:release && cd ../kitchen && bun install && bun build:stable",
37
37
  "build:docs:release": "cd ../documentation && bun run build",
38
- "npm:publish": "bun build:release && npm publish",
39
- "npm:publish:beta": "bun build:release && npm publish --tag beta",
38
+ "npm:publish": "bun build:release && cp ../README.md . && npm publish && rm README.md",
39
+ "npm:publish:beta": "bun build:release && cp ../README.md . && npm publish --tag beta && rm README.md",
40
40
  "typecheck": "bunx tsc --noEmit && cd ../kitchen && bunx tsc --noEmit",
41
41
  "push:beta": "bun run typecheck && bun scripts/push-version.js beta",
42
42
  "push:patch": "bun run typecheck && bun scripts/push-version.js patch",
package/src/cli/index.ts CHANGED
@@ -1498,8 +1498,12 @@ ${schemesXml}
1498
1498
  // Create directory if it doesn't exist
1499
1499
  mkdirSync(dir, { recursive: true });
1500
1500
 
1501
- // Write file
1502
- writeFileSync(fullPath, content, "utf-8");
1501
+ // Write file (binary files are base64-encoded with a "base64:" prefix)
1502
+ if (content.startsWith("base64:")) {
1503
+ writeFileSync(fullPath, new Uint8Array(Buffer.from(content.slice(7), "base64")));
1504
+ } else {
1505
+ writeFileSync(fullPath, content, "utf-8");
1506
+ }
1503
1507
  fileCount++;
1504
1508
  }
1505
1509