Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set target path to bin/ folder for cleaner builds #335

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 1 addition & 8 deletions release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,8 @@ pushd %SystemDrive%\buildsd
set /p Version=<version.txt
dub build --compiler=ldc2 --arch=x86

if exist windows del /S /Q windows
mkdir windows
copy serve-d.exe windows\serve-d.exe
copy libcurl.dll windows\libcurl.dll
copy libeay32.dll windows\libeay32.dll
copy ssleay32.dll windows\ssleay32.dll

if exist windows.zip del windows.zip
powershell -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('windows', 'windows.zip'); }"
powershell -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::CreateFromDirectory('bin', 'windows.zip'); }"
popd

move %SystemDrive%\buildsd\windows.zip "serve-d_%Version%-windows.zip"
Expand Down
6 changes: 3 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
dub build --compiler=ldc2 --build=release --arch=x86_64 || exit 1
strip serve-d
VERSION=$(./serve-d --version 2>&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