File tree Expand file tree Collapse file tree 5 files changed +29
-5
lines changed
Expand file tree Collapse file tree 5 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 1+ GOOS=$1
2+ GOARCH=$2
3+ EXT=
4+
5+ if [ " $GOOS " == " " ]; then
6+ GOOS=` go env GOOS`
7+ fi
8+
9+ if [ " $GOARCH " == " " ]; then
10+ GOARCH=` go env GOARCH`
11+ fi
12+
13+ if [ " $GOOS " == " windows" ]; then
14+ EXT=" .exe"
15+ fi
16+
17+ echo " Building from ./pkg/ to ./bin/portables/GoFileEncoder_portable_${GOOS} _${GOARCH}${EXT} "
18+
19+ mkdir -p " ./bin/portables"
20+
21+ go-bindata -pkg " assets" -o " assets/bindata.go" " LICENSE"
22+ go build -o " ./bin/portables/GoFileEncoder_portable_${GOOS} _${GOARCH}${EXT} " " ./pkg/GoFileEncoder.go"
Original file line number Diff line number Diff line change 1+ // src/GoFileEncoder.go
2+
13package main
24
35import (
79 "time"
810
911 "github.com/eliotttak/GoFileEncoder/assets"
10- "github.com/eliotttak/GoFileEncoder/src /communFunctions"
11- "github.com/eliotttak/GoFileEncoder/src /decoder"
12- "github.com/eliotttak/GoFileEncoder/src /encoder"
12+ "github.com/eliotttak/GoFileEncoder/pkg /communFunctions"
13+ "github.com/eliotttak/GoFileEncoder/pkg /decoder"
14+ "github.com/eliotttak/GoFileEncoder/pkg /encoder"
1315)
1416
1517var license string
File renamed without changes.
Original file line number Diff line number Diff line change 99 "syscall"
1010 "time"
1111
12- "github.com/eliotttak/GoFileEncoder/src /communFunctions"
12+ "github.com/eliotttak/GoFileEncoder/pkg /communFunctions"
1313
1414 "github.com/sqweek/dialog"
1515 "golang.org/x/term"
Original file line number Diff line number Diff line change 88 "syscall"
99 "time"
1010
11- "github.com/eliotttak/GoFileEncoder/src /communFunctions"
11+ "github.com/eliotttak/GoFileEncoder/pkg /communFunctions"
1212
1313 "github.com/sqweek/dialog"
1414 "golang.org/x/term"
You can’t perform that action at this time.
0 commit comments