verify hostname for open links

This commit is contained in:
Nikita Galaiko 2023-02-21 11:44:09 +01:00
parent 0ce6b3221f
commit c880a68408
No known key found for this signature in database
GPG Key ID: EBAB54E845BA519D
2 changed files with 67 additions and 62 deletions

View File

@ -1,67 +1,67 @@
{ {
"build": { "build": {
"beforeDevCommand": "pnpm dev", "beforeDevCommand": "pnpm dev",
"beforeBuildCommand": "pnpm build", "beforeBuildCommand": "pnpm build",
"devPath": "http://localhost:1420", "devPath": "http://localhost:1420",
"distDir": "../build", "distDir": "../build",
"withGlobalTauri": false "withGlobalTauri": false
},
"package": {
"productName": "GitButler"
},
"tauri": {
"allowlist": {
"all": false,
"shell": {
"all": false,
"open": true
},
"dialog": {
"all": false,
"open": true
},
"window": {
"all": false,
"startDragging": true
},
"path": {
"all": true
}
}, },
"bundle": { "package": {
"active": true, "productName": "GitButler"
"identifier": "com.gitbutler.app.dev",
"category": "DeveloperTool",
"copyright": "Copyright © 2023 GitButler. All rights reserved.",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"targets": ["dmg", "updater"]
}, },
"security": { "tauri": {
"csp": null "allowlist": {
}, "all": false,
"windows": [ "shell": {
{ "all": false,
"fullscreen": false, "open": "^https://test.app.gitbutler.com/"
"height": 600, },
"resizable": true, "dialog": {
"title": "git-butler-tauri", "all": false,
"width": 800, "open": true
"hiddenTitle": true, },
"theme": "Dark", "window": {
"titleBarStyle": "Overlay", "all": false,
"minWidth": 600, "startDragging": true
"minHeight": 300 },
} "path": {
], "all": true
"systemTray": { }
"iconPath": "icons/tray.png", },
"iconAsTemplate": true "bundle": {
"active": true,
"identifier": "com.gitbutler.app.dev",
"category": "DeveloperTool",
"copyright": "Copyright © 2023 GitButler. All rights reserved.",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"targets": ["dmg", "updater"]
},
"security": {
"csp": null
},
"windows": [
{
"fullscreen": false,
"height": 600,
"resizable": true,
"title": "git-butler-tauri",
"width": 800,
"hiddenTitle": true,
"theme": "Dark",
"titleBarStyle": "Overlay",
"minWidth": 600,
"minHeight": 300
}
],
"systemTray": {
"iconPath": "icons/tray.png",
"iconAsTemplate": true
}
} }
}
} }

View File

@ -3,6 +3,11 @@
"bundle": { "bundle": {
"identifier": "com.gitbutler.app" "identifier": "com.gitbutler.app"
}, },
"allowlist": {
"shell": {
"open": "^https://test.app.gitbutler.com/"
}
},
"updater": { "updater": {
"active": true, "active": true,
"dialog": true, "dialog": true,