Skip to content

Commit

Permalink
build: add .exe to windows executables
Browse files Browse the repository at this point in the history
  • Loading branch information
xNaCly committed May 2, 2023
1 parent 8e57ef8 commit 88761a1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def build_for_arch(bare: bool, arch: str, _os: str, feature: str, flags: str, ve
b = "-bare_"

cmd = f'go build {bTag} -ldflags="{flags}" -o ./out/fleck{b}{version}+{feature}_{_os}_{arch}'
if _os == "windows":
cmd += ".exe"
subprocess.run(cmd, shell=True, env={
**os.environ, 'CGO_ENABLED': '0', 'GOOS': _os, 'GOARCH': arch}
)
Expand Down

0 comments on commit 88761a1

Please sign in to comment.