From e0b966eb551b639dac132a8a96b0337c0f20e6c0 Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 12 Jan 2024 15:49:24 +0100 Subject: [PATCH] chore: add gitea-release task --- .gitignore | 4 +++- Makefile | 34 ++++++++++++++++++++++++++++++++++ README.md | 4 ++-- 3 files changed, 39 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index f4667f9..7b74fc8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ /bin /dist /.env -/tools \ No newline at end of file +/tools +.mktools/ +/.gitea-release \ No newline at end of file diff --git a/Makefile b/Makefile index 2e853a8..260c46d 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ GITCHLOG_ARGS ?= SHELL := /bin/bash JDK_PATH ?= /usr/lib/jvm/java-11-openjdk +MKT_GITEA_RELEASE_PROJECT := arcast +MKT_GITEA_RELEASE_ORG := arcad + GOTEST_ARGS ?= -short watch: tools/modd/bin/modd deps ## Watching updated files - live reload @@ -58,3 +61,34 @@ tools/modd/bin/modd: tools/gogio/bin/gogio: mkdir -p tools/gogio/bin GOBIN=$(PWD)/tools/gogio/bin go install gioui.org/cmd/gogio@latest + +gitea-release: .mktools build + rm -rf .gitea-release + mkdir -p .gitea-release + + cp ./bin/desktop .gitea-release/arcad_player_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 + + MKT_GITEA_RELEASE_PROJECT="arcast" \ + MKT_GITEA_RELEASE_ORG="arcad" \ + MKT_GITEA_RELEASE_BASE_URL="https://forge.cadoles.com" \ + MKT_GITEA_RELEASE_VERSION="$(MKT_PROJECT_VERSION)" \ + MKT_GITEA_RELEASE_NAME="$(MKT_PROJECT_VERSION)" \ + MKT_GITEA_RELEASE_COMMITISH_TARGET="$$(git rev-parse HEAD)" \ + MKT_GITEA_RELEASE_IS_DRAFT="false" \ + MKT_GITEA_RELEASE_IS_PRERELEASE="false" \ + MKT_GITEA_RELEASE_BODY="" \ + MKT_GITEA_RELEASE_ATTACHMENTS="$$(find .gitea-release/* -type f)" \ + $(MAKE) mkt-gitea-release + + +.PHONY: mktools +mktools: + rm -rf .mktools + curl -q https://forge.cadoles.com/Cadoles/mktools/raw/branch/master/install.sh | $(SHELL) + +.mktools: + $(MAKE) mktools + +-include .mktools/*.mk \ No newline at end of file diff --git a/README.md b/README.md index 82c949a..f652c76 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Le client en ligne de commande vous permet de contrôler votre flotte de serveur #### Dernière version -- Linux: [`amd64`](https://forge.cadoles.com/arcad/arcast/releases/download/latest/arcast_client_linux_amd64) +- Linux: [`amd64`](https://forge.cadoles.com/arcad/arcast/releases/download/latest/arcad_client_linux_amd64) ### Application Android @@ -32,4 +32,4 @@ Avoir [Chromium](https://www.chromium.org/chromium-projects/) (ou `Google Chrome #### Dernière version -- Linux: [`amd64`](https://forge.cadoles.com/arcad/arcast/releases/download/latest/arcast_player_linux_amd64) \ No newline at end of file +- Linux: [`amd64`]https://forge.cadoles.com/arcad/arcast/releases/download/latest/arcad_player_linux_amd64) \ No newline at end of file