Files
umbrix/scripts/package_windows.ps1

10 lines
687 B
PowerShell
Raw Normal View History

2023-12-28 17:53:53 +03:30
New-Item -ItemType Directory -Force -Name "dist/tmp"
2023-12-28 17:16:02 +03:30
New-Item -ItemType Directory -Force -Name "out"
# windows setup
2023-12-28 17:53:53 +03:30
Get-ChildItem -Recurse -File -Path "dist" -Filter "*windows-setup.exe" | Copy-Item -Destination "dist/tmp/hiddify-next-setup.exe" -ErrorAction SilentlyContinue
Compress-Archive -Force -Path "dist/tmp/hiddify-next-setup.exe",".github/help/mac-windows/*.url" -DestinationPath "out/hiddify-windows-x64-setup.zip"
2023-12-28 17:16:02 +03:30
# windows portable
2023-12-28 17:53:53 +03:30
Copy-Item -Force -Path "build/windows/x64/runner/Release/*",".github/help/mac-windows/*.url" -Destination "dist/tmp/hiddify-next"
Compress-Archive -Force -Path "dist/tmp/hiddify-next" -DestinationPath "out/hiddify-windows-x64-portable.zip"