From 78148ee37f3d2cef9c572b404ad1cf0b69d184a3 Mon Sep 17 00:00:00 2001 From: idk Date: Mon, 12 Sep 2022 21:56:13 -0400 Subject: [PATCH] fix daily zip generation --- Makefile | 2 +- daily.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bfa93e8..f0317eb 100644 --- a/Makefile +++ b/Makefile @@ -159,7 +159,7 @@ BLANK=`awk '! NF { print NR; exit }' changelog.txt` I2P.zip: I2P-jpackage-windows-$(I2P_VERSION).zip I2P-jpackage-windows-$(I2P_VERSION).zip: - zip I2P-jpackage-windows-$(I2P_VERSION).zip -r build/I2P + sh -c 'powershell Compress-Archive I2P I2P-jpackage-windows-$(I2P_VERSION).zip || zip I2P-jpackage-windows-$(I2P_VERSION).zip -r I2P' changelog: head -n "$(BLANK)" changelog.txt diff --git a/daily.sh b/daily.sh index e450dbc..e7eed79 100755 --- a/daily.sh +++ b/daily.sh @@ -45,7 +45,7 @@ EXECHECKSUM=$(sha256sum "I2P-Profile-Installer-$I2P_VERSION.exe") echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "I2P-Profile-Installer-$I2P_VERSION.exe" -l "$EXECHECKSUM" -t "$TODAYSDATE" -n "I2P-Profile-Installer-$I2P_VERSION.exe" github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "I2P-Profile-Installer-$I2P_VERSION.exe" -l "$EXECHECKSUM" -t "$TODAYSDATE" -n "I2P-Profile-Installer-$I2P_VERSION.exe" cd build || exit -tar -a -cf ../I2P.zip I2P +powershell Compress-Archive I2P I2P-jpackage-windows-$(I2P_VERSION).zip || zip I2P-jpackage-windows-$(I2P_VERSION).zip -r I2P ZIPCHECKSUM=$(sha256sum "../I2P.zip") echo github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../I2P.zip" -l "$ZIPCHECKSUM" -t "$TODAYSDATE" -n "I2P.zip" github-release upload -R -u "$GITHUB_USERNAME" -r "i2p.firefox" -f "../I2P.zip" -l "$ZIPCHECKSUM" -t "$TODAYSDATE" -n "I2P.zip"