Skip to content

Commit c75ab87

Browse files
committed
[Fix] Download/Update mod loader functionality
1 parent 99b33b2 commit c75ab87

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rl2-launcher-ui"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rl2-launcher"
3-
version = "1.0.1"
3+
version = "1.0.2"
44
description = "A Rogue Legacy 2 launcher for Vanilla and RL2.ModLoader"
55
authors = ["TacoConKvass (RL2.API Team)"]
66
edition = "2021"

src-tauri/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ async fn update_modloader() {
161161
if let Ok(mut process) = std::process::Command::new("cmd")
162162
.current_dir("/")
163163
.stdin(std::process::Stdio::piped())
164-
.stderr(std::process::Stdio::piped())
165-
.stdout(std::process::Stdio::piped())
166164
.spawn()
167165
{
168166
if let Some(stdin) = process.stdin
@@ -172,10 +170,12 @@ async fn update_modloader() {
172170
let _ = stdin.write_all(b"curl -OL https://github.com/RL2-API/RL2.ModLoader/releases/latest/download/RL2.ModLoader.tar.gz\n");
173171
let _ = stdin.write_all(b"mkdir rl2-ml\n");
174172
let _ = stdin.write_all(b"tar -xzvf RL2.ModLoader.tar.gz -C rl2-ml\n");
175-
let _ = stdin.write_all(b"start rl2-ml/RL2.ModLoader.Installer.exe\n");
173+
let _ = stdin.write_all(b"cd rl2-ml\n");
174+
let _ = stdin.write_all(b"RL2.ModLoader.Installer.exe\n");
175+
let _ = stdin.write_all(b"cd ..\n");
176176
let _ = stdin.write_all(b"del RL2.ModLoader.tar.gz\n");
177-
let _ = stdin.write_all(b"del /q rl2-ml\n");
178-
177+
let _ = stdin.write_all(b"del /q /s rl2-ml\n");
178+
let _ = stdin.write_all(b"exit\n");
179179
let _ = process.wait_with_output();
180180
}
181181
}

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "rl2-launcher",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"identifier": "com.rl2-launcher.app",
66
"build": {
77
"beforeDevCommand": "trunk serve",

0 commit comments

Comments
 (0)