perf: speed up ziggy initialization by using less aggressive binary compression

This commit is contained in:
tomasklaen
2023-11-04 15:02:45 +01:00
parent c18b374d32
commit a8f040af0d
2 changed files with 6 additions and 6 deletions

View File

@@ -64,9 +64,9 @@ elif [ "$1" = "ziggy" ]; then
if [ "$2" = "-c" ]; then if [ "$2" = "-c" ]; then
echo "Compressing binaries..." echo "Compressing binaries..."
upx --brute "$out_dir/ziggy-windows.exe" upx "$out_dir/ziggy-windows.exe"
upx --brute "$out_dir/ziggy-linux" upx "$out_dir/ziggy-linux"
upx --brute "$out_dir/ziggy-darwin" upx "$out_dir/ziggy-darwin"
fi fi
unset GOARCH unset GOARCH

View File

@@ -64,9 +64,9 @@ elseif ($args[0] -eq "ziggy") {
if ($args[1] -eq "-c") { if ($args[1] -eq "-c") {
Write-Output "Compressing binaries..." Write-Output "Compressing binaries..."
upx --brute "$OutDir/ziggy-windows.exe" upx "$OutDir/ziggy-windows.exe"
upx --brute "$OutDir/ziggy-linux" upx "$OutDir/ziggy-linux"
upx --brute "$OutDir/ziggy-darwin" upx "$OutDir/ziggy-darwin"
} }
Remove-Item Env:\GOOS Remove-Item Env:\GOOS