Преглед изворни кода

feat(scripts): use zip for windows and darwin

zip files are more common on OSX and windows. Use those file formats for
those two platforms.
Brandon Philips пре 12 година
родитељ
комит
a00bf38f16
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      scripts/build-release

+ 5 - 1
scripts/build-release

@@ -47,5 +47,9 @@ for i in darwin windows linux; do
 	package etcd ${TARGET}
 	package etcdctl ${TARGET}
 
-	tar cvvfz ${TARGET}.tar.gz ${TARGET}
+	if [ ${GOOS} == "linux" ]; then
+		tar cvvfz ${TARGET}.tar.gz ${TARGET}
+	else
+		zip -r ${TARGET}.zip ${TARGET}
+	fi
 done