Merge pull request #5087 from maron2000/master

Fix Windows installer release version build procedure
This commit is contained in:
Jonathan Campbell 2024-07-02 12:17:29 -07:00 committed by GitHub
commit 1d3c1b6147
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -244,6 +244,12 @@ jobs:
with:
path: ${{ github.workspace }}/mingw-bin
key: mingw-xp-bin-r-${{ github.sha }}
- name: Update release version
if: startsWith(github.ref, 'refs/tags/')
shell: bash
run: |
DOSBOX_X_RELEASE=`gh release list -L1 | grep -o "....-..-.." | head -n 1 | sed -e "s/-/./g"`
sed -i "s/^#define MyAppVersion.*/#define MyAppVersion \"$DOSBOX_X_RELEASE\"/" contrib/windows/installer/DOSBox-X-setupXP.iss
- name: Prepare files
shell: bash
run: |

View File

@ -219,7 +219,7 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/vs-bin
path: ${{ github.workspace }}/mingw-x86-bin
key: mingw-x86-bin-r-${{ github.sha }}
MinGW64_CI_build:
permissions:
@ -278,7 +278,7 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/vs-bin
path: ${{ github.workspace }}/mingw-x64-bin
key: mingw-x64-bin-r-${{ github.sha }}
Build_Windows_Installer:
permissions: