mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-12-04 19:25:53 +00:00
readme: add build instructions
This commit is contained in:
parent
f5efcd7985
commit
d869d7a2c9
2 changed files with 23 additions and 11 deletions
|
|
@ -8,6 +8,20 @@ import tarfile
|
|||
# output path (relative to this script)
|
||||
outRelativeDir = "_out"
|
||||
|
||||
# target strings must be in the format:
|
||||
# `GOOS_GOARCH`
|
||||
# see: https://github.com/golang/go/blob/master/src/internal/syslist/syslist.go
|
||||
# or unofficially: https://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63
|
||||
targets = [
|
||||
"windows_amd64",
|
||||
"linux_amd64",
|
||||
"linux_arm64",
|
||||
"darwin_amd64",
|
||||
"darwin_arm64",
|
||||
"freebsd_amd64",
|
||||
"freebsd_arm64",
|
||||
]
|
||||
|
||||
###
|
||||
|
||||
# Script
|
||||
|
|
@ -25,17 +39,6 @@ os.makedirs(releaseDir)
|
|||
# get version number / tag
|
||||
gitTag = subprocess.check_output("git describe --tags --abbrev=0").decode('utf-8').strip()
|
||||
|
||||
# # GOOS_GOARCH to build for
|
||||
targets = [
|
||||
"windows_amd64",
|
||||
"linux_amd64",
|
||||
"linux_arm64",
|
||||
"darwin_amd64",
|
||||
"darwin_arm64",
|
||||
"freebsd_amd64",
|
||||
"freebsd_arm64",
|
||||
]
|
||||
|
||||
# loop through and build all targets
|
||||
for target in targets:
|
||||
# environment vars
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue