Skip to content

w-23-tungsten/Web-To-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web To App

Web To App.

Rust. Native WebView. No Electron.

Run

cargo run -- https://example.com
cargo run -- ./examples/minimal --title Tiny --size 900x600
cargo run -- --config examples/web-to-app.json

Build

cargo build --release
./target/release/web-to-app ./examples/minimal
./target/release/web-to-app build ./examples/minimal --name Tiny

Use

  • URL
  • HTML file
  • folder with index.html
  • web-to-app.json
  • macOS .app build
  • preload JS
  • icon resource
  • tiny IPC: window.WebToApp.post("hello")

Config

{
  "target": "./examples/minimal",
  "title": "Tiny",
  "size": "900x600",
  "preload": "./examples/minimal/preload.js",
  "incognito": true
}

Options

web-to-app [url|file|folder]
  --config <file>
  --title <text>
  --size <WxH>
  --fixed
  --fullscreen
  --maximized
  --devtools
  --incognito
  --preload <file>
  --icon <file>
web-to-app build [url|file|folder]
  --name <text>
  --out <folder>
  --no-sign

Weight

No Chromium bundle. No Node runtime. Uses the OS WebView:

  • macOS: WKWebView
  • Windows: WebView2
  • Linux: WebKitGTK

License

MIT.

Packages

 
 
 

Contributors

Languages