fix(windows): Ensure production exes / MSIs don't show "-modified" Git versions (#3432)

Fixes #3384
This commit is contained in:
Reactor Scram
2024-01-30 14:51:10 -06:00
committed by GitHub
parent 9078b72e9b
commit b2b03744b0
2 changed files with 9 additions and 0 deletions

3
.gitattributes vendored Normal file
View File

@@ -0,0 +1,3 @@
# Don't allow Git to mess up line endings, ever
# https://github.com/actions/checkout/issues/135#issuecomment-613329879
* -text

View File

@@ -88,6 +88,8 @@ jobs:
targets: x86_64-pc-windows-msvc
- name: Build release binaries
run: |
# Build Windows Tauri GUI
pnpm install
# Set logs to debug
@@ -107,6 +109,10 @@ jobs:
Get-FileHash ${{ env.BINARY_DEST_PATH }}-x64.exe -Algorithm SHA256 | Select-Object Hash > ${{ env.BINARY_DEST_PATH }}-x64.exe.sha256sum.txt
Get-FileHash ${{ env.BINARY_DEST_PATH }}-x64.msi -Algorithm SHA256 | Select-Object Hash > ${{ env.BINARY_DEST_PATH }}-x64.msi.sha256sum.txt
# This might catch regressions in #3384, depending how CI runners
# handle exit codes
git diff --exit-code
- name: Save Windows client
uses: actions/upload-artifact@v4
with: