mirror of
https://github.com/kernelstub/Ferrum
synced 2026-06-21 13:55:09 +00:00
commit: add source
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
param(
|
||||
[string]$Out = "ferrum.exe"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$env:GOOS = "windows"
|
||||
$env:GOARCH = "amd64"
|
||||
$env:CGO_ENABLED = "0"
|
||||
|
||||
Write-Host "[*] Building Ferrum for Windows x64..."
|
||||
go build -trimpath -ldflags "-s -w" -o $Out ./cmd
|
||||
Write-Host "[+] Built $Out"
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
set -eu
|
||||
|
||||
OUT="${1:-ferrum.exe}"
|
||||
|
||||
echo "[*] Building Ferrum for Windows x64..."
|
||||
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o "$OUT" ./cmd
|
||||
echo "[+] Built $OUT"
|
||||
Reference in New Issue
Block a user