From 23b68d9e192c08462cb1fd35dc7a280baf4f6a0d Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Fri, 23 Feb 2024 23:59:37 +0800 Subject: [PATCH] fix: can not build Windows installer #163 --- .github/workflows/release-windows.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-windows.yaml b/.github/workflows/release-windows.yaml index 512cd21..b62e852 100644 --- a/.github/workflows/release-windows.yaml +++ b/.github/workflows/release-windows.yaml @@ -24,6 +24,11 @@ jobs: tag=$(echo ${{ matrix.platform }} | sed -e 's/\//_/g' -e 's/amd64/x64/g') echo "tag=$tag" >> "$GITHUB_OUTPUT" + - name: Normalise platform name + id: platform_name + shell: bash + run: tag=$(echo ${{ matrix.platform }} | sed -e 's/\//_/g') + - name: Normalise version tag id: normalise_version shell: bash @@ -97,7 +102,7 @@ jobs: - name: Rename installer working-directory: ./build/bin - run: Rename-Item -Path "TinyRDM-${{ matrix.platform }}-installer.exe" -NewName "TinyRDM_Setup_${{ steps.normalise_version.outputs.version }}_${{ steps.normalise_platform.outputs.tag }}.exe" + run: Rename-Item -Path "TinyRDM-${{ matrix.platform }}-installer.exe" -NewName "TinyRDM_Setup_${{ steps.normalise_version.outputs.version }}_${{ steps.platform_name.outputs.tag }}.exe" - name: Upload release asset (Installer) uses: softprops/action-gh-release@v1