From ab9255794d374fa54399458d18e7436c441a2e5d Mon Sep 17 00:00:00 2001 From: Daniel Date: Wed, 29 May 2024 10:00:49 +0200 Subject: [PATCH] [build] Add build target for assets.zip --- Earthfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Earthfile b/Earthfile index d691fc37d..9e9de59a1 100644 --- a/Earthfile +++ b/Earthfile @@ -265,6 +265,16 @@ angular-release: BUILD +angular-project --project=portmaster --dist=./dist --configuration=production --baseHref=/ui/modules/portmaster/ BUILD +angular-project --project=tauri-builtin --dist=./dist/tauri-builtin --configuration=production --baseHref=/ +assets: + FROM ${work_image} + RUN apk add zip + + WORKDIR /app/assets + COPY --keep-ts ./assets/data . + RUN zip -r -9 -db assets.zip * + + SAVE ARTIFACT --keep-ts "assets.zip" AS LOCAL "${outputDir}/all/assets.zip" + # A base target for rust to prepare the build container rust-base: FROM ${rust_builder_image} @@ -486,6 +496,7 @@ build: BUILD +go-release BUILD +angular-release BUILD +tauri-release + BUILD +assets release: LOCALLY