Skip to content

Commit afaec4b

Browse files
Bump Theseus Version (#818)
* push to test on windows * Fix windows sup * Fix macos * Fix back * new resolver for windows testing * Custom macos handling for some versions * Fix 1.13+ broken * fix arg parsing mac * small winblows fix * remove debug info; set meta url * run lint + fix clippy * Remove useless commnet
1 parent 7fb8850 commit afaec4b

File tree

27 files changed

+189
-97
lines changed

27 files changed

+189
-97
lines changed

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theseus/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "theseus"
3-
version = "0.5.4"
3+
version = "0.6.0"
44
authors = ["Jai A <jaiagr+gpg@pm.me>"]
55
edition = "2018"
66

theseus/src/api/auth.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,14 @@ pub async fn refresh(user: uuid::Uuid) -> crate::Result<Credentials> {
6868
}
6969

7070
// Update player info from bearer token
71-
let player_info = hydra::stages::player_info::fetch_info(&credentials.access_token).await.map_err(|_err| {
72-
crate::ErrorKind::HydraError("No Minecraft account for your profile. Make sure you own the game and have set a username through the official Minecraft launcher."
73-
.to_string())
74-
})?;
71+
let player_info =
72+
hydra::stages::player_info::fetch_info(&credentials.access_token)
73+
.await
74+
.map_err(|_err| {
75+
crate::ErrorKind::HydraError(
76+
"No Minecraft account for your profile. Please try again or contact support in our Discord for help!".to_string(),
77+
)
78+
})?;
7579

7680
credentials.username = player_info.name;
7781
users.insert(&credentials).await?;

theseus/src/api/hydra/stages/player_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl Default for PlayerInfo {
1313
fn default() -> Self {
1414
Self {
1515
id: "606e2ff0ed7748429d6ce1d3321c7838".to_string(),
16-
name: String::from("???"),
16+
name: String::from("Unknown"),
1717
}
1818
}
1919
}

theseus/src/api/jre.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub async fn auto_install_java(java_version: u32) -> crate::Result<PathBuf> {
127127

128128
// removes the old installation of java
129129
if let Some(file) = archive.file_names().next() {
130-
if let Some(dir) = file.split("/").next() {
130+
if let Some(dir) = file.split('/').next() {
131131
let path = path.join(dir);
132132

133133
if path.exists() {

theseus/src/api/pack/import/atlauncher.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,12 @@ async fn import_atlauncher_unmanaged(
245245
if let Some(profile_val) =
246246
crate::api::profile::get(&profile_path, None).await?
247247
{
248-
crate::launcher::install_minecraft(&profile_val, Some(loading_bar))
249-
.await?;
248+
crate::launcher::install_minecraft(
249+
&profile_val,
250+
Some(loading_bar),
251+
false,
252+
)
253+
.await?;
250254
{
251255
let state = State::get().await?;
252256
let mut file_watcher = state.file_watcher.write().await;

theseus/src/api/pack/import/curseforge.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,12 @@ pub async fn import_curseforge(
199199
if let Some(profile_val) =
200200
crate::api::profile::get(&profile_path, None).await?
201201
{
202-
crate::launcher::install_minecraft(&profile_val, Some(loading_bar))
203-
.await?;
202+
crate::launcher::install_minecraft(
203+
&profile_val,
204+
Some(loading_bar),
205+
false,
206+
)
207+
.await?;
204208

205209
{
206210
let state = State::get().await?;

theseus/src/api/pack/import/gdlauncher.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,12 @@ pub async fn import_gdlauncher(
112112
if let Some(profile_val) =
113113
crate::api::profile::get(&profile_path, None).await?
114114
{
115-
crate::launcher::install_minecraft(&profile_val, Some(loading_bar))
116-
.await?;
115+
crate::launcher::install_minecraft(
116+
&profile_val,
117+
Some(loading_bar),
118+
false,
119+
)
120+
.await?;
117121
{
118122
let state = State::get().await?;
119123
let mut file_watcher = state.file_watcher.write().await;

theseus/src/api/pack/import/mmc.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,12 @@ async fn import_mmc_unmanaged(
323323
if let Some(profile_val) =
324324
crate::api::profile::get(&profile_path, None).await?
325325
{
326-
crate::launcher::install_minecraft(&profile_val, Some(loading_bar))
327-
.await?;
326+
crate::launcher::install_minecraft(
327+
&profile_val,
328+
Some(loading_bar),
329+
false,
330+
)
331+
.await?;
328332
{
329333
let state = State::get().await?;
330334
let mut file_watcher = state.file_watcher.write().await;

theseus/src/api/pack/install_mrpack.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,12 @@ pub async fn install_zipped_mrpack_files(
283283
}
284284

285285
if let Some(profile_val) = profile::get(&profile_path, None).await? {
286-
crate::launcher::install_minecraft(&profile_val, Some(loading_bar))
287-
.await?;
286+
crate::launcher::install_minecraft(
287+
&profile_val,
288+
Some(loading_bar),
289+
false,
290+
)
291+
.await?;
288292

289293
State::sync().await?;
290294
}

0 commit comments

Comments
 (0)