mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
feat: 添加electron-builder.yml配置文件并更新构建脚本
This commit is contained in:
@@ -1,63 +0,0 @@
|
||||
// @see https://www.electron.build/configuration/configuration
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
|
||||
"appId": "apm-app-store",
|
||||
"asar": true,
|
||||
"productName": "apm-app-store",
|
||||
"directories": {
|
||||
"output": "release/${version}"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"dist-electron"
|
||||
],
|
||||
"deb": {
|
||||
"depends": [
|
||||
"libgtk-3-0",
|
||||
"libnotify4",
|
||||
"libnss3",
|
||||
"libxss1",
|
||||
"libxtst6",
|
||||
"xdg-utils",
|
||||
"libatspi2.0-0",
|
||||
"libuuid1",
|
||||
"libsecret-1-0",
|
||||
"apm"
|
||||
]
|
||||
},
|
||||
"rpm": {
|
||||
"depends": [
|
||||
"gtk3",
|
||||
"libnotify",
|
||||
"nss",
|
||||
"libXScrnSaver",
|
||||
"libXtst",
|
||||
"xdg-utils",
|
||||
"at-spi2-core",
|
||||
"libuuid",
|
||||
"libsecret",
|
||||
"apm"
|
||||
]
|
||||
},
|
||||
"linux": {
|
||||
"icon": "public/amber-pm-logo.icns",
|
||||
"category": "System",
|
||||
"executableName": "apm-app-store",
|
||||
"desktop": {
|
||||
"entry": {
|
||||
"Name": "APM AppStore",
|
||||
"Name[zh_CN]": "APM 应用商店",
|
||||
"Comment": "Client for APM App Store",
|
||||
"Comment[zh_CN]": "APM 应用商店客户端",
|
||||
"StartupWMClass": "apm-app-store",
|
||||
"MimeType": "x-scheme-handler/apmstore"
|
||||
}
|
||||
},
|
||||
"target": [
|
||||
"AppImage",
|
||||
"deb",
|
||||
"rpm"
|
||||
],
|
||||
"artifactName": "${productName}-Linux-${version}.${ext}"
|
||||
}
|
||||
}
|
||||
50
electron-builder.yml
Normal file
50
electron-builder.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
appId: "store.spark-app.apm"
|
||||
asar: true
|
||||
productName: "apm-app-store"
|
||||
artifactName: "apm-app-store_${version}_${os}.${ext}"
|
||||
directories:
|
||||
output: "release/${version}"
|
||||
files:
|
||||
- "dist"
|
||||
- "dist-electron"
|
||||
|
||||
linux:
|
||||
icon: "public/amber-pm-logo.icns"
|
||||
category: "System"
|
||||
executableName: "apm-app-store"
|
||||
desktop:
|
||||
entry:
|
||||
Name: "APM AppStore"
|
||||
Name[zh_CN]: "APM 应用商店"
|
||||
Type: "Application"
|
||||
Categories: "System;"
|
||||
mimeTypes:
|
||||
- "x-scheme-handler/apmstore"
|
||||
target:
|
||||
- "AppImage"
|
||||
- "deb"
|
||||
- "rpm"
|
||||
deb:
|
||||
depends:
|
||||
- "libgtk-3-0"
|
||||
- "libnotify4"
|
||||
- "libnss3"
|
||||
- "libxss1"
|
||||
- "libxtst6"
|
||||
- "xdg-utils"
|
||||
- "libatspi2.0-0"
|
||||
- "libuuid1"
|
||||
- "libsecret-1-0"
|
||||
- "apm"
|
||||
rpm:
|
||||
depends:
|
||||
- "gtk3"
|
||||
- "libnotify"
|
||||
- "nss"
|
||||
- "libXScrnSaver"
|
||||
- "libXtst"
|
||||
- "xdg-utils"
|
||||
- "at-spi2-core"
|
||||
- "libuuid"
|
||||
- "libsecret"
|
||||
- "apm"
|
||||
@@ -22,17 +22,17 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --mode debug | pino-pretty",
|
||||
"build": "vue-tsc --noEmit && vite build --mode production && electron-builder",
|
||||
"build:rpm": "vue-tsc --noEmit && vite build --mode production && electron-builder --linux rpm",
|
||||
"build:deb": "vue-tsc --noEmit && vite build --mode production && electron-builder --linux deb",
|
||||
"build": "vue-tsc --noEmit && vite build --mode production && electron-builder --config electron-builder.yml",
|
||||
"build:rpm": "vue-tsc --noEmit && vite build --mode production && electron-builder --config electron-builder.yml --linux rpm",
|
||||
"build:deb": "vue-tsc --noEmit && vite build --mode production && electron-builder --config electron-builder.yml --linux deb",
|
||||
"preview": "vite preview --mode debug"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@dotenvx/dotenvx": "^1.51.4",
|
||||
"@loongdotjs/electron-builder": "^26.0.12-1",
|
||||
"@vitejs/plugin-vue": "^5.0.4",
|
||||
"electron": "^39.2.7",
|
||||
"electron-app-universal-protocol-client": "github:witcher112/electron-app-universal-protocol-client",
|
||||
"electron-builder": "^24.13.3",
|
||||
"pino-pretty": "^13.1.3",
|
||||
"typescript": "^5.4.2",
|
||||
"vite": "^5.1.5",
|
||||
|
||||
Reference in New Issue
Block a user