A launcher for the OpenGOAL Project to simplify usage and installation
Go to file
2023-05-19 21:07:41 -04:00
.github Improve errors and handling of corrupted / incorrectly downloaded versions (#226) 2023-05-19 19:35:07 -04:00
.tauri release: update release metadata to latest 2023-05-19 23:59:00 +00:00
.vscode migrate: switch to Svelte 2022-04-14 19:49:13 -04:00
docs New Crowdin updates - Dutch / German / Italian / Polish / Romanian / Spanish (#213) 2023-05-08 21:50:00 -04:00
public migrate: switch to Svelte 2022-04-14 19:49:13 -04:00
scripts Revamp OpenGL requirements check and allow re-checking or bypassing it (#180) 2023-05-16 00:23:26 -04:00
src f/settings: confirm bypass requirements in settings menu as well (#227) 2023-05-19 21:07:41 -04:00
src-tauri release: bump to version - 2.1.4 2023-05-19 23:39:07 +00:00
.gitignore deps: switch to yarn and update all our dependencies 2023-02-18 21:24:33 -05:00
.prettierignore release: a bunch of debugging, appimages fail on releases though 2022-04-20 00:51:37 -04:00
.prettierrc.json Fix a bunch of small things discovered when testing the latest release (#118) 2022-07-23 17:37:59 -04:00
crowdin.yml i18n: make the app translatable (#196) 2023-05-06 13:10:54 -04:00
index.html frontend: get off font-awesome icons directly 2023-02-16 02:08:44 -05:00
LICENSE add a license 2022-06-01 00:27:22 -04:00
package.json release: bump to version - 2.1.4 2023-05-19 23:39:07 +00:00
postcss.config.cjs UI Overhaul (#35) 2022-09-27 20:40:13 -04:00
README.md New Crowdin updates (#199) 2023-05-06 14:12:22 -04:00
svelte.config.js UI Overhaul (#35) 2022-09-27 20:40:13 -04:00
tailwind.config.cjs UI Overhaul (#35) 2022-09-27 20:40:13 -04:00
tsconfig.json Full pass of launcher code-base, fixing bugs and cleanup (#100) 2022-07-14 18:04:01 -04:00
tsconfig.node.json renamed files and updated config files accordingly 2022-05-30 10:20:24 -04:00
vite.config.ts deps: switch to yarn and update all our dependencies 2023-02-18 21:24:33 -05:00
yarn.lock build(deps-dev): bump @octokit/plugin-throttling from 5.2.0 to 5.2.1 (#218) 2023-05-16 01:32:33 -04:00

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