CI: build Inno Setup installer instead of zip

This commit is contained in:
SuperDooper
2026-05-11 21:27:59 +02:00
parent 8883000098
commit b9d2c8a5f3
+4 -4
View File
@@ -35,11 +35,11 @@ jobs:
-p:Version=${{ steps.version.outputs.version }} ` -p:Version=${{ steps.version.outputs.version }} `
-o publish -o publish
- name: Zip - name: Build installer
shell: pwsh shell: pwsh
run: | run: |
Copy-Item -Recurse windows/Assets publish/Assets Copy-Item -Recurse windows/Assets publish/Assets
Compress-Archive -Path publish/* -DestinationPath ClaudeChecker-Windows.zip & "C:\Program Files (x86)\Inno Setup 6\iscc.exe" /DAppVersion="${{ steps.version.outputs.version }}" windows\installer.iss
- name: Create GitHub release - name: Create GitHub release
env: env:
@@ -47,7 +47,7 @@ jobs:
shell: bash shell: bash
run: | run: |
notes=$(cat windows/RELEASE_NOTES.md 2>/dev/null || echo "Windows release ${{ steps.version.outputs.version }}") notes=$(cat windows/RELEASE_NOTES.md 2>/dev/null || echo "Windows release ${{ steps.version.outputs.version }}")
gh release create "$GITHUB_REF_NAME" ClaudeChecker-Windows.zip \ gh release create "$GITHUB_REF_NAME" ClaudeChecker-Installer.exe \
--title "$GITHUB_REF_NAME" \ --title "$GITHUB_REF_NAME" \
--notes "$notes" --notes "$notes"
@@ -59,7 +59,7 @@ jobs:
notes=$(cat windows/RELEASE_NOTES.md 2>/dev/null || echo "Windows release ${{ steps.version.outputs.version }}") notes=$(cat windows/RELEASE_NOTES.md 2>/dev/null || echo "Windows release ${{ steps.version.outputs.version }}")
content=$(jq -n \ content=$(jq -n \
--arg version "${{ steps.version.outputs.version }}" \ --arg version "${{ steps.version.outputs.version }}" \
--arg url "https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/ClaudeChecker-Windows.zip" \ --arg url "https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/ClaudeChecker-Installer.exe" \
--arg notes "$notes" \ --arg notes "$notes" \
'{version: $version, url: $url, notes: $notes}' | base64 -w0) '{version: $version, url: $url, notes: $notes}' | base64 -w0)
sha=$(gh api "repos/${{ github.repository }}/contents/version-windows.json?ref=main" --jq .sha 2>/dev/null || echo "") sha=$(gh api "repos/${{ github.repository }}/contents/version-windows.json?ref=main" --jq .sha 2>/dev/null || echo "")