mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-29 03:48:20 +08:00
d96bd2a547
* 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
62 lines
1.6 KiB
JavaScript
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/**/*',
|
|
],
|
|
}
|