Deploying Project (RPG MZ) Using Tauri.app

As we know it's possible to deploy your game using electron.js for better performance and memory than nw.js. So is it possible to use tauri.app too ? Tauri has better security and more performant than electron.js. Tauri.app also works with other game engine like Phaser and Construct.

Introduction​

Tauri is a framework for building tiny, blazingly fast binaries for all major desktop platforms. Developers can integrate any front-end framework that compiles to HTML, JS and CSS for building their user interface. The backend of the application is a rust-sourced binary with an API that the front-end can interact with.

The user interface in Tauri apps currently leverages tao as a window handling library on macOS and Windows, and gtk on Linux via the Tauri-team incubated and maintained WRY, which creates a unified interface to the system webview (and other goodies like Menu and Taskbar), leveraging WebKit on macOS, WebView2 on Windows and WebKitGTK on Linux.

App Bundles​

  • App Icons
  • Build on macOS (.app, .dmg)
  • Build on Linux (.deb, AppImage)
  • Build on Windows (.exe, .msi)
  • Copy Buffer
  • Device Notifications (toast)
  • Self Updater
  • App Signing
  • Frameless Mode
  • Transparent Mode
  • Multiwindow Mode
  • Tray
  • deeplink RPC (in progress)
  • One-Time commands (coming soon)

Security Features​

  • localhost-free ()
  • custom protocol for secure mode
  • Dynamic ahead of Time Compilation (dAoT) with functional tree-shaking
  • functional Address Space Layout Randomization
  • OTP salting of function names and messages at runtime
  • CSP Injection

Utilities​

  • GH Action for creating binaries for all platforms
  • VS Code Extension
  • Tauri Core Plugins
  • Update core dependencies automatically from the command line
  • Rust-based CLI

Here is comparison between electron.js and tauri.
image_2022-08-23_155245536.png

Original thread: https://forums.rpgmakerweb.com/threads/deploying-project-rpg-mz-using-tauri-app.150731/