Fix Earthfile linux tauri build

This commit is contained in:
Vladimir Stoilov 2024-07-22 15:26:22 +03:00
parent 5ec32d102e
commit 29a4b737fb
No known key found for this signature in database
GPG key ID: 2F190B67A43A81AF

View file

@ -495,12 +495,12 @@ tauri-build:
RUN echo output: $(ls -R "target/${target}/release") RUN echo output: $(ls -R "target/${target}/release")
LET outbin="error" LET outbin="error"
FOR bin IN "portmaster Portmaster.exe WebView2Loader.dll" FOR bin IN "app app.exe WebView2Loader.dll"
# Modify output binary. # Modify output binary.
SET outbin="${bin}" SET outbin="${bin}"
IF [ "${bin}" = "portmaster" ] IF [ "${bin}" = "app" ]
SET outbin="portmaster-app" SET outbin="portmaster-app"
ELSE IF [ "${bin}" = "Portmaster.exe" ] ELSE IF [ "${bin}" = "app.exe" ]
SET outbin="portmaster-app.exe" SET outbin="portmaster-app.exe"
END END
# Save output binary as local artifact. # Save output binary as local artifact.