Fix windows packaging

This commit is contained in:
problematicconsumer
2023-12-28 17:16:02 +03:30
parent 65847d3ea3
commit e923ae3a97
2 changed files with 10 additions and 21 deletions

View File

@@ -0,0 +1,9 @@
New-Item -ItemType Directory -Force -Name "out"
# windows setup
Get-ChildItem -Recurse -File -Path "dist" -Filter "*windows-setup.exe" | Copy-Item -Destination "out/hiddify-next-setup.exe" -ErrorAction SilentlyContinue
Compress-Archive -Force -Path "out/hiddify-next-setup.exe",".github/help/mac-windows/*.url" -DestinationPath "out/hiddify-windows-x64-setup.zip"
# windows portable
Copy-Item -Force -Path "build/windows/x64/runner/Release/*" -Destination "out/hiddify-next"
Compress-Archive -Force -Path "out/hiddify-next" -DestinationPath "out/hiddify-windows-x64-portable.zip"