Skip to content

Commit

Permalink
Cache downloaded files for next release
Browse files Browse the repository at this point in the history
  • Loading branch information
carnhofdaki committed Nov 27, 2019
1 parent e795141 commit 233d14a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ release/
*.exe
*.sfx
*.zip
*.7z
9 changes: 3 additions & 6 deletions 00-prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
for dep in wget 7z md5sum stat bc upx jq
do type $dep; done

test -r .prepared || {
test -r .prepared-$version || {
. $PWD/vars.inc

sh deps-list.sh | wget -nc -ci - || true
Expand All @@ -18,7 +18,6 @@ test -r elevate.exe || {
md5sum -c <<EOF
7178d69ded53b7683dd52cd1ca0a20ff elevate.exe
EOF
rm -f elevate-1.3.0-redist.7z

test -r 7zCon.sfx || {
mkdir tmp
Expand All @@ -28,10 +27,8 @@ test -r 7zCon.sfx || {
cd ..
rm -rf tmp
}
rm -f 7z1900.exe

SIZE=$(stat -c "%b*%B" yggdrasil-$version-windows-i386.exe | bc)
test $SIZE -lt 1824704 || upx yggdrasil-$version-windows-i386.exe
upx yggdrasil-$version-windows-i386.exe

touch .prepared
touch .prepared-$version
}
7 changes: 3 additions & 4 deletions 01-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ cp -r waash/data $ROUT
mkdir -p $ROUT/deps/bin

unzip UnxUpdates.zip sed.exe
rm UnxUpdates.zip

sh gen-README.sh > $ROUT/README.txt
mv yggdrasil-$version-*.exe $ROUT/deps/bin/yggdrasil-windows-i386.exe
mv *.exe $ROUT/deps/bin
mv *.sfx $R
cp yggdrasil-$version-*.exe $ROUT/deps/bin/yggdrasil-windows-i386.exe
cp *.exe $ROUT/deps/bin
cp *.sfx $R
unix2dos $ROUT/*.bat
unix2dos $ROUT/deps/*.txt
}
Expand Down

0 comments on commit 233d14a

Please sign in to comment.