Skip to content

Commit

Permalink
[fix] Revise release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
arkark committed Nov 3, 2018
1 parent ad67cfa commit f6f4911
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ FILE_NAME="dprolog-$VERSION-$OS-$ARCH"
echo "Building $FILE_NAME"

mkdir "bin/$FILE_NAME"
dub build -b release --arch=x86_64
cp "bin/dprolog" "bin/$FILE_NAME"
cp -r example "bin/$FILE_NAME/example"
DUB_TARGET_PATH="bin/$FILE_NAME"
DUB_ARCH=x86_64
dub build -b release

tar cvfz "bin/$FILE_NAME.tar.gz" "bin/$FILE_NAME"
tar cvfz "bin/$FILE_NAME.tar.gz" -C bin "$FILE_NAME"
rm -r "bin/$FILE_NAME"

0 comments on commit f6f4911

Please sign in to comment.