From f1bd12b5c3a1691fd04eec54ece1bf6d0cc29c22 Mon Sep 17 00:00:00 2001 From: xiaoyu <7547189+xytoki@users.noreply.github.com> Date: Sun, 26 Jan 2025 16:10:10 +0800 Subject: [PATCH] feat: single binary update mode --- .github/workflows/publish.yml | 8 -------- kachina.config.json | 5 +++-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fb0a75d..0f72997 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -162,14 +162,6 @@ jobs: cd dist ..\kachina-builder.exe gen -j 6 -i BetterGI -m metadata.json -o hashed -r babalae/bettergi -t ${{ needs.build_dist.outputs.version }} --diff-vers ..\last\BetterGI --diff-ignore *[.txt,.onnx] -u .\BetterGI\BetterGI.update.exe ..\kachina-builder.exe pack -c ../kachina.config.json -m metadata.json -d hashed -o BetterGI.Install.${{ needs.build_dist.outputs.version }}.exe - - name: 📦 Generate archive - run: | - cd dist - 7z a dfs.tar hashed/ metadata.json -r -y - - uses: actions/upload-artifact@v4 - with: - name: dfs - path: dist/dfs.tar - uses: actions/upload-artifact@v4 with: name: BetterGI_Install diff --git a/kachina.config.json b/kachina.config.json index b52d456..454b703 100644 --- a/kachina.config.json +++ b/kachina.config.json @@ -1,5 +1,5 @@ { - "dfsPath": "bgi", + "source": "dfs+packed+https://77.cocogoat.cn/v2/dfs/bgi/BetterGI.Install.exe", "appName": "BetterGI", "publisher": "babalae", "regName": "BetterGI", @@ -11,5 +11,6 @@ "description": "更好的原神,免费且开源", "windowTitle": "BetterGI 安装程序", "userDataPath": ["${INSTALL_PATH}/User"], - "extraUninstallPath": ["${INSTALL_PATH}/log"] + "extraUninstallPath": ["${INSTALL_PATH}/log"], + "uacStrategy": "prefer-admin" }