From 7a864e00544bfdc610d616ec447f23a51fc4ab73 Mon Sep 17 00:00:00 2001 From: Bruno Henrique Paiva Date: Wed, 11 Oct 2023 17:56:28 -0300 Subject: [PATCH 1/2] build: add linux RPM target --- .../bruno-electron/electron-builder-config.js | 73 ++++++++----------- 1 file changed, 31 insertions(+), 42 deletions(-) diff --git a/packages/bruno-electron/electron-builder-config.js b/packages/bruno-electron/electron-builder-config.js index f7b1c5ab..11c9822e 100644 --- a/packages/bruno-electron/electron-builder-config.js +++ b/packages/bruno-electron/electron-builder-config.js @@ -1,56 +1,45 @@ require('dotenv').config({ path: process.env.DOTENV_PATH }); const config = { - "appId": "com.usebruno.app", - "productName": "Bruno", - "electronVersion": "21.1.1", - "directories": { - "buildResources": "resources", - "output": "out" + 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": [ + files: ['**/*'], + afterSign: 'notarize.js', + mac: { + artifactName: '${name}_${version}_${arch}_${os}.${ext}', + category: 'public.app-category.developer-tools', + target: [ { - "target": "dmg", - "arch": [ - "x64", - "arm64" - ] + target: 'dmg', + arch: ['x64', 'arm64'] }, { - "target": "zip", - "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" + 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" - ] + linux: { + artifactName: '${name}_${version}_${arch}_linux.${ext}', + icon: 'resources/icons/png', + target: ['AppImage', 'deb', 'rpm'] }, - "win": { - "artifactName": "${name}_${version}_${arch}_win.${ext}", - "icon": "resources/icons/png", - "certificateFile": `${process.env.WIN_CERT_FILEPATH}`, - "certificatePassword": `${process.env.WIN_CERT_PASSWORD}`, + 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 +module.exports = config; From 062adf019c75173406e7cd3cb05b52e69aab370f Mon Sep 17 00:00:00 2001 From: Bruno Henrique Paiva Date: Wed, 11 Oct 2023 17:58:10 -0300 Subject: [PATCH 2/2] chore: add dist folder to .gitignore --- packages/bruno-electron/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bruno-electron/.gitignore b/packages/bruno-electron/.gitignore index c8441593..9faefe78 100644 --- a/packages/bruno-electron/.gitignore +++ b/packages/bruno-electron/.gitignore @@ -1,6 +1,7 @@ node_modules web out +dist .env // certs