fix: fix macos white screen

This commit is contained in:
Khairul Hidayat 2024-11-16 05:03:47 +07:00
parent 10f805aab3
commit ad8b67ccd3
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ tmp/
.env
/data.db*
Vaulterm-res.syso
.DS_Store

View File

@ -12,6 +12,7 @@ import (
"github.com/wailsapp/wails/v2/pkg/application"
"github.com/wailsapp/wails/v2/pkg/options"
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
"github.com/wailsapp/wails/v2/pkg/options/mac"
srv "rul.sh/vaulterm/server/app"
)
@ -36,6 +37,9 @@ func main() {
appCtx.startup(ctx)
},
Bind: []interface{}{appCtx},
Mac: &mac.Options{
WebviewIsTransparent: true,
},
})
// Run the local server