release.sh -- don't require directory of this repo to be named specifically

This commit is contained in:
Eugene Bujak 2019-02-18 21:13:58 +03:00
parent 1fc5f15aaa
commit 2de0f82bbc

View File

@ -15,9 +15,13 @@ f() {
rm -f dist/AdGuardHome_"$version"_Windows.zip rm -f dist/AdGuardHome_"$version"_Windows.zip
zip dist/AdGuardHome_"$version"_Windows.zip AdGuardHome.exe README.md LICENSE.txt zip dist/AdGuardHome_"$version"_Windows.zip AdGuardHome.exe README.md LICENSE.txt
else else
pushd .. rm -rf dist/AdguardHome
tar zcvf AdGuardHome/dist/AdGuardHome_"$version"_"$GOOS"_"$GOARCH".tar.gz AdGuardHome/{AdGuardHome,LICENSE.txt,README.md} mkdir -p dist/AdGuardHome
cp -pv {AdGuardHome,LICENSE.txt,README.md} dist/AdGuardHome/
pushd dist
tar zcvf AdGuardHome_"$version"_"$GOOS"_"$GOARCH".tar.gz AdGuardHome/{AdGuardHome,LICENSE.txt,README.md}
popd popd
rm -rf dist/AdguardHome
fi fi
} }