From 4d25490c68b4ca64110da3b8d7f19ba73db295c8 Mon Sep 17 00:00:00 2001 From: thzxx Date: Tue, 7 Apr 2026 19:41:12 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E4=BE=BF=E6=90=BA?= =?UTF-8?q?=E7=89=88=E6=9E=84=E5=BB=BA=EF=BC=8C=E5=90=8E=E7=BB=AD=E4=BB=85?= =?UTF-8?q?=E6=8F=90=E4=BE=9B=20NSIS=20=E5=AE=89=E8=A3=85=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/BUILD.md | 8 +++----- package.json | 10 +--------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/docs/BUILD.md b/docs/BUILD.md index f828caf..430adb2 100644 --- a/docs/BUILD.md +++ b/docs/BUILD.md @@ -84,8 +84,7 @@ ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ npm run dist npm start # 开发运行 npm run pack # 仅构建目录(不打包) npm run dist:nsis # 仅 NSIS 安装包 -npm run dist:portable # 仅绿色便携版 -npm run dist # 全部(NSIS + Portable) +npm run dist # NSIS 安装包 ``` ## 构建产物 @@ -93,7 +92,8 @@ npm run dist # 全部(NSIS + Portable) | 文件 | 说明 | |------|------| | `release/Metona Ollama Setup X.X.X.exe` | NSIS 安装包(可选目录、创建快捷方式) | -| `release/MetonaOllama-Portable-X.X.X.exe` | 绿色便携版(免安装,双击即用) | + +> v3.2.0 起不再提供绿色便携版,仅保留 NSIS 安装包。 ## 发布到 Gitee @@ -113,8 +113,6 @@ TOKEN="your_access_token" RELEASE_ID="600564" 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" -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" ``` ## 故障排查 diff --git a/package.json b/package.json index d728d6d..c3ea1c2 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,7 @@ "start": "npm run build && electron . --no-sandbox", "pack": "npm run build && electron-builder --dir", "dist": "npm run build && electron-builder --win", - "dist:nsis": "npm run build && electron-builder --win nsis", - "dist:portable": "npm run build && electron-builder --win portable" + "dist:nsis": "npm run build && electron-builder --win nsis" }, "build": { "appId": "com.metona.ollama-desktop", @@ -33,10 +32,6 @@ { "target": "nsis", "arch": ["x64"] - }, - { - "target": "portable", - "arch": ["x64"] } ], "icon": "assets/icons/llama.ico", @@ -51,9 +46,6 @@ "installerIcon": "assets/icons/llama.ico", "uninstallerIcon": "assets/icons/llama.ico", "installerHeaderIcon": "assets/icons/llama.ico" - }, - "portable": { - "artifactName": "MetonaOllama-Portable-${version}.exe" } }, "devDependencies": {