Skip to content

Commit 913c7bc

Browse files
author
arch
committed
improve linux build script
1 parent ee5f95c commit 913c7bc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

build.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,16 @@ else
1818
fi
1919
echo "done"
2020

21-
echo "Add Version"
22-
git tag | sort | tail -n 1 > dist/funscript-editor/funscript_editor/VERSION.txt
21+
echo -n "Get Version ... "
22+
tag="$(git tag | sort | tail -n 1)"
23+
echo "$tag"
24+
25+
echo "Add Version to buld files"
26+
echo "$tag" > dist/funscript-editor/funscript_editor/VERSION.txt
2327

2428
echo "Copy Application Documentation"
2529
mkdir -p dist/funscript-editor/funscript_editor/docs/
2630
cp -rf docs/app/site/ dist/funscript-editor/funscript_editor/docs/
2731

2832
echo "Create Archive"
29-
tar -zcvf dist/funscript-editor.tar.gz dist/funscript-editor
33+
tar -zcvf dist/funscript-editor-${tag}.tar.gz dist/funscript-editor

0 commit comments

Comments
 (0)