Manifest
#struct ManifestThe [app] table of salam.toml.
| Name | Type | Description |
|---|---|---|
id | str = "" | The application id. |
name | str = "" | The name people see. |
version | str = "0.1.0" | The version. |
main | str = "main.salam" | The entry file, main.salam by default. |
assets | str = "" | The folder packed into the application. |
icon | str = "" | A PNG icon; it is converted for each system. |
description | str = "" | One line about the application. |
publisher | str = "" | Who publishes it. |
category | str = "Utility" | The desktop menu category. |
slug | str = "" | The file name made from the name. |
engine | str = "system" | The web engine of the program: system (the web view of the operating system, the default) or chromium. |
runtime | str = "" | The folder with the Chromium runtime files, used with the chromium engine. |
copyright | str = "" | The copyright line of the Windows version resource. |
product | str = "" | The product name of the Windows version resource. |
subsystem | str = "windows" | The Windows subsystem: windows (no console window, the default) or console. |
manifest | str = "" | A Windows application manifest file embedded in the program. |
overrides | Vector<str> | Keys from the [windows], [macos] and [linux] tables, kept as os, key and value separated by tabs. |
import gui.webview.bundle
import os
func main:
mut m := bundle.Manifest {
id = "com.example.app",
name = "App",
version = "1.0",
main = "main.salam",
assets = "www",
icon = "icon.png",
description = "An app",
publisher = "Example",
category = "Utility",
slug = "app",
engine = "system",
runtime = ""
}
println bundle.ReadManifest("salam.toml", m), m.name
ret bundle.Main(os.Args())
end