Update version info before build

This commit is contained in:
Barichello 2022-01-19 15:32:25 -03:00
parent 36e10c10a7
commit 922a481776
No known key found for this signature in database
GPG Key ID: 29197D315AE4FF67
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,12 @@ jobs:
ref: ${{ env.NORTHSTAR_VERSION }}
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Setup resource file version
shell: bash
run: |
sed -i 's/DEV/${{ env.NORTHSTAR_VERSION }}/g' LauncherInjector/resources.rc
FILEVERSION=$(echo ${{ env.NORTHSTAR_VERSION }} | tr '.' ',' | tr -d 'v')
sed -i "s/0,0,0,0/${FILEVERSION}/g" LauncherInjector/resources.rc
- name: Build
run: msbuild /p:Configuration=Release
- name: Upload Build Artifact