chore: 移除便携版构建,后续仅提供 NSIS 安装包

This commit is contained in:
thzxx
2026-04-07 19:41:12 +08:00
parent 506d1c5d1f
commit 4d25490c68
2 changed files with 4 additions and 14 deletions
+3 -5
View File
@@ -84,8 +84,7 @@ ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ npm run dist
npm start # 开发运行 npm start # 开发运行
npm run pack # 仅构建目录(不打包) npm run pack # 仅构建目录(不打包)
npm run dist:nsis # 仅 NSIS 安装包 npm run dist:nsis # 仅 NSIS 安装包
npm run dist:portable # 仅绿色便携版 npm run dist # NSIS 安装包
npm run dist # 全部(NSIS + Portable
``` ```
## 构建产物 ## 构建产物
@@ -93,7 +92,8 @@ npm run dist # 全部(NSIS + Portable
| 文件 | 说明 | | 文件 | 说明 |
|------|------| |------|------|
| `release/Metona Ollama Setup X.X.X.exe` | NSIS 安装包(可选目录、创建快捷方式) | | `release/Metona Ollama Setup X.X.X.exe` | NSIS 安装包(可选目录、创建快捷方式) |
| `release/MetonaOllama-Portable-X.X.X.exe` | 绿色便携版(免安装,双击即用) |
> v3.2.0 起不再提供绿色便携版,仅保留 NSIS 安装包。
## 发布到 Gitee ## 发布到 Gitee
@@ -113,8 +113,6 @@ TOKEN="your_access_token"
RELEASE_ID="600564" RELEASE_ID="600564"
curl -X POST "https://gitee.com/api/v5/repos/thzxx/metona-ollama/releases/$RELEASE_ID/attach_files?access_token=$TOKEN" \ curl -X POST "https://gitee.com/api/v5/repos/thzxx/metona-ollama/releases/$RELEASE_ID/attach_files?access_token=$TOKEN" \
-H "Content-Type: multipart/form-data" -F "file=@release/Metona Ollama Setup 3.2.0.exe" -H "Content-Type: multipart/form-data" -F "file=@release/Metona Ollama Setup 3.2.0.exe"
curl -X POST "https://gitee.com/api/v5/repos/thzxx/metona-ollama/releases/$RELEASE_ID/attach_files?access_token=$TOKEN" \
-H "Content-Type: multipart/form-data" -F "file=@release/MetonaOllama-Portable-3.2.0.exe"
``` ```
## 故障排查 ## 故障排查
+1 -9
View File
@@ -14,8 +14,7 @@
"start": "npm run build && electron . --no-sandbox", "start": "npm run build && electron . --no-sandbox",
"pack": "npm run build && electron-builder --dir", "pack": "npm run build && electron-builder --dir",
"dist": "npm run build && electron-builder --win", "dist": "npm run build && electron-builder --win",
"dist:nsis": "npm run build && electron-builder --win nsis", "dist:nsis": "npm run build && electron-builder --win nsis"
"dist:portable": "npm run build && electron-builder --win portable"
}, },
"build": { "build": {
"appId": "com.metona.ollama-desktop", "appId": "com.metona.ollama-desktop",
@@ -33,10 +32,6 @@
{ {
"target": "nsis", "target": "nsis",
"arch": ["x64"] "arch": ["x64"]
},
{
"target": "portable",
"arch": ["x64"]
} }
], ],
"icon": "assets/icons/llama.ico", "icon": "assets/icons/llama.ico",
@@ -51,9 +46,6 @@
"installerIcon": "assets/icons/llama.ico", "installerIcon": "assets/icons/llama.ico",
"uninstallerIcon": "assets/icons/llama.ico", "uninstallerIcon": "assets/icons/llama.ico",
"installerHeaderIcon": "assets/icons/llama.ico" "installerHeaderIcon": "assets/icons/llama.ico"
},
"portable": {
"artifactName": "MetonaOllama-Portable-${version}.exe"
} }
}, },
"devDependencies": { "devDependencies": {