mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-07-22 14:52:56 +00:00
build: fix subprocess args
This commit is contained in:
parent
6343cb0912
commit
6537b88ffa
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ os.makedirs(outBaseDir)
|
||||||
os.makedirs(releaseDir)
|
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()
|
||||||
|
|
||||||
# loop through and build all targets
|
# loop through and build all targets
|
||||||
for target in targets:
|
for target in targets:
|
||||||
|
@ -60,8 +60,8 @@ for target in targets:
|
||||||
extension = ".exe"
|
extension = ".exe"
|
||||||
|
|
||||||
# build binary and install only binary
|
# build binary and install only binary
|
||||||
subprocess.run(f"go build -o {targetOutDir}/apc-p15-tool{extension} ./cmd/tool")
|
subprocess.run(["go", "build", "-o", f"{targetOutDir}/apc-p15-tool{extension}", "./cmd/tool"])
|
||||||
subprocess.run(f"go build -o {targetOutDir}/apc-p15-install{extension} ./cmd/install_only")
|
subprocess.run(["go", "build", "-o", f"{targetOutDir}/apc-p15-install{extension}", "./cmd/install_only"])
|
||||||
|
|
||||||
# copy other important files for release
|
# copy other important files for release
|
||||||
shutil.copy("README.md", targetOutDir)
|
shutil.copy("README.md", targetOutDir)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue