feat: updates
|
|
@ -6,15 +6,15 @@
|
|||
module.exports = {
|
||||
appId: 'com.qier222.yesplaymusic',
|
||||
productName: 'YesPlayMusic',
|
||||
copyright: 'Copyright © 2022 ${author}',
|
||||
asar: true,
|
||||
copyright: 'Copyright © 2022 qier222',
|
||||
asar: false,
|
||||
directories: {
|
||||
output: 'release',
|
||||
buildResources: 'build',
|
||||
},
|
||||
npmRebuild: false,
|
||||
buildDependenciesFromSource: true,
|
||||
files: ['./dist'],
|
||||
electronVersion: '19.0.3',
|
||||
publish: [
|
||||
{
|
||||
provider: 'github',
|
||||
|
|
@ -98,16 +98,8 @@ module.exports = {
|
|||
icon: './build/icon.icns',
|
||||
},
|
||||
files: [
|
||||
'dist/main/**/*',
|
||||
'dist/renderer/**/*',
|
||||
{
|
||||
from: 'packages/electron/migrations',
|
||||
to: 'dist/main/migrations',
|
||||
},
|
||||
{
|
||||
from: 'src/main/assets',
|
||||
to: 'dist/main/assets',
|
||||
},
|
||||
'!**/*.ts',
|
||||
'!**/node_modules/better-sqlite3/{bin,build,deps}/**',
|
||||
'!**/node_modules/*/{*.MD,*.md,README,readme}',
|
||||
'!**/node_modules/*/{test,__tests__,tests,powered-test,example,examples}',
|
||||
'!**/node_modules/*.d.ts',
|
||||
|
|
@ -120,5 +112,24 @@ module.exports = {
|
|||
'!**/{appveyor.yml,.travis.yml,circle.yml}',
|
||||
'!**/{npm-debug.log,yarn.lock,.yarn-integrity,.yarn-metadata.json,pnpm-lock.yaml}',
|
||||
'!**/*.{map,debug.min.js}',
|
||||
|
||||
'!**/dist/binary',
|
||||
{
|
||||
from: './dist',
|
||||
to: './main',
|
||||
},
|
||||
{
|
||||
from: '../web/dist',
|
||||
to: './web',
|
||||
},
|
||||
{
|
||||
from: './migrations',
|
||||
to: 'main/migrations',
|
||||
},
|
||||
{
|
||||
from: './assets',
|
||||
to: 'main/assets',
|
||||
},
|
||||
'./main',
|
||||
],
|
||||
}
|
||||
|
|
|
|||
BIN
packages/electron/build/icons/1024x1024.png
Normal file
|
After Width: | Height: | Size: 523 KiB |
BIN
packages/electron/build/icons/128x128.png
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
packages/electron/build/icons/16x16.png
Normal file
|
After Width: | Height: | Size: 474 B |
BIN
packages/electron/build/icons/24x24.png
Normal file
|
After Width: | Height: | Size: 750 B |
BIN
packages/electron/build/icons/256x256.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
packages/electron/build/icons/32x32.png
Normal file
|
After Width: | Height: | Size: 965 B |
BIN
packages/electron/build/icons/48x48.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
packages/electron/build/icons/512x512.png
Normal file
|
After Width: | Height: | Size: 105 KiB |
BIN
packages/electron/build/icons/64x64.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
packages/electron/build/icons/icon.icns
Normal file
BIN
packages/electron/build/icons/icon.ico
Normal file
|
After Width: | Height: | Size: 353 KiB |
BIN
packages/electron/build/icons/icon.png
Normal file
|
After Width: | Height: | Size: 276 KiB |
BIN
packages/electron/build/icons/menu@88.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -2,11 +2,13 @@
|
|||
"name": "electron",
|
||||
"private": true,
|
||||
"version": "2.0.0",
|
||||
"main": "./index.js",
|
||||
"main": "./main/index.js",
|
||||
"author": "*",
|
||||
"scripts": {
|
||||
"post-install": "node scripts/build.sqlite3.js",
|
||||
"dev": "node scripts/build.main.mjs --watch",
|
||||
"build": "node scripts/build.main.mjs",
|
||||
"pack": "electron-builder build -c .electron-builder.config.js",
|
||||
"test:types": "tsc --noEmit --project src/main/tsconfig.json",
|
||||
"lint": "eslint --ext .ts,.js ./",
|
||||
"format": "prettier --write './**/*.{ts,js,tsx,jsx}'"
|
||||
|
|
@ -18,7 +20,7 @@
|
|||
"@sentry/node": "^6.19.7",
|
||||
"@sentry/tracing": "^6.19.7",
|
||||
"@unblockneteasemusic/rust-napi": "^0.3.0",
|
||||
"NeteaseCloudMusicApi": "^4.6.0",
|
||||
"NeteaseCloudMusicApi": "^4.6.2",
|
||||
"better-sqlite3": "7.5.1",
|
||||
"change-case": "^4.1.2",
|
||||
"compare-versions": "^4.1.3",
|
||||
|
|
@ -26,7 +28,7 @@
|
|||
"electron-log": "^4.4.6",
|
||||
"electron-store": "^8.0.1",
|
||||
"express": "^4.18.1",
|
||||
"fast-folder-size": "^1.6.1",
|
||||
"fast-folder-size": "^1.7.0",
|
||||
"pretty-bytes": "^6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
@ -35,18 +37,18 @@
|
|||
"@types/cookie-parser": "^1.4.3",
|
||||
"@types/express": "^4.17.13",
|
||||
"@types/express-fileupload": "^1.2.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.26.0",
|
||||
"@typescript-eslint/parser": "^5.26.0",
|
||||
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
||||
"@typescript-eslint/parser": "^5.27.0",
|
||||
"@vitejs/plugin-react": "^1.3.1",
|
||||
"axios": "^0.27.2",
|
||||
"cross-env": "^7.0.3",
|
||||
"dotenv": "^16.0.0",
|
||||
"electron": "^19.0.1",
|
||||
"electron": "^19.0.3",
|
||||
"electron-builder": "^23.0.3",
|
||||
"electron-devtools-installer": "^3.2.0",
|
||||
"electron-rebuild": "^3.2.7",
|
||||
"electron-releases": "^3.1021.0",
|
||||
"esbuild": "^0.14.41",
|
||||
"electron-releases": "^3.1026.0",
|
||||
"esbuild": "^0.14.42",
|
||||
"eslint": "*",
|
||||
"express-fileupload": "^1.4.0",
|
||||
"minimist": "^1.2.6",
|
||||
|
|
@ -59,6 +61,6 @@
|
|||
"wait-on": "^6.0.1"
|
||||
},
|
||||
"resolutions": {
|
||||
"@electron/universal": "1.2.1"
|
||||
"@electron/universal": "1.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
|||