mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-07-25 08:02:58 +00:00
readme: add build instructions
This commit is contained in:
parent
f5efcd7985
commit
d869d7a2c9
2 changed files with 23 additions and 11 deletions
|
@ -171,6 +171,15 @@ separate script.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
Python3, Go, and git all must be installed to run the build script.
|
||||||
|
|
||||||
|
Once the dependencies are installed, clone this repo and run
|
||||||
|
`python build_release.py`. If you only want to build for certain OS or
|
||||||
|
ARCH targets, edit the `targets` array in the `build_release.py` file
|
||||||
|
before running it.
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
@Owl-Tec's write up using this tool with ACDS:
|
@Owl-Tec's write up using this tool with ACDS:
|
||||||
|
|
|
@ -8,6 +8,20 @@ import tarfile
|
||||||
# output path (relative to this script)
|
# output path (relative to this script)
|
||||||
outRelativeDir = "_out"
|
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
|
# Script
|
||||||
|
@ -25,17 +39,6 @@ os.makedirs(releaseDir)
|
||||||
# get version number / tag
|
# get version number / tag
|
||||||
gitTag = subprocess.check_output("git describe --tags --abbrev=0").decode('utf-8').strip()
|
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
|
# loop through and build all targets
|
||||||
for target in targets:
|
for target in targets:
|
||||||
# environment vars
|
# environment vars
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue