Skip to content

Commit ff93908

Browse files
committed
fix(desktop-shell): add --config flag, overlay app.security, copy OpenWork icons
1 parent 4640610 commit ff93908

9 files changed

Lines changed: 40 additions & 29 deletions

File tree

packages/desktop-shell/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/desktop-shell/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"type": "module",
66
"scripts": {
77
"tauri": "tauri",
8-
"dev": "tauri dev",
9-
"build": "npm run build:runtime && tauri build",
8+
"dev": "tauri dev --config src-tauri/tauri.openwork.conf.json",
9+
"build": "npm run build:runtime && tauri build --config src-tauri/tauri.openwork.conf.json",
1010
"build:runtime": "node scripts/prepare-runtime.js",
1111
"smoke:runtime": "node scripts/smoke-runtime.js",
1212
"smoke:packaged": "node scripts/smoke-packaged.js",

packages/desktop-shell/src-tauri/Cargo.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-10.7 KB
Loading
-26.9 KB
Loading
-1.72 KB
Loading
-352 KB
Binary file not shown.
-67.5 KB
Loading

packages/desktop-shell/src-tauri/tauri.openwork.conf.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
"productName": "OpenWork",
44
"version": "0.1.0",
55
"identifier": "com.alibaba.openwork",
6+
"build": {
7+
"frontendDist": "../bootstrap"
8+
},
9+
"app": {
10+
"withGlobalTauri": true,
11+
"windows": [],
12+
"security": {
13+
"csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src ipc: http://ipc.localhost; object-src 'none'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'",
14+
"capabilities": ["bootstrap"]
15+
}
16+
},
617
"bundle": {
718
"shortDescription": "OpenWork — AI agent workspace",
819
"resources": {

0 commit comments

Comments
 (0)