diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8e28111..300aa105 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,11 @@ jobs: uses: actions/checkout@v6 - name: Get the version id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/} + run: | + # Extract version from tag, strip 'v' prefix and everything after first dash + VERSION=${GITHUB_REF/refs\/tags\/v/} + VERSION=${VERSION%%-*} + echo ::set-output name=VERSION::$VERSION shell: bash - name: Setup MSBuild.exe uses: microsoft/setup-msbuild@v2.0.0 @@ -84,7 +88,7 @@ jobs: run: Compress-Archive -Path ./installer/* -DestinationPath ./CCExtractor_win_portable.zip working-directory: ./windows - name: Build installer - run: wix build -ext WixToolset.UI.wixext -d "AppVersion=${{ steps.get_version.outputs.VERSION }}.0.0" -o CCExtractor.msi installer.wxs + run: wix build -ext WixToolset.UI.wixext -d "AppVersion=${{ steps.get_version.outputs.VERSION }}.0.0" -o CCExtractor.msi installer.wxs CustomUI.wxs working-directory: ./windows - name: Upload as asset uses: AButler/upload-release-assets@v3.0 diff --git a/windows/CustomUI.wxs b/windows/CustomUI.wxs new file mode 100644 index 00000000..507ca6ba --- /dev/null +++ b/windows/CustomUI.wxs @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/windows/installer.wxs b/windows/installer.wxs index cfbbc8c0..38219266 100644 --- a/windows/installer.wxs +++ b/windows/installer.wxs @@ -1,5 +1,5 @@ - - + + @@ -12,15 +12,11 @@ - - - - - - - - - + + + + +