Added a buildscript.
This commit is contained in:
parent
d7b94b978c
commit
d29d658d72
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
builds
|
12
build.sh
12
build.sh
@ -1,4 +1,10 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
env GOOS=linux GOARCH=amd64 go build -o timepercentage.linux-amd64
|
||||
env GOOS=windows GOARCH=amd64 go build -o timepercentage.windows-amd64.exe
|
||||
mkdir -p builds
|
||||
|
||||
rm builds/*
|
||||
|
||||
go tool dist list | grep -v android | grep -v ios | grep -v wasip1 | awk -F '/' '{printf "echo Compiling %s/%s; env CGO_ENABLED=1 GOOS=%s GOARCH=%s go build -o builds/timepercentage.%s-%s\n",$1,$2,$1,$2,$1,$2 }' | sh
|
||||
|
||||
cd builds
|
||||
for i in `ls *windows*`; do mv -v $i $i.exe; done
|
Loading…
x
Reference in New Issue
Block a user