File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ GIT_REV="$(git log --pretty=format:'%h' -n 1)"
3
3
BUILD_DATE=" $( date +%Y-%m-%d:%H:%M:%S) "
4
4
COMPILEINFO=" $( echo " +${GIT_REV} +${BUILD_DATE} " | tr -d ' "' ) "
5
5
6
- VERSION=" $( grep " const AppVersion" main.go | cut -f4 -d " " | tr -d ' "' ) "
6
+ VERSION=" $( grep " const AppVersion" main.go | cut -f4 -d " " | tr -d ' "' ) "
7
7
8
8
# Remember to set GOROOT accordingly with your installation
9
9
@@ -19,7 +19,7 @@ mkdir distrib
19
19
for folder in " ${target_folders[@]} "
20
20
do
21
21
22
- IFS=_ read -r -a fields <<< " $folder"
22
+ IFS=_ read -r -a fields <<< " $folder"
23
23
mkdir -p " distrib/${folder} /bin/"
24
24
GOOS=" ${fields[0]} " GOARCH=" ${fields[1]} " go build -o " distrib/${folder} /bin/arduinoOTA" -ldflags " -X main.compileInfo=$COMPILEINFO " main.go
25
25
done
You can’t perform that action at this time.
0 commit comments