mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 13:40:22 +03:00
buildscripts: compress release binaries.
Fix update command as well to show compressed files in updates.
This commit is contained in:
+4
-3
@@ -172,11 +172,12 @@ func getReleaseUpdate(updateURL string) {
|
||||
}
|
||||
|
||||
var downloadURL string
|
||||
if runtime.GOOS == "windows" {
|
||||
downloadURL = newUpdateURLPrefix + "/minio.exe"
|
||||
if runtime.GOOS == "windows" || runtime.GOOS == "darwin" {
|
||||
downloadURL = newUpdateURLPrefix + "/minio.zip"
|
||||
} else {
|
||||
downloadURL = newUpdateURLPrefix + "/minio"
|
||||
downloadURL = newUpdateURLPrefix + "/minio.gz"
|
||||
}
|
||||
|
||||
updateMsg := updateMessage{
|
||||
Download: downloadURL,
|
||||
Version: minioVersion,
|
||||
|
||||
Reference in New Issue
Block a user