File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ var UseAuthCanI bool = true
27
27
// Main starts Peirates[]
28
28
func Main () {
29
29
// Peirates version string
30
- var version = "1.1.19 "
30
+ var version = "1.1.20 "
31
31
32
32
var err error
33
33
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ function compress() {
30
30
rmdir peirates-${OS} -${ARCH}
31
31
}
32
32
33
- function build() {
33
+ function build-dynamic () {
34
34
echo " Building for arch: ${ARCH} "
35
35
GOOS=${OS} GOARCH=${ARCH} go build -ldflags=" -s -w" $( realpath ../cmd/peirates)
36
36
if [ ! -d peirates-${OS} -${ARCH} ] ; then
@@ -42,6 +42,18 @@ function build() {
42
42
fi
43
43
}
44
44
45
+ function build() {
46
+ echo " Building for arch: ${ARCH} "
47
+ GOOS=${OS} GOARCH=${ARCH} go build -ldflags=" -s -w" $( realpath ../cmd/peirates)
48
+ if [ ! -d peirates-${OS} -${ARCH} ] ; then
49
+ mkdir peirates-${OS} -${ARCH}
50
+ fi
51
+ mv peirates peirates-${OS} -${ARCH}
52
+ if [ $COMPRESS == " yes" ] ; then
53
+ compress ${ARCH}
54
+ fi
55
+ }
56
+
45
57
function main() {
46
58
if [ ! -e ../cmd/peirates ] ; then
47
59
echo " This script must be run from the scripts/ directory."
You can’t perform that action at this time.
0 commit comments