mirror of
https://github.com/safing/portmaster
synced 2025-09-02 02:29:12 +00:00
Simplify windows tauri build artifacts
This commit is contained in:
parent
c030ed2e80
commit
6179f0e021
1 changed files with 11 additions and 16 deletions
27
Earthfile
27
Earthfile
|
@ -62,9 +62,9 @@ build:
|
||||||
# TODO:
|
# TODO:
|
||||||
# BUILD +tauri-build --target="x86_64-pc-windows-gnu"
|
# BUILD +tauri-build --target="x86_64-pc-windows-gnu"
|
||||||
|
|
||||||
# Bild Tauri release bundle for Windows:
|
# Bild Tauri bundle for Windows:
|
||||||
# ./dist/windows_amd64/portmaster-app_vX-X-X.zip
|
# ./dist/windows_amd64/portmaster-app_vX-X-X.zip
|
||||||
BUILD +tauri-windows-release-bundle
|
BUILD +tauri-build-windows-bundle
|
||||||
|
|
||||||
# Build UI assets:
|
# Build UI assets:
|
||||||
# ./dist/all/assets.zip
|
# ./dist/all/assets.zip
|
||||||
|
@ -82,7 +82,7 @@ angular-ci:
|
||||||
|
|
||||||
tauri-ci:
|
tauri-ci:
|
||||||
BUILD +tauri-build --target="x86_64-unknown-linux-gnu"
|
BUILD +tauri-build --target="x86_64-unknown-linux-gnu"
|
||||||
BUILD +tauri-windows-release-bundle
|
BUILD +tauri-build-windows-bundle
|
||||||
|
|
||||||
kext-ci:
|
kext-ci:
|
||||||
BUILD +kext-build
|
BUILD +kext-build
|
||||||
|
@ -504,22 +504,17 @@ tauri-build:
|
||||||
# DO rust+CROSS --target="${target}"
|
# DO rust+CROSS --target="${target}"
|
||||||
|
|
||||||
RUN echo output: $(ls -R "target/${target}/release")
|
RUN echo output: $(ls -R "target/${target}/release")
|
||||||
LET outbin="error"
|
|
||||||
FOR bin IN "app app.exe WebView2Loader.dll"
|
# Binaries
|
||||||
# Modify output binary.
|
SAVE ARTIFACT --if-exists --keep-ts "target/${target}/release/app" AS LOCAL "${outputDir}/${GO_ARCH_STRING}/portmaster-app"
|
||||||
SET outbin="${bin}"
|
SAVE ARTIFACT --if-exists --keep-ts "target/${target}/release/app.exe" AS LOCAL "${outputDir}/${GO_ARCH_STRING}/portmaster-app.exe"
|
||||||
IF [ "${bin}" = "app" ]
|
SAVE ARTIFACT --if-exists --keep-ts "target/${target}/release/WebView2Loader.dll" AS LOCAL "${outputDir}/${GO_ARCH_STRING}/WebView2Loader.dll"
|
||||||
SET outbin="portmaster-app"
|
|
||||||
ELSE IF [ "${bin}" = "app.exe" ]
|
# Installers
|
||||||
SET outbin="portmaster-app.exe"
|
|
||||||
END
|
|
||||||
# Save output binary as local artifact.
|
|
||||||
SAVE ARTIFACT --if-exists --keep-ts "target/${target}/release/${bin}" AS LOCAL "${outputDir}/${GO_ARCH_STRING}/${outbin}"
|
|
||||||
END
|
|
||||||
SAVE ARTIFACT --if-exists --keep-ts "target/${target}/release/bundle/deb/*.deb" AS LOCAL "${outputDir}/${GO_ARCH_STRING}/"
|
SAVE ARTIFACT --if-exists --keep-ts "target/${target}/release/bundle/deb/*.deb" AS LOCAL "${outputDir}/${GO_ARCH_STRING}/"
|
||||||
SAVE ARTIFACT --if-exists --keep-ts "target/${target}/release/bundle/rpm/*.rpm" AS LOCAL "${outputDir}/${GO_ARCH_STRING}/"
|
SAVE ARTIFACT --if-exists --keep-ts "target/${target}/release/bundle/rpm/*.rpm" AS LOCAL "${outputDir}/${GO_ARCH_STRING}/"
|
||||||
|
|
||||||
tauri-windows-release-bundle:
|
tauri-build-windows-bundle:
|
||||||
FROM +tauri-src
|
FROM +tauri-src
|
||||||
|
|
||||||
ARG target="x86_64-pc-windows-gnu"
|
ARG target="x86_64-pc-windows-gnu"
|
||||||
|
|
Loading…
Add table
Reference in a new issue