Initial commit: archer, a Go-native MySQL/MariaDB table archiver
Renamed from arcdb: module path, cmd/archer, internal/archererr, docs, build scripts and ARCHER_* environment variables. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
bc4a6b504f
99 files changed
+12752
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
version="${VERSION:-0.1.0}"
|
||||
commit="${COMMIT:-local}"
|
||||
date="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
|
||||
root="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
ldflags="-s -w -X archer/internal/version.Version=${version} -X archer/internal/version.Commit=${commit} -X archer/internal/version.Date=${date}"
|
||||
|
||||
mkdir -p "$root/dist"
|
||||
cd "$root"
|
||||
GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "$ldflags" -o dist/archer_windows_amd64.exe ./cmd/archer
|
||||
GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "$ldflags" -o dist/archer_linux_amd64 ./cmd/archer
|
||||
echo "built dist/archer_windows_amd64.exe and dist/archer_linux_amd64 (${version}, ${commit})"
|
||||
Reference in new issue
Block a user