Skip to content

Commit f873275

Browse files
committed
Add the build script for zephyr-sketch-tool
Since I had it and others may run into needing to build it again. ... Also added to gitignore the distrib
1 parent fa2d2f6 commit f873275

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ cflags.txt
77
cxxflags.txt
88
includes.txt
99
provides.ld
10+
cores/arduino/api
11+
/extra/zephyr-sketch-tool/distrib

extra/zephyr-sketch-tool/build.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
VERSION=$1
2+
3+
mkdir -p distrib/linux_amd64
4+
GOOS=linux GOARCH=amd64 go build && mv zephyr-sketch-tool distrib/linux_amd64/zephyr-sketch-tool
5+
6+
mkdir -p distrib/linux_arm64
7+
GOOS=linux GOARCH=arm64 go build && mv zephyr-sketch-tool distrib/linux_arm64/zephyr-sketch-tool
8+
9+
mkdir -p distrib/macos_amd64
10+
GOOS=darwin GOARCH=amd64 go build && mv zephyr-sketch-tool distrib/macos_amd64/zephyr-sketch-tool
11+
12+
mkdir -p distrib/windows_386
13+
GOOS=windows GOARCH=386 go build && mv zephyr-sketch-tool* distrib/windows_386/zephyr-sketch-tool.exe
14+
15+
cd distrib
16+
17+
tar -czf zephyr-sketch-tool-${VERSION}-linux_amd64.tar.gz linux_amd64
18+
tar -czf zephyr-sketch-tool-${VERSION}-linux_arm64.tar.gz linux_arm64
19+
tar -czf zephyr-sketch-tool-${VERSION}-macos_amd64.tar.gz macos_amd64
20+
zip -r zephyr-sketch-tool-${VERSION}-windows_386.zip windows_386

0 commit comments

Comments
 (0)