2022-03-13 14:40:38 +08:00
|
|
|
/**
|
|
|
|
* @type {import('electron-builder').Configuration}
|
|
|
|
* @see https://www.electron.build/configuration/configuration
|
|
|
|
*/
|
|
|
|
module.exports = {
|
2022-03-17 14:45:04 +08:00
|
|
|
appId: 'com.qier222.yesplaymusic',
|
2022-03-13 14:40:38 +08:00
|
|
|
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}',
|
|
|
|
},
|
2022-03-17 14:45:04 +08:00
|
|
|
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}',
|
|
|
|
'!**/node_modules/realm/react-native/**/*',
|
|
|
|
],
|
2022-03-13 14:40:38 +08:00
|
|
|
}
|