Files
bruno/packages/bruno-electron/electron-builder-config.js
lohit 231776ca4b feat: use default browser for oauth2 authorization bru-2167 (#6101)
* feat: use default browser for oauth2 authorization bru-2167

* fix: coderabbit review comment fixes

* fix: coderabbit review comment fixes

* fix: protocol registration updates

* fix: coderabbit review comment suggestions

* fix: oauth2 auth form use system browser option
2025-12-16 17:23:49 +05:30

112 lines
2.3 KiB
JavaScript

require('dotenv').config({ path: process.env.DOTENV_PATH });
const config = {
appId: 'com.usebruno.app',
productName: 'Bruno',
electronVersion: '37.6.1',
directories: {
buildResources: 'resources',
output: 'out'
},
extraResources: [
{
from: 'resources/data/sample-collection.json',
to: 'data/sample-collection.json'
}
],
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',
notarize: false,
protocols: [
{
name: 'Bruno',
schemes: [
'bruno'
]
}
]
},
linux: {
artifactName: '${name}_${version}_${arch}_${os}.${ext}',
icon: 'resources/icons/png',
target: [
{
target: 'AppImage',
arch: ['x64', 'arm64']
},
{
target: 'deb',
arch: ['x64', 'arm64']
},
{
target: 'rpm',
arch: ['x64', 'arm64']
}
],
protocols: [
{
name: 'Bruno',
schemes: ['bruno']
}
],
category: 'Development',
desktop: {
MimeType: 'x-scheme-handler/bruno;'
}
},
deb: {
// Docs: https://www.electron.build/configuration/linux#debian-package-options
depends: [
'libgtk-3-0',
'libnotify4',
'libnss3',
'libxss1',
'libxtst6',
'xdg-utils',
'libatspi2.0-0',
'libuuid1',
'libsecret-1-0',
'libasound2' // #1036
]
},
win: {
artifactName: '${name}_${version}_${arch}_win.${ext}',
icon: 'resources/icons/win/icon.ico',
target: [
{
target: 'nsis',
arch: ['x64', 'arm64']
}
],
sign: null,
publisherName: 'Bruno Software Inc'
},
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
allowElevation: true,
createDesktopShortcut: true,
createStartMenuShortcut: true
}
};
module.exports = config;