mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-08 04:28:07 +01:00
build: add automation commands
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,5 +1,6 @@
|
|||||||
lib/
|
lib/
|
||||||
app/
|
app/
|
||||||
|
build/
|
||||||
downloads/
|
downloads/
|
||||||
Unknown/
|
Unknown/
|
||||||
|
|
||||||
|
|||||||
45
justfile
Normal file
45
justfile
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
_default:
|
||||||
|
@just --list
|
||||||
|
|
||||||
|
[group("windows")]
|
||||||
|
windows-amd64:
|
||||||
|
GOOS="windows" GOARCH="amd64" go build -o build/spotiflac-cli-windows-amd64.exe
|
||||||
|
|
||||||
|
[group("windows")]
|
||||||
|
windows-arm64:
|
||||||
|
GOOS="windows" GOARCH="arm64" go build -o build/spotiflac-cli-windows-arm64.exe
|
||||||
|
|
||||||
|
[group("darwin")]
|
||||||
|
darwin-amd64:
|
||||||
|
GOOS="darwin" GOARCH="amd64" go build -o build/spotiflac-cli-macos-amd64
|
||||||
|
|
||||||
|
[group("darwin")]
|
||||||
|
darwin-arm64:
|
||||||
|
GOOS="darwin" GOARCH="arm64" go build -o build/spotiflac-cli-macos-arm64
|
||||||
|
|
||||||
|
[group("linux")]
|
||||||
|
linux-amd64:
|
||||||
|
GOOS="linux" GOARCH="amd64" go build -o build/spotiflac-cli-linux-amd64
|
||||||
|
|
||||||
|
[group("linux")]
|
||||||
|
linux-arm64:
|
||||||
|
GOOS="linux" GOARCH="arm64" go build -o build/spotiflac-cli-linux-arm64
|
||||||
|
|
||||||
|
[group("windows")]
|
||||||
|
windows: windows-amd64 windows-arm64
|
||||||
|
|
||||||
|
[group("darwin")]
|
||||||
|
darwin: darwin-amd64 darwin-arm64
|
||||||
|
|
||||||
|
[group("linux")]
|
||||||
|
linux: linux-amd64 linux-arm64
|
||||||
|
|
||||||
|
# Build for all platforms
|
||||||
|
build: windows darwin linux
|
||||||
|
|
||||||
|
# Push binaries to GitHub releases
|
||||||
|
publish tag:
|
||||||
|
gh release upload $tag build/spotiflac-cli-*
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf build/
|
||||||
Reference in New Issue
Block a user