mirror of
https://github.com/rumanzo/deluge2qbt.git
synced 2024-11-08 12:02:37 +01:00
makefile. cleanup
This commit is contained in:
parent
ad22ff1849
commit
0b81ad5346
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
.idea
|
||||
deluge2qbt_v*
|
||||
deluge2qbt
|
||||
|
26
Makefile
Normal file
26
Makefile
Normal file
@ -0,0 +1,26 @@
|
||||
gotag=1.18.1-bullseye
|
||||
|
||||
commit=$(shell git rev-parse HEAD)
|
||||
|
||||
dockercmd=docker run --rm -v $(CURDIR):/usr/src/deluge2qbt -w /usr/src/deluge2qbt
|
||||
buildtags = -tags forceposix
|
||||
buildenvs = -e CGO_ENABLED=0
|
||||
version = 1.999
|
||||
ldflags = -ldflags="-X 'main.version=$(version)' -X 'main.commit=$(commit)' -X 'main.buildImage=golang:$(gotag)'"
|
||||
|
||||
all: | build
|
||||
|
||||
|
||||
build: windows linux darwin
|
||||
|
||||
windows:
|
||||
$(dockercmd) $(buildenvs) -e GOOS=windows -e GOARCH=amd64 golang:$(gotag) go build -v $(buildtags) $(ldflags) -o deluge2qbt_v$(version)_amd64.exe
|
||||
$(dockercmd) $(buildenvs) -e GOOS=windows -e GOARCH=386 golang:$(gotag) go build -v $(buildtags) $(ldflags) -o deluge2qbt_v$(version)_i386.exe
|
||||
|
||||
linux:
|
||||
$(dockercmd) $(buildenvs) -e GOOS=linux -e GOARCH=amd64 golang:$(gotag) go build -v $(buildtags) $(ldflags) -o deluge2qbt_v$(version)_amd64_linux
|
||||
$(dockercmd) $(buildenvs) -e GOOS=linux -e GOARCH=386 golang:$(gotag) go build -v $(buildtags) $(ldflags) -o deluge2qbt_v$(version)_i386_linux
|
||||
|
||||
darwin:
|
||||
$(dockercmd) $(buildenvs) -e GOOS=darwin -e GOARCH=amd64 golang:$(gotag) go build -v $(buildtags) $(ldflags) -o deluge2qbt_v$(version)_amd64_macos
|
||||
$(dockercmd) $(buildenvs) -e GOOS=darwin -e GOARCH=arm64 golang:$(gotag) go build -v $(buildtags) $(ldflags) -o deluge2qbt_v$(version)_arm64_macos
|
BIN
deluge2qbt
BIN
deluge2qbt
Binary file not shown.
Loading…
Reference in New Issue
Block a user