From 29b048064ae92d5d8d9737477f4375f724deeb08 Mon Sep 17 00:00:00 2001
From: whychw <858544502@qq.com>
Date: 星期六, 21 三月 2026 14:40:02 +0800
Subject: [PATCH] U 安装脚本修改

---
 package.json |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/package.json b/package.json
index 0310dbe..3f59367 100644
--- a/package.json
+++ b/package.json
@@ -6,6 +6,7 @@
   "scripts": {
     "start": "electron .",
     "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"
@@ -16,6 +17,7 @@
     "asar": true,
     "files": [
       "!dependent/**",
+      "!dependent_linux/**",
       "getConfig.js",
       "config.json",
       "main.js",
@@ -39,20 +41,22 @@
       "shortcutName": "electronFg"
     },
     "linux": {
-      "icon": "build/icons"
+      "icon": "./build/icons",
+      "artifactName": "${productName}-${version}-linux.${ext}",
+      "target": ["dir", "tar.gz"]
     },
     "extraResources": [
       {
-        "from": "./dependent",
+        "from": "./dependent_linux/",
         "to": "../"
       },
       {
-        "from": "./dependent/elevate.exe",
-        "to": "../resources/elevate.exe"
+        "from": "./build/",
+        "to": "build"
       }
     ]
   },
-  "author": "",
+  "author": "whychw, Inc <858544502@qq.com>",
   "license": "ISC",
   "devDependencies": {
     "electron": "^34.1.1",

--
Gitblit v1.9.1