diff --git a/packages/bruno-electron/electron-builder-config.js b/packages/bruno-electron/electron-builder-config.js new file mode 100644 index 00000000..519bf469 --- /dev/null +++ b/packages/bruno-electron/electron-builder-config.js @@ -0,0 +1,56 @@ +require('dotenv'); + +const config = { + "appId": "com.usebruno.app", + "productName": "Bruno", + "electronVersion": "21.1.1", + "directories": { + "buildResources": "resources", + "output": "out" + }, + "files": [ + "**/*" + ], + "afterSign": "notarize.js", + "mac": { + "artifactName": "${name}_${version}_${arch}_${os}.${ext}", + "category": "public.app-category.developer-tools", + "target": [ + { + "target": "dmg", + "arch": [ + "x64", + "arm64" + ] + }, + { + "target": "zip", + "arch": [ + "x64", + "arm64" + ] + } + ], + "icon": "resources/icons/mac/icon.icns", + "hardenedRuntime": true, + "identity": "Anoop MD (W7LPPWA48L)", + "entitlements": "resources/entitlements.mac.plist", + "entitlementsInherit": "resources/entitlements.mac.plist" + }, + "linux": { + "artifactName": "${name}_${version}_${arch}_linux.${ext}", + "icon": "resources/icons/png", + "target": [ + "AppImage", + "deb" + ] + }, + "win": { + "artifactName": "${name}_${version}_${arch}_win.${ext}", + "icon": "resources/icons/png", + "certificateFile": `${process.env.WIN_CERT_FILEPATH}`, + "certificatePassword": `${process.env.WIN_CERT_PASSWORD}`, + } +}; + +module.exports = config; \ No newline at end of file diff --git a/packages/bruno-electron/electron-builder.yml b/packages/bruno-electron/electron-builder.yml deleted file mode 100644 index e7833f49..00000000 --- a/packages/bruno-electron/electron-builder.yml +++ /dev/null @@ -1,37 +0,0 @@ -appId: com.usebruno.app -productName: Bruno -electronVersion: 21.1.1 -directories: - buildResources: resources - output: out -files: - - "**/*" -afterSign: notarize.js -mac: - artifactName: ${name}_${version}_${arch}_${os}.${ext} - category: public.app-category.developer-tools - target: - - target: dmg - arch: - - x64 - - arm64 - - target: zip - arch: - - x64 - - arm64 - icon: resources/icons/mac/icon.icns - hardenedRuntime: true - identity: "Anoop MD (W7LPPWA48L)" - entitlements: resources/entitlements.mac.plist - entitlementsInherit: resources/entitlements.mac.plist -linux: - artifactName: ${name}_${version}_${arch}_linux.${ext} - icon: resources/icons/png - target: - - AppImage - - deb -win: - artifactName: ${name}_${version}_${arch}_win.${ext} - icon: resources/icons/png - certificateFile: sectigo.pfx - certificatePassword: "secret" diff --git a/packages/bruno-electron/package.json b/packages/bruno-electron/package.json index c8b1382d..8fbf7936 100644 --- a/packages/bruno-electron/package.json +++ b/packages/bruno-electron/package.json @@ -9,7 +9,7 @@ "scripts": { "clean": "rimraf dist", "dev": "electron .", - "dist": "electron-builder --win --linux --mac", + "dist": "electron-builder --win --linux --mac --config electron-builder-config.js", "pack": "electron-builder --dir" }, "dependencies": {