electrobun 1.2.1-beta.0 → 1.2.1-beta.2

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 +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrobun",
3
- "version": "1.2.1-beta.0",
3
+ "version": "1.2.1-beta.2",
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
@@ -2253,6 +2253,18 @@ if (commandArg === "init") {
2253
2253
  InfoPlistContents
2254
2254
  );
2255
2255
 
2256
+ // Write metadata.json to outer bundle (consistent with Windows/Linux)
2257
+ const extractorMetadata = {
2258
+ identifier: config.app.identifier,
2259
+ name: config.app.name,
2260
+ channel: buildEnvironment,
2261
+ hash: hash
2262
+ };
2263
+ await Bun.write(
2264
+ join(selfExtractingBundle.appBundleFolderResourcesPath, "metadata.json"),
2265
+ JSON.stringify(extractorMetadata, null, 2)
2266
+ );
2267
+
2256
2268
  // Run postWrap hook after self-extracting bundle is created, before code signing
2257
2269
  // This is where you can add files to the wrapper (e.g., for liquid glass support)
2258
2270
  runHook('postWrap', { ELECTROBUN_WRAPPER_BUNDLE_PATH: selfExtractingBundle.appBundleFolderPath });