AtlatestRepositorylantern
1
;;; package.sgl - Lantern workspace definition2
;;;3
;;; Lantern is a Sigil-native desktop web-app wrapper: point it at a Sigil web4
;;; build (wasm + assets) and get a native desktop app with a real window and a5
;;; 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 native13
;;; Run it: ./build/native/bin/lantern run ./dist15
(workspace16
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: (list24
"lantern"25
"lantern-cli"26
"lantern-system"27
"examples/lantern-demo")29
configs: (list30
;; 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
(config33
name: 'dev34
output-dir: "build/dev"35
debug?: #t36
optimize: 0)38
;; Native build - the shippable path. Compiles the sigil-ffi native ffi.c39
;; (which links libsigil's sigil_applyN for >=4-arg C->Sigil callbacks) so40
;; the origin-gating decide-policy signal (4 args) is serviced.41
(config42
name: 'native43
output-dir: "build/native"44
backend: 'native45
debug?: #t46
optimize: 0))48
default-config: 'dev)