Commit Graph

30 Commits

Author SHA1 Message Date
Wyatt Verchere
a13b7a2566 added settings API + fixed bug (#62)
* added settings API + fixed bug

* removed redundant API funcs

* comment clarifications

---------

Co-authored-by: Wyatt <wyatt@modrinth.com>
2023-04-03 13:46:04 -07:00
Wyatt Verchere
6a05276a21 Auth bindings (#58)
* basic framework. still has errors

* added functionality for main endpoints + some structuring

* formatting

* unused code

* mimicked CLI function with wait_for process

* added basic auth bindings

* made PR changes, added playground

* cargo fmt

* removed missed println

* misc tests fixes

* cargo fmt

* added windows support

* cargo fmt

* all OS use dunce

* restructured profile slightly; fixed mac bug

* profile changes, new main.rs

* fixed requested pr + canonicaliation bug

* fixed regressed bug in ui

* fixed regressed bugs

* fixed git error

* typo

* ran prettier

* clippy

* playground clippy

* ported profile loading fix

* profile change for real, url println and clippy

* PR changes

* auth bindings + semisynch flow

* fixed dropping task error

* prettier, eslint, clippy

* removed debugging modifications

* removed unused function that eslinter missed :(

* fixed settings not being released

---------

Co-authored-by: Wyatt <wyatt@modrinth.com>
2023-03-31 18:44:26 -07:00
Wyatt Verchere
f48959a816 Profile bindings (#55)
* basic framework. still has errors

* added functionality for main endpoints + some structuring

* formatting

* unused code

* mimicked CLI function with wait_for process

* made PR changes, added playground

* cargo fmt

* removed missed println

* misc tests fixes

* cargo fmt

* added windows support

* cargo fmt

* all OS use dunce

* restructured profile slightly; fixed mac bug

* profile changes, new main.rs

* fixed requested pr + canonicaliation bug

* fixed regressed bug in ui

* fixed regressed bugs

* fixed git error

* typo

* ran prettier

* clippy

* playground clippy

* ported profile loading fix

* profile change for real, url println and clippy

* PR changes

---------

Co-authored-by: Wyatt <wyatt@modrinth.com>
2023-03-31 11:00:43 -07:00
Jai A
4875ed4359 Fix clippy issues 2023-03-30 15:18:57 -07:00
Jai A
7cd8205a3b GH actions + finish 2023-03-30 13:45:26 -07:00
Jai A
59b835d374 Profile mod management 2023-03-29 15:34:46 -07:00
Wyatt Verchere
8512b45e2b Jre detection (#54)
* initial jre detection commit

* added WinReg searching

* added windows support + refactored

* Cargo lock

* fixed linux + added canonicalization

* fixed bug in mac

* Added dunce; handling UNC paths better for canonicalization

* missed cargo lock

* removed tests, added comments

* cargo fmt

* removed redundant mac address, loop over folder

---------

Co-authored-by: Wyatt <wyatt@modrinth.com>
2023-03-28 10:31:47 -07:00
Matthew Reid
67742cb238 Add search to GUI and minor changes to Theseus. 2023-01-02 00:54:40 -07:00
Danielle
b223dc7cba Authentication (#37)
* Initial authentication implementation

* Store user info in the database, improve encapsulation in profiles

* Add user list, remove unused dependencies, add spantraces

* Implement user remove, update UUID crate

* Add user set-default

* Revert submodule macro usage

* Make tracing significantly less verbose
2022-07-15 08:39:38 -07:00
Danielle
10610e157f Refactor Library
The launcher code was in a position ripe for sphagetti, so this rewrites it in a more robust way.
In addition to cleaner code, this provides the following changes:
- Removal of obsolete Mojang authentication
- The rebasing of some internal state into a Sled database
- Tweaks which make some internal mechanisms more robust (e.g. profiles which fail to load can be removed)
- Additional tooling integration such as direnv
- Distinct public API to avoid messing with too much internal code
- Unified error handling in the form of `theseus::Error` and `theseus::Result`
2022-06-27 15:53:25 -07:00
Danielle
8935d0e56c Move launcher working directory to standard location (#31)
* Move launcher working directory to standard location

* Fix settings save, attempt to get better backtraces

* Add environment variable for settings path
2022-04-10 13:14:53 -07:00
Danielle
d1070ca213 Initial draft of profile metadata format & CLI (#17)
* Initial draft of profile metadata format

* Remove records, add Clippy to Nix, fix Clippy error

* Work on profile definition

* BREAKING: Make global settings consistent with profile settings

* Add builder methods & format

* Integrate launching with profiles

* Add profile loading

* Launching via profile, API tweaks, and yak shaving

* Incremental update, committing everything due to personal system maintainance

* Prepare for review cycle

* Remove reminents of experimental work

* CLI: allow people to override the non-empty directory check

* Fix mistake in previous commit

* Handle trailing whitespace and newlines in prompts

* Revamp prompt to use dialoguer and support defaults

* Make requested changes
2022-03-28 18:41:35 -07:00
leocth
596ca8ab4f &* is simply just bad. let deref coercion figure it out 2022-02-20 22:54:05 +08:00
leocth
6b11613b99 a tiny bit of error handling 2022-02-20 22:52:02 +08:00
leocth
28d1267afa fix all the red wiggly wiggles 2022-02-20 22:47:44 +08:00
leocth
14e8e92f46 the first wave of refactors 2022-02-20 22:20:50 +08:00
Jai A
9d74e84c01 Add method of storing launcher data, fix forge 1.17+, add launcher settings 2021-12-19 22:48:50 -07:00
Jai A
e9851a8e23 Metadata state management 2021-12-15 22:24:08 -07:00
Danielle Hutzley
5dabfb4ea0 Fix modpacks, compile to zip 2021-12-14 17:23:33 -08:00
Jai A
3b85095f28 Rename modrinth index json 2021-12-14 17:35:01 -07:00
Danielle Hutzley
c8c69b4425 Add mod URL download support 2021-12-14 08:00:06 -08:00
Daniel Hutzley
fc076c2e54 Add modpack creation and compilation 2021-12-05 12:20:59 -08:00
Daniel Hutzley
5ffddd6c8a Added modpack creation and file adding 2021-12-05 10:41:56 -08:00
Daniel Hutzley
fe3581756f Complete refactor of modpacks, add modpack serialization 2021-12-01 21:06:31 -08:00
Daniel Hutzley
52ed070b5b Add tests and example for modpack support 2021-11-20 12:03:03 -08:00
Daniel Hutzley
a204df5e11 First draft of modpack module 2021-11-20 12:02:46 -08:00
Jai A
359e81083e Finish launching modded versions of Minecraft 2021-11-10 21:52:55 -07:00
Jai A
54cd2f873c Add error handling 2021-07-09 20:05:04 -07:00
Jai A
a0e35ad853 Proof of concept of launching Minecraft from Rust 2021-07-04 22:46:56 -07:00
Jai A
93418edbe7 Downloading launcher files 2021-06-29 22:32:52 -07:00