Skip to content
LeinnanPublic

About

Very basic Unity Hub alternative

Topics

Resources

Stars

28 stars

Watchers

4 watching

Forks

Repository files navigation

Rusty Hub build

https://www.mevlyshkin.com/projects/rusty_unity_hub/

A small alternative to the Unity Hub, written in Rust with egui.

Rusty Hub's project list

  • Find projects by scanning a folder, dropping one on the window, or importing the Unity Hub's list
  • Search and sort them, and see at a glance which ones have their editor installed
  • Open a project in the editor it asks for, or any other installed one
  • Create projects from an editor's templates or Unity's online ones, optionally with a git repository
  • Set launch arguments and a platform per project, and move a project to another Unity version

Online templates are the only thing that uses the network. Nothing is requested until you open the Online list in the New Project dialog, and they need the curl command, which macOS and Windows 10 and later include.

Download

There is ready to download Windows version. Go to Releases and look for windows-build.zip in Assets.

Building and using

Cargo is required in order to build it.

git clone git@github.com:Leinnan/rusty_hub.git
cd rusty_hub
cargo run --release

Recipes for development live in the justfile (cargo install just):

just run         # debug build
just validate    # format check, tests, clippy, and checks for the other desktop targets
just snapshots   # re-record the UI snapshot images in tests/snapshots

Packaging

just lists every recipe. Packages go in target/dist, built for the system you run them on:

System Recipes Result
macOS just app, just dmg, just install Rusty Hub.app (ad-hoc signed) and a disk image
Windows just windows-tools once, then just msi, just exe-install, just exe-uninstall An unsigned per-user installer. Needs the .NET SDK for WiX
Linux just linux-package, just linux-install [prefix] A tarball with a usr/ tree, or an install under ~/.local

The packages aren't signed by a paid certificate, so macOS and Windows warn about them on first launch on other machines.

Layout

Path Contents
assets/icon/icon.svg The app icon; build.rs and xtask render everything else from it
assets/package Files for the macOS, Windows and Linux packages
crates/app-icon Renders the icon, for the build script and xtask
xtask Generates what packages need: cargo xtask icons, cargo xtask licenses
crates/unity-hub Finds Unity editors and projects on disk; knows nothing about the UI
src/app The application: applies commands and lays out the panels
src/ui Theme, widgets, panels and pages
src/commands.rs What widgets ask the app to do
src/jobs.rs Background work that walks the disk
src/tests Headless UI tests with egui_kittest

Thanks

Big thanks to https://github.com/unitycoder/UnityLauncherPro

Most of the required information about how data is stored by Unity HUB, and how Unity creates projects from templates, is taken from there.

License

MIT

About

Very basic Unity Hub alternative

Topics

Resources

Stars

28 stars

Watchers

4 watching

Forks

Releases

Used by

Contributors

Languages