Skip to content

Commit

Permalink
[build] Add build target for assets.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Jun 5, 2024
1 parent d6cea3a commit ab92557
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -486,6 +496,7 @@ build:
BUILD +go-release
BUILD +angular-release
BUILD +tauri-release
BUILD +assets

release:
LOCALLY
Expand Down

0 comments on commit ab92557

Please sign in to comment.