From c677a993d86c70de9c093209f1d0a0cd9bdea67d Mon Sep 17 00:00:00 2001
From: whychw <858544502@qq.com>
Date: 星期二, 17 三月 2026 18:06:18 +0800
Subject: [PATCH] UAD linux分支整理提交
---
package.json | 68 ++++++++++++++++++++++++++--------
1 files changed, 52 insertions(+), 16 deletions(-)
diff --git a/package.json b/package.json
index 8614477..4687efe 100644
--- a/package.json
+++ b/package.json
@@ -1,34 +1,70 @@
{
"name": "electron-fg",
"version": "1.0.0",
- "description": "",
+ "description": "electron-fg",
"main": "main.js",
"scripts": {
"start": "electron .",
- "electron:build": "electron-builder build --linux",
- "electron:serve": "vue-cli-service electron:serve --mode development",
+ "electron:build": "electron-builder --win --ia32",
+ "electron:build-linux": "electron-builder --linux",
+ "electron:serve": "electron:serve --mode development",
"electron:generate-icons": "electron-icon-builder --input=./icon.png --output=build --flatten",
"test": "echo \"Error: no test specified\" && exit 1"
},
"build": {
- "productName": "test",
- "appId": "com.testyx.text",
- "linux": {
- "icon": "build/icons"
+ "productName": "electron-fg",
+ "appId": "com.whyc.fg",
+ "asar": true,
+ "files": [
+ "!dependent/**",
+ "getConfig.js",
+ "config.json",
+ "main.js",
+ "preload.js",
+ "loading.html"
+ ],
+ "directories": {
+ "output": "./release"
},
- "extraResources": {
- "from": "./config.json",
- "to": "."
- }
+ "win": {
+ "target": ["dir"],
+ "icon": "build/icons/icon.ico"
+ },
+ "nsis": {
+ "script": "setup.nsi",
+ "oneClick": false,
+ "perMachine": true,
+ "allowToChangeInstallationDirectory": true,
+ "createDesktopShortcut": true,
+ "createStartMenuShortcut": true,
+ "shortcutName": "electronFg"
+ },
+ "linux": {
+ "icon": "build/icons/512x512.png",
+ "artifactName": "${productName}-${version}-linux.${ext}",
+ "target": {
+ "target": "dir"
+ }
+ },
+ "extraResources": [
+ {
+ "from": "./dependent_linux/",
+ "to": "../"
+ },
+ {
+ "from": "./dependent/elevate.exe",
+ "to": "../resources/elevate.exe"
+ }
+ ]
},
- "author": "",
+ "author": "whychw, Inc <858544502@qq.com>",
"license": "ISC",
"devDependencies": {
- "electron-builder": "^24.12.0",
- "electron": "^29.0.0"
+ "electron": "^34.1.1",
+ "electron-builder": "^26.8.1"
},
"dependencies": {
- "@vue/cli-plugin-babel": "^5.0.8",
- "@vue/cli-service": "^5.0.8"
+ "electron-log": "^5.4.3",
+ "minimal-request-promise": "^1.5.0"
}
}
--
Gitblit v1.9.1