Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ jobs:
- name: Install binary
if: matrix.platform == 'windows-latest'
run: |
$file = "dfetch.msi"
$file = Get-ChildItem dfetch*.msi | Select-Object -First 1
if (-not $file) { throw "MSI not found" }
$log = "install.log"
$procMain = Start-Process "msiexec" "/i `"$file`" /qn /l*! `"$log`"" -NoNewWindow -PassThru
$procLog = Start-Process "powershell" "Get-Content -Path `"$log`" -Wait" -NoNewWindow -PassThru
Expand Down
2 changes: 2 additions & 0 deletions script/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ def package_windows() -> None:
["dotnet", "build", str(wix_proj), "-c", "Release", "-o", str(OUTPUT_DIR)]
)

shutil.move(OUTPUT_DIR / "dfetch.msi", msi_file)

print(f"MSI generated at {msi_file}")


Expand Down
Loading