Skip to content

Commit

Permalink
release.sh -- don't require directory of this repo to be named specif…
Browse files Browse the repository at this point in the history
…ically
  • Loading branch information
hmage committed Feb 18, 2019
1 parent 1fc5f15 commit 2de0f82
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ f() {
rm -f dist/AdGuardHome_"$version"_Windows.zip
zip dist/AdGuardHome_"$version"_Windows.zip AdGuardHome.exe README.md LICENSE.txt
else
pushd ..
tar zcvf AdGuardHome/dist/AdGuardHome_"$version"_"$GOOS"_"$GOARCH".tar.gz AdGuardHome/{AdGuardHome,LICENSE.txt,README.md}
rm -rf dist/AdguardHome
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
rm -rf dist/AdguardHome
fi
}

Expand Down

0 comments on commit 2de0f82

Please sign in to comment.