Skip to content

Commit

Permalink
Update release version for building installer
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 authored Jun 26, 2023
1 parent 7ce0f03 commit 2cd0c65
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/windows-installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -318,21 +318,26 @@ jobs:
cp $top/contrib/translations/*/*.lng $top/package/languages/
cp $top/COPYING $top/package/COPYING
cd $top/package/
$top/vs/tool/zip.exe -r -9 "$top/dosbox-x-mingw-x86_x64-${{ env.timestamp }}.zip" "*"
cd $top
- name: Upload preview package (MinGW)
uses: actions/[email protected]
with:
name: dosbox-x-mingw-x86_x64-${{ env.timestamp }}
path: ${{ github.workspace }}/package/
- 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-installer.iss
- name: Prepare files
shell: bash
run: |
set +e
cp dosbox-*.conf contrib/windows/installer/
ls -lg vs-bin
ls -lg mingw-x64-bin
ls -lg mingw-x86-bin
#ls -lg vs-bin
#ls -lg mingw-x64-bin
#ls -lg mingw-x86-bin
mkdir -p contrib/windows/installer/windows
cp vs-bin/*.exe contrib/windows/installer/windows/
cp mingw-x86-bin/*.exe contrib/windows/installer/windows/
Expand Down

0 comments on commit 2cd0c65

Please sign in to comment.