Fix CI, tauri, angular, go-test

This commit is contained in:
Vladimir Stoilov 2024-07-16 12:31:52 +03:00
parent c868598deb
commit 919cfd89eb
No known key found for this signature in database
GPG key ID: 2F190B67A43A81AF
3 changed files with 11 additions and 11 deletions
Earthfile
assets
desktop/angular/src/app/integration

View file

@ -16,10 +16,10 @@ ARG --global outputDir = "./dist"
# to GOOS, GOARCH and GOARM when building go binaries. See the +RUST_TO_GO_ARCH_STRING
# helper method at the bottom of the file.
ARG --global architectures = "x86_64-unknown-linux-gnu" \
"aarch64-unknown-linux-gnu" \
"x86_64-pc-windows-gnu"
ARG --global architectures = "x86_64-unknown-linux-gnu"
# TODO: Compile errors here:
# "x86_64-pc-windows-gnu" --> Will work only on windows machine
# "aarch64-unknown-linux-gnu" --> Needs new docker container with arm libraries installed
# "aarch64-pc-windows-gnu" \
# "x86_64-apple-darwin" \
# "aarch64-apple-darwin"

View file

@ -14,16 +14,16 @@ const (
// Icons.
var (
//go:embed data/icons/pm_light_green_512.ico
//go:embed data/icons/pm_light_green_256.png
GreenICO []byte
//go:embed data/icons/pm_light_yellow_512.ico
//go:embed data/icons/pm_light_yellow_256.png
YellowICO []byte
//go:embed data/icons/pm_light_red_512.ico
//go:embed data/icons/pm_light_red_256.png
RedICO []byte
//go:embed data/icons/pm_light_blue_512.ico
//go:embed data/icons/pm_light_blue_256.png
BlueICO []byte
// ColoredIcons holds all the icons as .ICOs

View file

@ -28,7 +28,7 @@ function asyncInvoke<T>(method: string, args: object): Promise<T> {
if (typeof event.payload === 'object' && 'error' in event.payload) {
reject(event.payload);
return
};
}
resolve(event.payload);
})
@ -130,7 +130,7 @@ export class TauriIntegrationService implements IntegrationService {
}
}
get_state(key: string): Promise<string> {
get_state(_: string): Promise<string> {
return invoke<string>("get_state");
}
@ -150,7 +150,7 @@ export class TauriIntegrationService implements IntegrationService {
}
onExitRequest(cb: () => void): () => void {
let unlisten: () => void = () => { };
let unlisten: () => void = () => undefined;
listen('exit-requested', () => {
cb();
@ -189,7 +189,7 @@ export class TauriIntegrationService implements IntegrationService {
return;
}
let promptWindow = new Window("prompt", {
const promptWindow = new Window("prompt", {
alwaysOnTop: true,
decorations: false,
minimizable: false,