AtlatestRepositorylantern

lantern / treepackage.sgl

1;;; package.sgl - Lantern workspace definition
2;;;
3;;; Lantern is a Sigil-native desktop web-app wrapper: point it at a Sigil web
4;;; build (wasm + assets) and get a native desktop app with a real window and a
5;;; secure JS<->Sigil bridge, built all the way down in Sigil over sigil-ffi.
6;;;
7;;; The workspace holds two packages:
8;;; - lantern the reusable framework library (webview backend interface,
9;;; GTK backend, bridge, command registry, plugin system)
10;;; - lantern-cli a thin runner binary: `lantern run <dir|url>`
11;;;
12;;; Build the runner: sigil build lantern-cli --config native
13;;; Run it: ./build/native/bin/lantern run ./dist
15(workspace
16 name: "lantern"
17 version: "0.1.3"
18 description: "A Sigil-native desktop wrapper for web apps"
19 url: "https://codeberg.org/sigil/lantern"
20 license: "BSD-3-Clause"
21 authors: (list "David Wilson <[email protected]>")
23 packages: (list
24 "lantern"
25 "lantern-cli"
26 "lantern-system"
27 "examples/lantern-demo")
29 configs: (list
30 ;; Dev build - fast bytecode iteration. Callbacks up to 3 args work here;
31 ;; the 4-arg decide-policy path needs the native config below.
32 (config
33 name: 'dev
34 output-dir: "build/dev"
35 debug?: #t
36 optimize: 0)
38 ;; Native build - the shippable path. Compiles the sigil-ffi native ffi.c
39 ;; (which links libsigil's sigil_applyN for >=4-arg C->Sigil callbacks) so
40 ;; the origin-gating decide-policy signal (4 args) is serviced.
41 (config
42 name: 'native
43 output-dir: "build/native"
44 backend: 'native
45 debug?: #t
46 optimize: 0))
48 default-config: 'dev)