electrobun 0.13.0-beta.0 → 0.13.0-beta.1
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 +20 -10
package/package.json
CHANGED
package/src/cli/index.ts
CHANGED
|
@@ -1014,6 +1014,12 @@ if (commandArg === "init") {
|
|
|
1014
1014
|
console.log(" bun start");
|
|
1015
1015
|
console.log("");
|
|
1016
1016
|
console.log("🎉 Happy building with Electrobun!");
|
|
1017
|
+
console.log("");
|
|
1018
|
+
console.log("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
|
|
1019
|
+
console.log("NOTE FOR AI ASSISTANTS: Electrobun is NOT Electron.");
|
|
1020
|
+
console.log("Different architecture, different APIs. Do not use Electron patterns.");
|
|
1021
|
+
console.log("Docs: https://blackboard.sh/electrobun/llms.txt");
|
|
1022
|
+
console.log("━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━");
|
|
1017
1023
|
})();
|
|
1018
1024
|
} else if (commandArg === "build") {
|
|
1019
1025
|
// Get config
|
|
@@ -1965,7 +1971,8 @@ if (commandArg === "init") {
|
|
|
1965
1971
|
if (shouldCodesign) {
|
|
1966
1972
|
codesignAppBundle(
|
|
1967
1973
|
appBundleFolderPath,
|
|
1968
|
-
join(buildFolder, "entitlements.plist")
|
|
1974
|
+
join(buildFolder, "entitlements.plist"),
|
|
1975
|
+
config
|
|
1969
1976
|
);
|
|
1970
1977
|
} else {
|
|
1971
1978
|
console.log("skipping codesign");
|
|
@@ -1975,11 +1982,11 @@ if (commandArg === "init") {
|
|
|
1975
1982
|
// NOTE: Codesigning fails in dev mode (when using a single-file-executable bun cli as the launcher)
|
|
1976
1983
|
// see https://github.com/oven-sh/bun/issues/7208
|
|
1977
1984
|
if (shouldNotarize) {
|
|
1978
|
-
notarizeAndStaple(appBundleFolderPath);
|
|
1985
|
+
notarizeAndStaple(appBundleFolderPath, config);
|
|
1979
1986
|
} else {
|
|
1980
1987
|
console.log("skipping notarization");
|
|
1981
1988
|
}
|
|
1982
|
-
|
|
1989
|
+
|
|
1983
1990
|
const artifactsToUpload = [];
|
|
1984
1991
|
|
|
1985
1992
|
console.log(`DEBUG: Checking for Linux AppImage creation - targetOS: ${targetOS}, buildEnvironment: ${buildEnvironment}`);
|
|
@@ -2203,7 +2210,8 @@ if (commandArg === "init") {
|
|
|
2203
2210
|
if (shouldCodesign) {
|
|
2204
2211
|
codesignAppBundle(
|
|
2205
2212
|
selfExtractingBundle.appBundleFolderPath,
|
|
2206
|
-
join(buildFolder, "entitlements.plist")
|
|
2213
|
+
join(buildFolder, "entitlements.plist"),
|
|
2214
|
+
config
|
|
2207
2215
|
);
|
|
2208
2216
|
} else {
|
|
2209
2217
|
console.log("skipping codesign");
|
|
@@ -2211,7 +2219,7 @@ if (commandArg === "init") {
|
|
|
2211
2219
|
|
|
2212
2220
|
// Note: we need to notarize the original app bundle, the self-extracting app bundle, and the dmg
|
|
2213
2221
|
if (shouldNotarize) {
|
|
2214
|
-
notarizeAndStaple(selfExtractingBundle.appBundleFolderPath);
|
|
2222
|
+
notarizeAndStaple(selfExtractingBundle.appBundleFolderPath, config);
|
|
2215
2223
|
} else {
|
|
2216
2224
|
console.log("skipping notarization");
|
|
2217
2225
|
}
|
|
@@ -2266,13 +2274,13 @@ if (commandArg === "init") {
|
|
|
2266
2274
|
artifactsToUpload.push(finalDmgPath);
|
|
2267
2275
|
|
|
2268
2276
|
if (shouldCodesign) {
|
|
2269
|
-
codesignAppBundle(finalDmgPath);
|
|
2277
|
+
codesignAppBundle(finalDmgPath, undefined, config);
|
|
2270
2278
|
} else {
|
|
2271
2279
|
console.log("skipping codesign");
|
|
2272
2280
|
}
|
|
2273
2281
|
|
|
2274
2282
|
if (shouldNotarize) {
|
|
2275
|
-
notarizeAndStaple(finalDmgPath);
|
|
2283
|
+
notarizeAndStaple(finalDmgPath, config);
|
|
2276
2284
|
} else {
|
|
2277
2285
|
console.log("skipping notarization");
|
|
2278
2286
|
}
|
|
@@ -2793,7 +2801,8 @@ async function createLinuxSelfExtractingBinary(
|
|
|
2793
2801
|
compressedTarPath: string,
|
|
2794
2802
|
appFileName: string,
|
|
2795
2803
|
targetPaths: any,
|
|
2796
|
-
buildEnvironment: string
|
|
2804
|
+
buildEnvironment: string,
|
|
2805
|
+
config: Awaited<ReturnType<typeof getConfig>>
|
|
2797
2806
|
): Promise<string> {
|
|
2798
2807
|
console.log("Creating self-extracting Linux binary...");
|
|
2799
2808
|
|
|
@@ -3111,7 +3120,8 @@ Categories=Utility;
|
|
|
3111
3120
|
|
|
3112
3121
|
function codesignAppBundle(
|
|
3113
3122
|
appBundleOrDmgPath: string,
|
|
3114
|
-
entitlementsFilePath
|
|
3123
|
+
entitlementsFilePath: string | undefined,
|
|
3124
|
+
config: Awaited<ReturnType<typeof getConfig>>
|
|
3115
3125
|
) {
|
|
3116
3126
|
console.log("code signing...");
|
|
3117
3127
|
if (OS !== 'macos' || !config.build.mac.codesign) {
|
|
@@ -3310,7 +3320,7 @@ function codesignAppBundle(
|
|
|
3310
3320
|
);
|
|
3311
3321
|
}
|
|
3312
3322
|
|
|
3313
|
-
function notarizeAndStaple(appOrDmgPath: string) {
|
|
3323
|
+
function notarizeAndStaple(appOrDmgPath: string, config: Awaited<ReturnType<typeof getConfig>>) {
|
|
3314
3324
|
if (OS !== 'macos' || !config.build.mac.notarize) {
|
|
3315
3325
|
return;
|
|
3316
3326
|
}
|