- Updated version to 1.7.5+175 - UmbrixCli.exe now has Umbrix icon (libcore v1.7.1) - Updated appcast.xml for auto-update testing - All Hiddify branding replaced with Umbrix
This commit is contained in:
@@ -1,18 +1,46 @@
|
||||
New-Item -ItemType Directory -Force -Name "dist\tmp"
|
||||
New-Item -ItemType Directory -Force -Name "out"
|
||||
# Umbrix Windows Packaging Script (based on Hiddify)
|
||||
# Creates: Setup.exe + Portable.zip
|
||||
|
||||
# windows setup
|
||||
# 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"
|
||||
Get-ChildItem -Recurse -File -Path "dist" -Filter "*windows-setup.exe" | Copy-Item -Destination "out\Hiddify-Windows-Setup-x64.exe" -ErrorAction SilentlyContinue
|
||||
Get-ChildItem -Recurse -File -Path "dist" -Filter "*windows.msix" | Copy-Item -Destination "out\Hiddify-Windows-Setup-x64.msix" -ErrorAction SilentlyContinue
|
||||
$Version = "1.7.5"
|
||||
|
||||
Write-Host "===============================================" -ForegroundColor Cyan
|
||||
Write-Host " Umbrix Windows Packaging v$Version" -ForegroundColor Cyan
|
||||
Write-Host "===============================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
|
||||
# windows portable
|
||||
xcopy "build\windows\x64\runner\Release" "dist\tmp\hiddify-next" /E/H/C/I/Y
|
||||
xcopy ".github\help\mac-windows\*.url" "dist\tmp\hiddify-next" /E/H/C/I/Y
|
||||
Compress-Archive -Force -Path "dist\tmp\hiddify-next" -DestinationPath "out\Hiddify-Windows-Portable-x64.zip" -ErrorAction SilentlyContinue
|
||||
New-Item -ItemType Directory -Force -Name "dist\tmp" | Out-Null
|
||||
New-Item -ItemType Directory -Force -Name "out" | Out-Null
|
||||
|
||||
Remove-Item -Path "$HOME\.pub-cache\git\cache\flutter_circle_flags*" -Force -Recurse -ErrorAction SilentlyContinue
|
||||
# Windows Setup.exe (if exists in dist/)
|
||||
Write-Host "[1/2] Checking for Setup.exe..." -ForegroundColor Yellow
|
||||
$SetupExe = Get-ChildItem -Recurse -File -Path "dist" -Filter "*windows-setup.exe" -ErrorAction SilentlyContinue
|
||||
if ($SetupExe) {
|
||||
Copy-Item $SetupExe.FullName -Destination "out\Umbrix-Windows-Setup-x64.exe"
|
||||
$size = [math]::Round((Get-Item "out\Umbrix-Windows-Setup-x64.exe").Length / 1MB, 2)
|
||||
Write-Host "SUCCESS: Setup.exe copied: $size MB" -ForegroundColor Green
|
||||
} else {
|
||||
Write-Host "WARNING: Setup.exe not found (will create via Inno Setup)" -ForegroundColor Yellow
|
||||
}
|
||||
|
||||
echo "Done"
|
||||
# Windows Portable ZIP
|
||||
Write-Host ""
|
||||
Write-Host "[2/2] Creating Portable.zip..." -ForegroundColor Yellow
|
||||
xcopy "build\windows\x64\runner\Release" "dist\tmp\umbrix-portable" /E/H/C/I/Y | Out-Null
|
||||
Compress-Archive -Force -Path "dist\tmp\umbrix-portable" -DestinationPath "out\Umbrix-$Version-Windows-x64-Portable.zip"
|
||||
$size = [math]::Round((Get-Item "out\Umbrix-$Version-Windows-x64-Portable.zip").Length / 1MB, 2)
|
||||
Write-Host "SUCCESS: Portable.zip created: $size MB" -ForegroundColor Green
|
||||
|
||||
# Cleanup
|
||||
Remove-Item -Path "dist\tmp" -Recurse -Force -ErrorAction SilentlyContinue
|
||||
|
||||
Write-Host ""
|
||||
Write-Host "===============================================" -ForegroundColor Cyan
|
||||
Write-Host " PACKAGING COMPLETE!" -ForegroundColor Green
|
||||
Write-Host "===============================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
Write-Host "Files in out/:" -ForegroundColor White
|
||||
Get-ChildItem "out" -ErrorAction SilentlyContinue | ForEach-Object {
|
||||
$filesize = [math]::Round($_.Length / 1MB, 2)
|
||||
Write-Host " * $($_.Name) - $filesize MB" -ForegroundColor Gray
|
||||
}
|
||||
Write-Host ""
|
||||
|
||||
Reference in New Issue
Block a user