File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,33 @@ zbuild-all:
6161test :
6262 cd src; go test -v -timeout 6m
6363
64+ zxbuild-pre :
65+ docker pull techknowlogick/xgo:latest
66+ GOBIN=/home/devel/local/bin/ go install src.techknowlogick.com/xgo@latest
67+
68+ zxbuild :
69+ xgo -gcflags=' -trimpath -a' -tags=" netgo osusergo sqlite_omit_load_extension" -ldflags=' -w -extldflags "-static"' --targets=linux/amd64,linux/arm-6,linux/arm64 ./src/
70+ xgo -trimpath --targets=windows-10.0/amd64,darwin/* ./src/
71+ echo " Run 'sudo chown -R $( whoami) :$( whoami) \" github.com\" && make zxbuild-post'"
72+
73+ zxbuild-post :
74+ mv github.com/proofrock/ bin
75+ rm -rf github.com/
76+ mv bin/ws4sqlite-windows-10.0-amd64.exe bin/ws4slite.exe
77+ cd bin/ && zip -9 ws4sqlite-v0.0.0-win-x86_64.zip ws4slite.exe
78+ rm bin/ws4slite.exe
79+ mv bin/ws4sqlite-darwin-10.12-amd64 bin/ws4slite
80+ cd bin/ && bash -c " tar c ws4slite | gzip -9 > ws4sqlite-v0.0.0-darwin-x86_64.tar.gz"
81+ mv bin/ws4sqlite-darwin-10.12-arm64 bin/ws4slite
82+ cd bin/ && bash -c " tar c ws4slite | gzip -9 > ws4sqlite-v0.0.0-darwin-arm64.tar.gz"
83+ mv bin/ws4sqlite-linux-amd64 bin/ws4slite
84+ cd bin/ && bash -c " tar c ws4slite | gzip -9 > ws4sqlite-v0.0.0-linux-x86_64.tar.gz"
85+ mv bin/ws4sqlite-linux-arm64 bin/ws4slite
86+ cd bin/ && bash -c " tar c ws4slite | gzip -9 > ws4sqlite-v0.0.0-linux-arm64.tar.gz"
87+ mv bin/ws4sqlite-linux-arm-6 bin/ws4slite
88+ cd bin/ && bash -c " tar c ws4slite | gzip -9 > ws4sqlite-v0.0.0-linux-arm-v6.tar.gz"
89+ rm bin/ws4slite
90+
6491docker :
6592 docker buildx build -f Dockerfile --no-cache -t local_ws4sqlite:latest .
6693
You can’t perform that action at this time.
0 commit comments