Fix broken tar.gz not having a subdirectory inside.
This commit is contained in:
parent
f417f6257f
commit
110434c2d5
|
@ -9,16 +9,19 @@ version=`git describe --abbrev=4 --dirty --always --tags`
|
||||||
f() {
|
f() {
|
||||||
make cleanfast; CGO_DISABLED=1 make
|
make cleanfast; CGO_DISABLED=1 make
|
||||||
if [[ $GOOS == darwin ]]; then
|
if [[ $GOOS == darwin ]]; then
|
||||||
|
rm -f dist/AdGuardHome_"$version"_MacOS.zip
|
||||||
zip dist/AdGuardHome_"$version"_MacOS.zip AdGuardHome README.md LICENSE.txt
|
zip dist/AdGuardHome_"$version"_MacOS.zip AdGuardHome README.md LICENSE.txt
|
||||||
elif [[ $GOOS == windows ]]; then
|
elif [[ $GOOS == windows ]]; then
|
||||||
|
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
|
||||||
tar zcvf dist/AdGuardHome_"$version"_"$GOOS"_"$GOARCH".tar.gz AdGuardHome README.md LICENSE.txt
|
pushd ..
|
||||||
|
tar zcvf AdGuardHome_"$version"_"$GOOS"_"$GOARCH".tar.gz AdGuardHome/{AdGuardHome,LICENSE.txt,README.md}
|
||||||
|
popd
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Prepare the dist folder
|
# Prepare the dist folder
|
||||||
rm -rf dist
|
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
|
||||||
# Prepare releases
|
# Prepare releases
|
||||||
|
|
Loading…
Reference in New Issue