release.sh -- don't require directory of this repo to be named specifically
This commit is contained in:
parent
1fc5f15aaa
commit
2de0f82bbc
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user