xTVaser / launcher

A launcher for the OpenGOAL Project to simplify usage and installation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenGOAL Launcher

Crowdin

Our attempt at distributing the OpenGOAL releases in a cross-platform and easy to use and update way. It also is a place for features involving the games, such as texture pack or mod management.

The launcher uses the Tauri framework, if you are interested in our motivation for why see below.

Usage

See the documentation on our website for hopefully up to date instructions on how to use it.

Asking for help

When asking for help, please download the support package which includes logs to help someone diagnose the problem.

If you cannot do this (for example, the bug relates to making the package / the application won't launch) then you can find the application logs in the following folders:

  • Windows C://Users/<YOUR_USER_NAME>/AppData/Roaming/OpenGOAL-Launcher/logs
  • Linux /home/<YOUR_USER_NAME>/.config/OpenGOAL-Launcher/logs

Note that both AppData and .config are hidden folders.

Development

Tauri requires a valid Rust installation, as well as a valid NodeJS installation.

For installing Rust, it's recommended to follow the instructions here https://www.rust-lang.org/tools/install

Windows

scoop install nodejs
npm install -g yarn

Linux (Ubuntu 22.04)

sudo apt install libwebkit2gtk-4.0-dev build-essential curl wget libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev # tauri deps, see - https://tauri.app/v1/guides/getting-started/prerequisites#setting-up-linux
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash # installs Node Version Manager (ubuntus package is woefully out of date)
source ~/.bashrc
nvm install lts/hydrogen # installs latest nodejs 18.X
npm install -g yarn

Building and Running

To build and run the application locally, all you have to do is run:

yarn install
yarn tauri dev

Code Overview

TODO

References

Why Tauri?

The gut reaction from many when looking at the launcher is ugh, another Electron app. This however is not the case. Tauri leverages typical HTML/CSS/JS for rendering the frontend -- but it does not do so by bundling Chromium. Instead it leverages the native WebView providers found on modern operating systems. This is also why the distribution is quite small (majority of the download size is for fonts/images/videos).

Here's a non-exhaustive list of all the benefits we get out of the box with Tauri that we'd have to build ourselves / straight-up not have available to us if we went with a non-electron GUI application framework.

  • A built-in updater with private key signing
  • Bundling scripts for MSI installers, AppImages, DMGs
  • Essentially no differences frontend-wise across all operating systems
  • No need to ship an interpreter (ie. PyQt)
  • Typical web UI workflows that many people are familiar with
  • The ability to painlessly write application logic in Rust
  • Plethora of frontend E2E testing frameworks -- most of these are non-existant or cost money for other frameworks like Qt

About

A launcher for the OpenGOAL Project to simplify usage and installation

License:ISC License


Languages

Language:Svelte 44.6%Language:Rust 35.2%Language:TypeScript 14.1%Language:JavaScript 4.8%Language:CSS 0.8%Language:HTML 0.4%