feat: updates

This commit is contained in:
qier222 2022-06-06 01:00:25 +08:00
parent cf7a4528dd
commit 0e58bb6e80
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
44 changed files with 1027 additions and 496 deletions

View file

@ -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',
],
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 750 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 965 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -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"
}
}