From 01940e74b732262ac20e1e5439f8bac6738892bf Mon Sep 17 00:00:00 2001 From: Syngnat Date: Sat, 14 Feb 2026 15:51:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(release.yml):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=9E=84=E5=BB=BA=E8=84=9A=E6=9C=AC=E7=A9=BA=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E6=95=B0=E7=BB=84=E6=9C=AA=E7=BB=91=E5=AE=9A=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Build 步骤改为有标签/无标签分支执行 - 避免 set -u 下 TAG_ARGS[@] 报 unbound variable - 保持 webkit2_41 标签构建路径不变 --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01ae239..9691743 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -135,11 +135,11 @@ jobs: shell: bash run: | set -euo pipefail - TAG_ARGS=() if [ -n "${{ matrix.wails_tags }}" ]; then - TAG_ARGS+=(-tags "${{ matrix.wails_tags }}") + wails build -platform ${{ matrix.platform }} -clean -o ${{ matrix.build_name }} -tags "${{ matrix.wails_tags }}" -ldflags "-s -w -X GoNavi-Wails/internal/app.AppVersion=${{ github.ref_name }}" + else + wails build -platform ${{ matrix.platform }} -clean -o ${{ matrix.build_name }} -ldflags "-s -w -X GoNavi-Wails/internal/app.AppVersion=${{ github.ref_name }}" fi - wails build -platform ${{ matrix.platform }} -clean -o ${{ matrix.build_name }} "${TAG_ARGS[@]}" -ldflags "-s -w -X GoNavi-Wails/internal/app.AppVersion=${{ github.ref_name }}" - name: Build Optional Driver Agents if: ${{ matrix.build_optional_agents }}