Skip to content

Commit

Permalink
build: Support build deb x64 package
Browse files Browse the repository at this point in the history
Signed-off-by: Yuyuko1024 <[email protected]>
  • Loading branch information
Yuyuko1024 committed Dec 4, 2023
1 parent fcf81d1 commit ebc1774
Show file tree
Hide file tree
Showing 5 changed files with 206 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ thumbs.db
# Build dist
build
dist
build_pack

# npm lock file
package-lock.json
Expand Down
22 changes: 22 additions & 0 deletions config.deb-pack_x64.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"dest": "build_pack/deb/",
"src": "build/Electron-NCM-linux-x64",
"icon": {
"128x128": "assets/icons/icon.png",
"256x256": "assets/icons/icon.png",
"512x512": "assets/icons/icon.png",
"scalable": "assets/icons/icon.svg"
},
"name": "Electron NCM",
"version": "0.9.38",
"arch": "amd64",
"description": "UNOFFICIAL client for music.163.com",
"maintainer": "rocka <[email protected]> (https://rocka.me)",
"categories": [
"Music"
],
"lintianOverrides": [
"changelog-file-missing-in-native-package"
]
}

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"dev": "node script/dev-server.js",
"dist": "node script/webpack.js",
"build": "node script/packager.js"
"build": "node script/packager.js",
"deb-amd64": "node script/webpack.js && node script/packager.js && electron-installer-debian --config config.deb-pack_x64.json"
},
"author": "rocka <[email protected]> (https://rocka.me)",
"license": "GPL-3.0",
Expand Down Expand Up @@ -56,7 +57,8 @@
"vue": "^2.7.14",
"vue-router": "^3.5.4",
"vue-virtual-scroller": "^1.1.2",
"vuex": "^3.6.2"
"vuex": "^3.6.2",
"electron-installer-debian": "^3.2.0"
},
"resolutions": {
"vue-virtual-scroller/vue-resize": "^0.5.0",
Expand Down
2 changes: 1 addition & 1 deletion script/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ const pkgJson = require('../package.json');
module.exports = {
name: pkgJson.name,
version: pkgJson.version,
productName: 'Electron NCM',
productName: 'Electron-NCM',
devPort: 24353
};
Loading

0 comments on commit ebc1774

Please sign in to comment.