2022-03-13 14:40:38 +08:00
|
|
|
/**
|
|
|
|
* @type {import('electron-builder').Configuration}
|
|
|
|
* @see https://www.electron.build/configuration/configuration
|
|
|
|
*/
|
2022-05-12 02:45:43 +08:00
|
|
|
|
2022-03-13 14:40:38 +08:00
|
|
|
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}',
|
2022-04-02 19:29:43 +08:00
|
|
|
asar: true,
|
2022-03-13 14:40:38 +08:00
|
|
|
directories: {
|
2022-04-02 19:29:43 +08:00
|
|
|
output: 'release',
|
2022-03-13 14:40:38 +08:00
|
|
|
buildResources: 'build',
|
|
|
|
},
|
2022-03-29 16:52:53 +08:00
|
|
|
npmRebuild: false,
|
|
|
|
buildDependenciesFromSource: true,
|
2022-04-02 19:29:43 +08:00
|
|
|
files: ['./dist'],
|
|
|
|
publish: [
|
|
|
|
{
|
|
|
|
provider: 'github',
|
|
|
|
owner: 'qier222',
|
|
|
|
repo: 'YesPlayMusic',
|
|
|
|
vPrefixedTagName: true,
|
|
|
|
releaseType: 'draft',
|
|
|
|
},
|
|
|
|
],
|
2022-03-13 14:40:38 +08:00
|
|
|
win: {
|
|
|
|
target: [
|
|
|
|
{
|
|
|
|
target: 'nsis',
|
|
|
|
arch: ['x64'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
target: 'nsis',
|
|
|
|
arch: ['arm64'],
|
|
|
|
},
|
2022-04-02 19:29:43 +08:00
|
|
|
{
|
|
|
|
target: 'portable',
|
|
|
|
arch: ['x64'],
|
|
|
|
},
|
2022-03-13 14:40:38 +08:00
|
|
|
],
|
2022-04-02 19:29:43 +08:00
|
|
|
publisherName: 'qier222',
|
|
|
|
icon: 'build/icons/icon.ico',
|
2022-03-13 14:40:38 +08:00
|
|
|
},
|
|
|
|
nsis: {
|
|
|
|
oneClick: false,
|
2022-04-03 13:41:08 +08:00
|
|
|
perMachine: true,
|
2022-03-13 14:40:38 +08:00
|
|
|
allowToChangeInstallationDirectory: true,
|
|
|
|
deleteAppDataOnUninstall: true,
|
2022-04-03 13:41:08 +08:00
|
|
|
artifactName: '${productName}-${version}-${os}-${arch}-Setup.${ext}',
|
|
|
|
},
|
|
|
|
portable: {
|
|
|
|
artifactName: '${productName}-${version}-${os}-${arch}-Portable.${ext}',
|
2022-03-13 14:40:38 +08:00
|
|
|
},
|
|
|
|
mac: {
|
2022-04-02 19:29:43 +08:00
|
|
|
target: [
|
|
|
|
{
|
|
|
|
target: 'dmg',
|
|
|
|
arch: ['x64', 'arm64', 'universal'],
|
|
|
|
},
|
|
|
|
],
|
2022-04-03 13:41:08 +08:00
|
|
|
artifactName: '${productName}-${version}-${os}-${arch}.${ext}',
|
2022-04-02 19:29:43 +08:00
|
|
|
darkModeSupport: true,
|
|
|
|
category: 'public.app-category.music',
|
|
|
|
},
|
|
|
|
dmg: {
|
|
|
|
icon: 'build/icons/icon.icns',
|
2022-03-13 14:40:38 +08:00
|
|
|
},
|
|
|
|
linux: {
|
2022-04-02 19:29:43 +08:00
|
|
|
target: [
|
|
|
|
{
|
|
|
|
target: 'deb',
|
|
|
|
arch: ['x64', 'arm64', 'armv7l'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
target: 'AppImage',
|
|
|
|
arch: ['x64'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
target: 'snap',
|
|
|
|
arch: ['x64'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
target: 'pacman',
|
|
|
|
arch: ['x64'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
target: 'rpm',
|
|
|
|
arch: ['x64'],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
target: 'tar.gz',
|
|
|
|
arch: ['x64'],
|
|
|
|
},
|
|
|
|
],
|
2022-04-03 13:41:08 +08:00
|
|
|
artifactName: '${productName}-${version}-${os}.${ext}',
|
2022-04-02 19:29:43 +08:00
|
|
|
category: 'Music',
|
|
|
|
icon: './build/icon.icns',
|
2022-03-13 14:40:38 +08:00
|
|
|
},
|
2022-03-17 14:45:04 +08:00
|
|
|
files: [
|
2022-03-29 16:52:53 +08:00
|
|
|
'dist/main/**/*',
|
|
|
|
'dist/renderer/**/*',
|
2022-04-02 00:45:20 +08:00
|
|
|
{
|
2022-05-12 02:45:43 +08:00
|
|
|
from: 'packages/electron/migrations',
|
2022-04-02 00:45:20 +08:00
|
|
|
to: 'dist/main/migrations',
|
|
|
|
},
|
2022-04-20 20:25:20 +08:00
|
|
|
{
|
|
|
|
from: 'src/main/assets',
|
|
|
|
to: 'dist/main/assets',
|
|
|
|
},
|
2022-04-02 00:45:20 +08:00
|
|
|
'!**/node_modules/*/{*.MD,*.md,README,readme}',
|
2022-03-17 14:45:04 +08:00
|
|
|
'!**/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}',
|
2022-03-17 15:33:29 +08:00
|
|
|
'!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json,pnpm-lock.yaml}',
|
2022-04-02 00:45:20 +08:00
|
|
|
'!**/*.{map,debug.min.js}',
|
2022-03-17 14:45:04 +08:00
|
|
|
],
|
2022-03-13 14:40:38 +08:00
|
|
|
}
|