Skip to content

Commit 2b043ef

Browse files
committed
chore: add build script
1 parent cdddb6c commit 2b043ef

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

scripts/build-release.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# ./scripts/build-release.sh 0.0.0
4+
5+
set -e
6+
VERSION=$1
7+
8+
mvn clean package
9+
10+
echo "Building release ${VERSION}"
11+
12+
INPUT=stringify-json-smt-${VERSION}-jar-with-deps.jar
13+
OUTPUT=stringify-json-smt-${VERSION}.tar.gz
14+
15+
cd target
16+
tar cfz "$OUTPUT" "$INPUT"
17+
printf "Input file:\n$(realpath ${INPUT})\nBuilt into:\n$(realpath ${OUTPUT})"
18+
cd ..

0 commit comments

Comments
 (0)