File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
URL=https://github.com/smlu/Urgon.git
4
- BRANCH=develop
4
+ BRANCH=master
5
5
6
6
SOURCE_DIR=" Urgon"
7
7
@@ -22,12 +22,21 @@ if [ -d $SOURCE_DIR ]
22
22
then
23
23
pushd .
24
24
cd $SOURCE_DIR
25
+ git checkout $BRANCH || exit 1
25
26
git pull || exit 1
26
27
popd
27
28
else
28
29
git clone $URL -b $BRANCH --recursive $SOURCE_DIR || exit 1
29
30
fi
30
31
32
+ # Checkout to latest tag
33
+ pushd .
34
+ cd $SOURCE_DIR
35
+ git fetch --tags || exit 1
36
+ latestTag=$( git describe --tags ` git rev-list --tags --max-count=1` )
37
+ git checkout $latestTag || exit 1
38
+ git show -s
39
+ popd
31
40
32
41
rm -rf $BUILD_DIR
33
42
@@ -54,13 +63,13 @@ cmake --build $UBUNTU64 -- -j8
54
63
rc=$? ; if [[ $rc != 0 ]]; then exit $rc ; fi
55
64
56
65
# Compress and print hashes
57
- zip -9jq " $OUTDIR /windows-x86.zip" " $WIN32 /bin/cndtool.exe" " $WIN32 /bin/gobext.exe" " $WIN32 /bin/matool.exe"
66
+ zip -9Xjq " $OUTDIR /windows-x86.zip" " $WIN32 /bin/cndtool.exe" " $WIN32 /bin/gobext.exe" " $WIN32 /bin/matool.exe"
58
67
rc=$? ; if [[ $rc != 0 ]]; then exit $rc ; fi
59
68
60
- zip -9jq " $OUTDIR /windows-x86-64.zip" " $WIN64 /bin/cndtool.exe" " $WIN64 /bin/gobext.exe" " $WIN64 /bin/matool.exe"
69
+ zip -9Xjq " $OUTDIR /windows-x86-64.zip" " $WIN64 /bin/cndtool.exe" " $WIN64 /bin/gobext.exe" " $WIN64 /bin/matool.exe"
61
70
rc=$? ; if [[ $rc != 0 ]]; then exit $rc ; fi
62
71
63
- tar -czf " $OUTDIR /linux-x86-64.tar.gz" -C " $UBUNTU64 /bin/" cndtool gobext matool > /dev/null
72
+ tar -czf " $OUTDIR /linux-x86-64.tar.gz" -C " $UBUNTU64 /bin/" cndtool gobext matool | gzip -n > /dev/null
64
73
rc=$? ; if [[ $rc != 0 ]]; then exit $rc ; fi
65
74
66
75
echo " sha256 windows-x86.zip: $( sha256sum $OUTDIR /windows-x86.zip | awk ' { print $1 }' ) "
You can’t perform that action at this time.
0 commit comments