diff --git a/dub.json b/dub.json index ca5b3035..b668c4a0 100644 --- a/dub.json +++ b/dub.json @@ -4,6 +4,7 @@ "license": "MIT", "copyright": "Copyright © 2017-2023, webfreak", "dflags": ["-lowmem"], + "targetPath": "bin/", "dependencies": { "libddoc": "0.8.0", "rm-rf": "~>0.1.0", diff --git a/release.bat b/release.bat index a530e9d1..d7fe9812 100644 --- a/release.bat +++ b/release.bat @@ -18,15 +18,8 @@ pushd %SystemDrive%\buildsd set /p Version=&1 | grep -oh "serve-d standalone v[0-9]*\.[0-9]*\.[0-9]*" | sed "s/serve-d standalone v//") +strip bin/serve-d +VERSION=$(./bin/serve-d --version 2>&1 | grep -oh "serve-d standalone v[0-9]*\.[0-9]*\.[0-9]*" | sed "s/serve-d standalone v//") echo $VERSION > version.txt echo $VERSION -tar cfJ serve-d_$VERSION-linux-x86_64.tar.xz serve-d +tar cfJ serve-d_$VERSION-linux-x86_64.tar.xz bin/serve-d