Default build instructions don't work
$ cargo install web2app tauri-cli
Updating crates.io index
Ignored package `web2app v0.2.12` is already installed, use --force to override
Updating crates.io index
Installing tauri-cli v2.3.1
...
$ web2app args -n Notion -u https://www.notion.so
name: Notion
url: https://www.notion.so
description: An example application.
version: 0.1.0
author: John Doe
identifier: www.notion.so.web2app
icon: None
User Agent: Default
🚀 build_dir: /home/m/web2app_apps/notion
🎉 Building directories...
🎉 Creating files...
🎉 Building templates...
🎉 Building icons...
🎉 Running cargo tauri build...
Error `tauri.conf.json` error: "identifier" is a required property
Error `tauri.conf.json` error on `build`: Additional properties are not allowed ('devPath', 'distDir', 'withGlobalTauri' were unexpected)
Error `tauri.conf.json` error: Additional properties are not allowed ('package', 'tauri' were unexpected)
I'm having this same problem ...
C:\Users\User\Tauri-Apps>web2app args -n "The Back Room" -u "https://www.the-back-room.info/" --author "The Back Room" --identifier "com.the-back-room.app" --version 0.1.0 --description "Open-Source Development and Customization"
name: The Back Room
url: https://www.the-back-room.info/
description: Open-Source Development and Customization
version: 0.1.0
author: The Back Room
identifier: com.the-back-room.app
icon: None
User Agent: Default
🚀 build_dir: C:\Users\User\web2app_apps\the back room
🎉 Building directories...
🎉 Creating files...
🎉 Building templates...
🎉 Building icons...
🎉 Running cargo tauri build...
Error `tauri.conf.json` error: "identifier" is a required property
Error `tauri.conf.json` error on `build`: Additional properties are not allowed ('devPath', 'distDir', 'withGlobalTauri' were unexpected)
Error `tauri.conf.json` error: Additional properties are not allowed ('package', 'tauri' were unexpected)
Tried it with other sites as well. Still has the same issue.
Version Info
OS: Windows 11 24H2
Tauri-Cli:
C:\Users\User\Desktop>cargo info tauri-cli
Updating crates.io index
tauri-cli
Command line interface for building Tauri apps
version: 2.5.0
license: Apache-2.0 OR MIT
rust-version: 1.77.2
documentation: https://docs.rs/tauri-cli/2.5.0
homepage: https://tauri.app
repository: https://github.com/tauri-apps/tauri
crates.io: https://crates.io/crates/tauri-cli/2.5.0
features:
+default = [rustls]
rustls = [tauri-bundler/rustls, cargo-mobile2/rustls, ureq/rustls]
native-tls = [tauri-bundler/native-tls, cargo-mobile2/native-tls, ureq/native-tls]
native-tls-vendored = [native-tls, tauri-bundler/native-tls-vendored]
Web2App:
C:\Users\User\Desktop>cargo info web2app
Updating crates.io index
web2app
Turn any web page into a desktop app (but, lightweight ~3MB)
version: 0.2.12
license: MIT
rust-version: unknown
documentation: https://docs.rs/web2app/0.2.12
crates.io: https://crates.io/crates/web2app/0.2.12
try
$ cargo install tauri-cli --version '1.6.6'
and run
$ web2app args -n Notion -u https://www.notion.so
try
$ cargo install tauri-cli --version '1.6.6' and run
$ web2app args -n Notion -u https://www.notion.so
This worked for me. I had to specify the icon on building the app and also had to reformat the install script to work with Windows. But otherwise, this fixed the issue.
For windows the install script needs t o be formatted as:
cargo install tauri-cli --version 1.6.6
cargo install web2app
and then for web2app builds you need to do them as such:
web2app args -n app_name -u app_url -i path_to_png
It's not perfect since you can't specify app names with spaces since it gives an error if you use "" to surround the app name. Only allows - or _ in place of spaces. But it works at the very least.