-
Notifications
You must be signed in to change notification settings - Fork 694
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #822 from frappe/electron_builder_file_update
Updating electron-builder to a ts file
- Loading branch information
Showing
4 changed files
with
104 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
import type { Configuration } from 'electron-builder'; | ||
|
||
/** | ||
* electron-builder doesn't look for the APPLE_TEAM_ID environment variable for some reason. | ||
* This workaround allows an environment variable to be added to the electron-builder.yml config | ||
* collection. See: https://github.com/electron-userland/electron-builder/issues/7812 | ||
*/ | ||
|
||
const config: Configuration = { | ||
productName: 'Frappe Books', | ||
appId: 'io.frappe.books', | ||
asarUnpack: '**/*.node', | ||
extraResources: [ | ||
{ from: 'log_creds.txt', to: '../creds/log_creds.txt' }, | ||
{ from: 'translations', to: '../translations' }, | ||
{ from: 'templates', to: '../templates' }, | ||
], | ||
mac: { | ||
type: 'distribution', | ||
category: 'public.app-category.finance', | ||
icon: 'build/icon.icns', | ||
notarize: { | ||
teamId: process.env.APPLE_TEAM_ID || '', | ||
}, | ||
hardenedRuntime: true, | ||
gatekeeperAssess: false, | ||
darkModeSupport: false, | ||
entitlements: 'build/entitlements.mac.plist', | ||
entitlementsInherit: 'build/entitlements.mac.plist', | ||
publish: ['github'], | ||
}, | ||
win: { | ||
publisherName: 'Frappe Technologies Pvt. Ltd.', | ||
signDlls: true, | ||
icon: 'build/icon.ico', | ||
publish: ['github'], | ||
target: ['portable', 'nsis'], | ||
}, | ||
nsis: { | ||
oneClick: false, | ||
perMachine: false, | ||
allowToChangeInstallationDirectory: true, | ||
installerIcon: 'build/installericon.ico', | ||
uninstallerIcon: 'build/uninstallericon.ico', | ||
publish: ['github'], | ||
}, | ||
linux: { | ||
icon: 'build/icons', | ||
category: 'Finance', | ||
publish: ['github'], | ||
target: ['deb', 'AppImage', 'rpm'], | ||
}, | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
productName: Frappe Books | ||
appId: io.frappe.books | ||
asarUnpack: '**/*.node' | ||
extraResources: | ||
[ | ||
{ from: 'log_creds.txt', to: '../creds/log_creds.txt' }, | ||
{ from: 'translations', to: '../translations' }, | ||
{ from: 'templates', to: '../templates' }, | ||
] | ||
mac: | ||
type: distribution | ||
category: public.app-category.finance | ||
icon: build/icon.icns | ||
# notarize: | ||
# appBundleId: io.frappe.books | ||
hardenedRuntime: true | ||
gatekeeperAssess: false | ||
darkModeSupport: false | ||
entitlements: build/entitlements.mac.plist | ||
entitlementsInherit: build/entitlements.mac.plist | ||
publish: | ||
- github | ||
win: | ||
publisherName: Frappe Technologies Pvt. Ltd. | ||
signDlls: true | ||
icon: build/icon.ico | ||
publish: | ||
- github | ||
target: | ||
- portable | ||
- nsis | ||
nsis: | ||
oneClick: false | ||
perMachine: false | ||
allowToChangeInstallationDirectory: true | ||
installerIcon: build/installericon.ico | ||
uninstallerIcon: build/uninstallericon.ico | ||
publish: | ||
- github | ||
linux: | ||
icon: build/icons | ||
category: Finance | ||
publish: | ||
- github | ||
target: | ||
- deb | ||
- AppImage | ||
- rpm | ||
productName: Frappe Books | ||
appId: io.frappe.books | ||
asarUnpack: '**/*.node' | ||
extraResources: | ||
[ | ||
{ from: 'log_creds.txt', to: '../creds/log_creds.txt' }, | ||
{ from: 'translations', to: '../translations' }, | ||
{ from: 'templates', to: '../templates' }, | ||
] | ||
mac: | ||
type: distribution | ||
category: public.app-category.finance | ||
icon: build/icon.icns | ||
# notarize: | ||
# appBundleId: io.frappe.books | ||
hardenedRuntime: true | ||
gatekeeperAssess: false | ||
darkModeSupport: false | ||
entitlements: build/entitlements.mac.plist | ||
entitlementsInherit: build/entitlements.mac.plist | ||
publish: | ||
- github | ||
win: | ||
publisherName: Frappe Technologies Pvt. Ltd. | ||
signDlls: true | ||
icon: build/icon.ico | ||
publish: | ||
- github | ||
target: | ||
- portable | ||
- nsis | ||
nsis: | ||
oneClick: false | ||
perMachine: false | ||
allowToChangeInstallationDirectory: true | ||
installerIcon: build/installericon.ico | ||
uninstallerIcon: build/uninstallericon.ico | ||
publish: | ||
- github | ||
linux: | ||
icon: build/icons | ||
category: Finance | ||
publish: | ||
- github | ||
target: | ||
- deb | ||
- AppImage | ||
- rpm |