32 lines
1.0 KiB
Zig
32 lines
1.0 KiB
Zig
.{
|
|
.id = "dev.native_sdk.svelte-example",
|
|
.name = "svelte-example",
|
|
.display_name = "Svelte Example",
|
|
.version = "0.1.0",
|
|
.platforms = .{ "macos", "linux" },
|
|
.permissions = .{},
|
|
.capabilities = .{ "webview" },
|
|
.frontend = .{
|
|
.dist = "frontend/dist",
|
|
.entry = "index.html",
|
|
.spa_fallback = true,
|
|
.dev = .{
|
|
.url = "http://127.0.0.1:5173/",
|
|
.command = .{ "npm", "--prefix", "frontend", "run", "dev", "--", "--host", "127.0.0.1" },
|
|
.ready_path = "/",
|
|
.timeout_ms = 30000,
|
|
},
|
|
},
|
|
.security = .{
|
|
.navigation = .{
|
|
.allowed_origins = .{ "zero://app", "zero://inline", "http://127.0.0.1:5173" },
|
|
.external_links = .{ .action = "deny" },
|
|
},
|
|
},
|
|
.web_engine = "system",
|
|
.cef = .{ .dir = "third_party/cef/macos", .auto_install = false },
|
|
.windows = .{
|
|
.{ .label = "main", .title = "Svelte Example", .width = 720, .height = 480, .restore_state = true },
|
|
},
|
|
}
|