mirror of
https://github.com/safing/portmaster
synced 2025-04-08 13: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
|
||||
# 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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue