mirror of
https://github.com/safing/portmaster
synced 2025-04-20 19:09:11 +00:00
Fix CI, tauri, angular, go-test
This commit is contained in:
parent
c868598deb
commit
919cfd89eb
3 changed files with 11 additions and 11 deletions
|
@ -16,10 +16,10 @@ ARG --global outputDir = "./dist"
|
||||||
# to GOOS, GOARCH and GOARM when building go binaries. See the +RUST_TO_GO_ARCH_STRING
|
# to GOOS, GOARCH and GOARM when building go binaries. See the +RUST_TO_GO_ARCH_STRING
|
||||||
# helper method at the bottom of the file.
|
# helper method at the bottom of the file.
|
||||||
|
|
||||||
ARG --global architectures = "x86_64-unknown-linux-gnu" \
|
ARG --global architectures = "x86_64-unknown-linux-gnu"
|
||||||
"aarch64-unknown-linux-gnu" \
|
|
||||||
"x86_64-pc-windows-gnu"
|
|
||||||
# TODO: Compile errors here:
|
# 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" \
|
# "aarch64-pc-windows-gnu" \
|
||||||
# "x86_64-apple-darwin" \
|
# "x86_64-apple-darwin" \
|
||||||
# "aarch64-apple-darwin"
|
# "aarch64-apple-darwin"
|
||||||
|
|
|
@ -14,16 +14,16 @@ const (
|
||||||
|
|
||||||
// Icons.
|
// Icons.
|
||||||
var (
|
var (
|
||||||
//go:embed data/icons/pm_light_green_512.ico
|
//go:embed data/icons/pm_light_green_256.png
|
||||||
GreenICO []byte
|
GreenICO []byte
|
||||||
|
|
||||||
//go:embed data/icons/pm_light_yellow_512.ico
|
//go:embed data/icons/pm_light_yellow_256.png
|
||||||
YellowICO []byte
|
YellowICO []byte
|
||||||
|
|
||||||
//go:embed data/icons/pm_light_red_512.ico
|
//go:embed data/icons/pm_light_red_256.png
|
||||||
RedICO []byte
|
RedICO []byte
|
||||||
|
|
||||||
//go:embed data/icons/pm_light_blue_512.ico
|
//go:embed data/icons/pm_light_blue_256.png
|
||||||
BlueICO []byte
|
BlueICO []byte
|
||||||
|
|
||||||
// ColoredIcons holds all the icons as .ICOs
|
// ColoredIcons holds all the icons as .ICOs
|
||||||
|
|
|
@ -28,7 +28,7 @@ function asyncInvoke<T>(method: string, args: object): Promise<T> {
|
||||||
if (typeof event.payload === 'object' && 'error' in event.payload) {
|
if (typeof event.payload === 'object' && 'error' in event.payload) {
|
||||||
reject(event.payload);
|
reject(event.payload);
|
||||||
return
|
return
|
||||||
};
|
}
|
||||||
|
|
||||||
resolve(event.payload);
|
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");
|
return invoke<string>("get_state");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ export class TauriIntegrationService implements IntegrationService {
|
||||||
}
|
}
|
||||||
|
|
||||||
onExitRequest(cb: () => void): () => void {
|
onExitRequest(cb: () => void): () => void {
|
||||||
let unlisten: () => void = () => { };
|
let unlisten: () => void = () => undefined;
|
||||||
|
|
||||||
listen('exit-requested', () => {
|
listen('exit-requested', () => {
|
||||||
cb();
|
cb();
|
||||||
|
@ -189,7 +189,7 @@ export class TauriIntegrationService implements IntegrationService {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let promptWindow = new Window("prompt", {
|
const promptWindow = new Window("prompt", {
|
||||||
alwaysOnTop: true,
|
alwaysOnTop: true,
|
||||||
decorations: false,
|
decorations: false,
|
||||||
minimizable: false,
|
minimizable: false,
|
||||||
|
|
Loading…
Add table
Reference in a new issue