-- The smallest app: a window with a button. -- Run it: c8-lua main.lua local c8 = require "c8" local win c8.app { id = "org.example.Hello", -- yours: a name with a dot in it -- Runs for every launch: the first, and each later one, which is -- handed to the copy already running open = function(files) if not (win and win.open) then local hello = c8.label { text = "Hello", style = "header" } win = c8.window { title = "Hello", c8.column { spacing = 24, padding = { 40, 44, 40, 40 }, hello, c8.button { label = "Press me", primary = true, on_click = function() hello:set("Hello from Lua") end }, }, } end win:present() end, }