Skip to content

Commit

Permalink
Change electron builder config to js for notarize
Browse files Browse the repository at this point in the history
  • Loading branch information
pierr3 committed Jun 5, 2024
1 parent d0fa5cd commit 961a87d
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 51 deletions.
65 changes: 65 additions & 0 deletions electron-builder-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
module.exports = {

Check failure on line 1 in electron-builder-config.js

View workflow job for this annotation

GitHub Actions / build (macos-latest, 20.x)

'module' is not defined
appId: 'com.vatsim.trackaudio',
productName: 'TrackAudio',
directories: {
buildResources: 'build'
},
files: [
'!**/.vscode/*',
'!src/*',
'!electron.vite.config.{js,ts,mjs,cjs}',
'!{.eslintignore,.eslintrc.cjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}',
'!{.env,.env.*,.npmrc,pnpm-lock.yaml}',
'!{.gitignore,.gitmodules,.sentryclirc,MANDATORY_VERSION}',
'!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}',
'!backend/*'
],
asarUnpack: [
'resources/**'
],
win: {
executableName: 'trackaudio',
extraFiles: [
{
from: 'backend/build/Release/',
to: '.',
filter: ['*.dll']
}
]
},
nsis: {
artifactName: '${name}-${version}-${arch}-setup.${ext}',
shortcutName: '${productName}',
uninstallDisplayName: '${productName}',
createDesktopShortcut: 'always'
},
mac: {
entitlementsInherit: 'build/entitlements.mac.plist',
notarize: {
teamId: process.env.APPLE_TEAM_ID

Check failure on line 39 in electron-builder-config.js

View workflow job for this annotation

GitHub Actions / build (macos-latest, 20.x)

'process' is not defined
}
},
dmg: {
artifactName: '${name}-${version}-${arch}.${ext}'
},
linux: {
target: [
'AppImage',
'snap',
'deb'
],
maintainer: 'pierr3',
category: 'Game'
},
appImage: {
artifactName: '${name}-${version}-${arch}.${ext}'
},
npmRebuild: false,
publish: {
provider: 'generic',
url: 'https://example.com/auto-updates'
},
electronDownload: {
mirror: 'https://npmmirror.com/mirrors/electron/'
}
};
47 changes: 0 additions & 47 deletions electron-builder.yml

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"dev": "electron-vite dev",
"build": "npm run typecheck && electron-vite build",
"postinstall": "electron-builder install-app-deps",
"build:unpack": "npm run build && electron-builder --dir",
"build:win": "npm run build && electron-builder --win",
"build:mac": "npm run build && electron-builder --mac",
"build:linux": "npm run build && electron-builder --linux",
"build:unpack": "npm run build && electron-builder --dir -c electron-builder-config.js",
"build:win": "npm run build && electron-builder --win -c electron-builder-config.js",
"build:mac": "npm run build && electron-builder --mac -c electron-builder-config.js",
"build:linux": "npm run build && electron-builder --linux -c electron-builder-config.js",
"build:backend": "cd backend && npm install && npm run build && cd .. && npm install ./backend/trackaudio-afv-1.0.0.tgz"
},
"dependencies": {
Expand Down

0 comments on commit 961a87d

Please sign in to comment.