Skip to content

Commit 8964197

Browse files
committed
Add version flag to msi
1 parent 50765ba commit 8964197

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ jobs:
129129
- name: Install binary
130130
if: matrix.platform == 'windows-latest'
131131
run: |
132-
$file = "dfetch.msi"
132+
$file = Get-ChildItem dfetch*.msi | Select-Object -First 1
133+
if (-not $file) { throw "MSI not found" }
133134
$log = "install.log"
134135
$procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru
135136
$procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru

script/package.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,8 @@ def package_windows() -> None:
243243
["dotnet", "build", str(wix_proj), "-c", "Release", "-o", str(OUTPUT_DIR)]
244244
)
245245

246+
shutil.move(OUTPUT_DIR / "dfetch.msi", msi_file)
247+
246248
print(f"MSI generated at {msi_file}")
247249

248250

0 commit comments

Comments
 (0)