feat(desktop): build and release linux arm/arm64 versions
This commit is contained in:
parent
a1804d3a2e
commit
5b08439651
14
Makefile
14
Makefile
|
@ -4,6 +4,7 @@ GORELEASER_ARGS ?= release --snapshot --rm-dist
|
||||||
GITCHLOG_ARGS ?=
|
GITCHLOG_ARGS ?=
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
JDK_PATH ?= /usr/lib/jvm/java-11-openjdk
|
JDK_PATH ?= /usr/lib/jvm/java-11-openjdk
|
||||||
|
GOARCH ?= amd64
|
||||||
|
|
||||||
MKT_GITEA_RELEASE_PROJECT := arcast
|
MKT_GITEA_RELEASE_PROJECT := arcast
|
||||||
MKT_GITEA_RELEASE_ORG := arcad
|
MKT_GITEA_RELEASE_ORG := arcad
|
||||||
|
@ -22,9 +23,9 @@ test-go: deps
|
||||||
build: build-desktop build-android build-client ## Build artefacts
|
build: build-desktop build-android build-client ## Build artefacts
|
||||||
|
|
||||||
build-desktop: deps ## Build executable
|
build-desktop: deps ## Build executable
|
||||||
CGO_ENABLED=0 go build \
|
CGO_ENABLED=0 GOARCH=$(GOARCH) go build \
|
||||||
-v \
|
-v \
|
||||||
-o ./bin/desktop \
|
-o ./bin/desktop_$(GOARCH) \
|
||||||
./cmd/desktop
|
./cmd/desktop
|
||||||
|
|
||||||
build-client: deps ## Build executable
|
build-client: deps ## Build executable
|
||||||
|
@ -66,7 +67,14 @@ gitea-release: .mktools build
|
||||||
rm -rf .gitea-release
|
rm -rf .gitea-release
|
||||||
mkdir -p .gitea-release
|
mkdir -p .gitea-release
|
||||||
|
|
||||||
cp ./bin/desktop .gitea-release/arcad_player_linux_amd64
|
cp ./bin/desktop_amd64 .gitea-release/arcad_player_linux_amd64
|
||||||
|
|
||||||
|
$(MAKE) GOARCH=arm build-desktop
|
||||||
|
cp ./bin/desktop_arm .gitea-release/arcad_player_linux_arm
|
||||||
|
|
||||||
|
$(MAKE) GOARCH=arm64 build-desktop
|
||||||
|
cp ./bin/desktop_arm64 .gitea-release/arcad_player_linux_arm64
|
||||||
|
|
||||||
cp ./bin/client .gitea-release/arcad_client_linux_amd64
|
cp ./bin/client .gitea-release/arcad_client_linux_amd64
|
||||||
cp ./android/app/build/outputs/apk/debug/app-debug.apk .gitea-release/arcast_player_debug.apk
|
cp ./android/app/build/outputs/apk/debug/app-debug.apk .gitea-release/arcast_player_debug.apk
|
||||||
|
|
||||||
|
|
|
@ -32,4 +32,4 @@ Avoir [Chromium](https://www.chromium.org/chromium-projects/) (ou `Google Chrome
|
||||||
|
|
||||||
#### Dernière version
|
#### Dernière version
|
||||||
|
|
||||||
- Linux: [`amd64`](https://forge.cadoles.com/arcad/arcast/releases/download/latest/arcad_player_linux_amd64)
|
- Linux: [`amd64`](https://forge.cadoles.com/arcad/arcast/releases/download/latest/arcad_player_linux_amd64), [`arm`]([`amd64`](https://forge.cadoles.com/arcad/arcast/releases/download/latest/arcad_player_linux_arm)), [`arm64`](https://forge.cadoles.com/arcad/arcast/releases/download/latest/arcad_player_linux_arm64)
|
|
@ -4,5 +4,5 @@ modd.conf
|
||||||
.env {
|
.env {
|
||||||
prep: make build-client
|
prep: make build-client
|
||||||
prep: make build-desktop
|
prep: make build-desktop
|
||||||
daemon: make run RUN_CMD="bin/desktop --debug --log-level debug run"
|
daemon: make run RUN_CMD="bin/desktop_amd64 --debug --log-level debug run"
|
||||||
}
|
}
|
Loading…
Reference in New Issue