From 26af4238a768696c50aa32896303fad1af0189da Mon Sep 17 00:00:00 2001 From: fikgol Date: Sun, 28 Jun 2020 21:31:40 +0800 Subject: [PATCH] release: Use 7zip for archive release asset --- scripts/release.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index 3a23580a91..82bf471084 100644 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -4,4 +4,9 @@ mkdir -p starcoin-artifacts/ cp -v target/release/starcoin starcoin-artifacts/starcoin cp -v target/release/starcoin_miner starcoin-artifacts/starcoin_miner cp -v target/release/faucet starcoin-artifacts/faucet -zip -r starcoin-$1.zip starcoin-artifacts \ No newline at end of file + +if [ "$1" == "windows-latest" ]; then + 7z a -r starcoin-$1.zip starcoin-artifacts +else + zip -r starcoin-$1.zip starcoin-artifacts +fi \ No newline at end of file