bymr-desktop-launcher Svelte Themes

Bymr Desktop Launcher

Windows & Linux launcher written in Rust, Tauri & Svelte for installing the latest patched flash & swf files and launching the game 🕹️



Overview 🕹️

A desktop launcher for Windows, Mac & Linux which utilises the efficiency of Rust and Tauri for managing Flash runtimes and game versions, for the Backyard Monsters Refitted client. This launcher packages the required SWF binaries and loads them into Flash Player.


Prerequisites

You will need the following components corrrectly installed and configured:

Rust

Cargo

MSVC Toolchain

Node.js & NPM

We need to ensure that we are compiling our application with the MSVC toolchain, as the GNU toolchain alternative does not seem to embed the WebView2 runtime into the binary and instead uses a DLL script called WebView2Loader.dll which would need to be distributed alongside your executable. You can find out more about this here.

It is recommended to locate your .cargo directory and modify the config.toml file to point to the correct linker and target. Example:

[target.x86_64-pc-windows-msvc]
linker = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\link.exe"
ar = "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX64\\x64\\lib.exe"

Please refer to the following docs for getting started with Tauri: https://v1.tauri.app/v1/guides/getting-started/prerequisites/


Live Development

To run this application in development mode, use npm run tauri dev or if you prefer the cargo command, use cargo tauri dev. This will run a Vite development server that will provide very fast hot reload of your frontend changes. There is also a dev server that runs on http://localhost:5173 if you want to develop in a browser.


Production Build

To build a redistributable, production mode package, use npm run tauri build --release or cargo tauri build --release.

Top categories

Loading Svelte Themes