mirror of
https://github.com/frappe/books.git
synced 2025-01-03 07:12:21 +00:00
Merge pull request #822 from frappe/electron_builder_file_update
Updating electron-builder to a ts file
This commit is contained in:
commit
de2ae58b16
@ -59,5 +59,6 @@ module.exports = {
|
|||||||
'vite.config.ts',
|
'vite.config.ts',
|
||||||
'postcss.config.js',
|
'postcss.config.js',
|
||||||
'src/components/**/*.vue', // Incrementally fix these
|
'src/components/**/*.vue', // Incrementally fix these
|
||||||
|
'electron-builder.ts',
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -162,13 +162,6 @@ async function packageApp() {
|
|||||||
...builderArgs,
|
...builderArgs,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* 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
|
|
||||||
*/
|
|
||||||
buildOptions.mac = { notarize: { teamId: process.env.APPLE_TEAM_ID || "" } }
|
|
||||||
|
|
||||||
await builder.build(buildOptions);
|
await builder.build(buildOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
55
electron-builder.ts
Normal file
55
electron-builder.ts
Normal file
@ -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;
|
@ -1,48 +1,48 @@
|
|||||||
productName: Frappe Books
|
productName: Frappe Books
|
||||||
appId: io.frappe.books
|
appId: io.frappe.books
|
||||||
asarUnpack: '**/*.node'
|
asarUnpack: '**/*.node'
|
||||||
extraResources:
|
extraResources:
|
||||||
[
|
[
|
||||||
{ from: 'log_creds.txt', to: '../creds/log_creds.txt' },
|
{ from: 'log_creds.txt', to: '../creds/log_creds.txt' },
|
||||||
{ from: 'translations', to: '../translations' },
|
{ from: 'translations', to: '../translations' },
|
||||||
{ from: 'templates', to: '../templates' },
|
{ from: 'templates', to: '../templates' },
|
||||||
]
|
]
|
||||||
mac:
|
mac:
|
||||||
type: distribution
|
type: distribution
|
||||||
category: public.app-category.finance
|
category: public.app-category.finance
|
||||||
icon: build/icon.icns
|
icon: build/icon.icns
|
||||||
# notarize:
|
# notarize:
|
||||||
# appBundleId: io.frappe.books
|
# appBundleId: io.frappe.books
|
||||||
hardenedRuntime: true
|
hardenedRuntime: true
|
||||||
gatekeeperAssess: false
|
gatekeeperAssess: false
|
||||||
darkModeSupport: false
|
darkModeSupport: false
|
||||||
entitlements: build/entitlements.mac.plist
|
entitlements: build/entitlements.mac.plist
|
||||||
entitlementsInherit: build/entitlements.mac.plist
|
entitlementsInherit: build/entitlements.mac.plist
|
||||||
publish:
|
publish:
|
||||||
- github
|
- github
|
||||||
win:
|
win:
|
||||||
publisherName: Frappe Technologies Pvt. Ltd.
|
publisherName: Frappe Technologies Pvt. Ltd.
|
||||||
signDlls: true
|
signDlls: true
|
||||||
icon: build/icon.ico
|
icon: build/icon.ico
|
||||||
publish:
|
publish:
|
||||||
- github
|
- github
|
||||||
target:
|
target:
|
||||||
- portable
|
- portable
|
||||||
- nsis
|
- nsis
|
||||||
nsis:
|
nsis:
|
||||||
oneClick: false
|
oneClick: false
|
||||||
perMachine: false
|
perMachine: false
|
||||||
allowToChangeInstallationDirectory: true
|
allowToChangeInstallationDirectory: true
|
||||||
installerIcon: build/installericon.ico
|
installerIcon: build/installericon.ico
|
||||||
uninstallerIcon: build/uninstallericon.ico
|
uninstallerIcon: build/uninstallericon.ico
|
||||||
publish:
|
publish:
|
||||||
- github
|
- github
|
||||||
linux:
|
linux:
|
||||||
icon: build/icons
|
icon: build/icons
|
||||||
category: Finance
|
category: Finance
|
||||||
publish:
|
publish:
|
||||||
- github
|
- github
|
||||||
target:
|
target:
|
||||||
- deb
|
- deb
|
||||||
- AppImage
|
- AppImage
|
||||||
- rpm
|
- rpm
|
Loading…
Reference in New Issue
Block a user