Files
ytplayer/app.zon
2026-06-21 16:15:30 +08:00

26 lines
833 B
Plaintext
Executable File

.{
.id = "com.ytplayer.app",
.name = "ytplayer",
.display_name = "YT Player",
.version = "1.0.0",
// System WebView (WKWebView / WebKitGTK) keeps the binary tiny vs. Electron.
.web_engine = "system",
.permissions = .{"window"},
.capabilities = .{ "webview", "js_bridge" },
.security = .{
.navigation = .{
// Local packaged UI + dev server. Media/images load from https at runtime.
.allowed_origins = .{ "zero://app", "http://127.0.0.1:5173" },
},
},
.windows = .{
.{ .label = "main", .title = "YT Player", .width = 1280, .height = 820 },
},
// Static web UI lives in ./frontend (no build step — plain HTML/CSS/JS).
.frontend = .{
.source = "packaged",
.dir = "frontend",
.entry = "index.html",
},
}