Use proper semver for the installer version

This commit is contained in:
Ty Lamontagne 2024-09-12 17:27:56 -04:00
parent fdbacc0b39
commit 882baa5f55
No known key found for this signature in database
GPG Key ID: 1B9139843421A974
2 changed files with 10 additions and 3 deletions

View File

@ -44,10 +44,17 @@ jobs:
run: |
"C:\Program Files\7-Zip\7z.exe" x -o.\main pcsx2-${{steps.release_download.outputs.tag_name}}-windows-x64-Qt.7z
- name: Get our version tag
shell: bash
run: |
TAG_NAME=${{ steps.release_download.outputs.tag_name }}
VERSION=${TAG_NAME#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Inject Release Tag into Installer Script
shell: bash
run: |
sed -i 's/PCSX2_VERSION_STRING/${{steps.release_download.outputs.tag_name}}/g' 'PCSX2 Installer.iss'
sed -i 's/PCSX2_VERSION_STRING/'"$VERSION"'/g' 'PCSX2 Installer.iss'
- uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
name: Build the Release

View File

@ -3,7 +3,7 @@
#define MyAppName "PCSX2"
; Automatically changed by the GitHub action. An example would be "v2.0.0"
; Automatically changed by the GitHub action. An example would be "2.0.0"
#define MyAppVersion "PCSX2_VERSION_STRING"
#define MyAppPublisher "PCSX2 Team"
#define MyAppURL "https:/pcsx2.net/"
@ -35,7 +35,7 @@ DefaultGroupName={#MyAppName}
DefaultDirName={commonpf64}\{#MyAppName}
OutputDir=PCSX2
OutputBaseFilename={#MyAppName}-{#MyAppVersion}-windows-x64-installer
OutputBaseFilename={#MyAppName}-v{#MyAppVersion}-windows-x64-installer
; InfoAfterFile=README.txt
UninstallDisplayIcon={app}\{#MyAppExeName},0