YesPlayMusic/.electron-builder.config.js
pan93412 d96bd2a547
chore: Migrate to PNPM (#1418)
* refactor: migrate to PNPM

* refactor: remove unused import

* chore: update lock

* refactor!: remove yarn.lock

* fix(config/electron-builder): ignore pnpm-lock.yaml

* chore: upgrade dependencies
2022-03-17 15:33:29 +08:00

62 lines
1.6 KiB
JavaScript

/**
* @type {import('electron-builder').Configuration}
* @see https://www.electron.build/configuration/configuration
*/
module.exports = {
appId: 'com.qier222.yesplaymusic',
productName: 'YesPlayMusic',
copyright: 'Copyright © 2022 ${author}',
asar: true,
directories: {
output: 'release/${version}',
buildResources: 'build',
},
files: ['dist'],
win: {
target: [
{
target: 'nsis',
arch: ['x64'],
},
{
target: 'nsis',
arch: ['arm64'],
},
{
target: 'nsis',
arch: ['ia32'],
},
],
artifactName: '${productName}-${version}-Setup.${ext}',
},
nsis: {
oneClick: false,
perMachine: false,
allowToChangeInstallationDirectory: true,
deleteAppDataOnUninstall: true,
},
mac: {
target: ['dmg'],
artifactName: '${productName}-${version}-Installer.${ext}',
},
linux: {
target: ['AppImage'],
artifactName: '${productName}-${version}-Installer.${ext}',
},
files: [
'**/*',
'!**/node_modules/*/{CHANGELOG.md,README.md,README,readme.md,readme}',
'!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}',
'!**/node_modules/*.d.ts',
'!**/node_modules/.bin',
'!**/*.{iml,o,hprof,orig,pyc,pyo,rbc,swp,csproj,sln,xproj}',
'!.editorconfig',
'!**/._*',
'!**/{.DS_Store,.git,.hg,.svn,CVS,RCS,SCCS,.gitignore,.gitattributes}',
'!**/{__pycache__,thumbs.db,.flowconfig,.idea,.vs,.nyc_output}',
'!**/{appveyor.yml,.travis.yml,circle.yml}',
'!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json,pnpm-lock.yaml}',
'!**/node_modules/realm/react-native/**/*',
],
}