diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index bc7772e..04d1582 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -27,6 +27,8 @@ fn download(version: &str) { let game_path = path!(&base_path, "minecraft"); let jre_path = path!(&base_path, "jre"); + println!("Downloading {version}"); + match smallauncher_lib::download::download_minecraft_version(&game_path, &jre_path, &version) { Ok(_) => println!("Download completed!"), Err(e) => println!("Download failed: {:?}", e), diff --git a/src/App.tsx b/src/App.tsx index 9cd16aa..4a39c5e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,8 +2,8 @@ import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; -import { LogOut, Play, Settings, User } from "lucide-react"; -import { invoke } from '@tauri-apps/api/core'; +import { Play, Settings, User } from "lucide-react"; +import { authenticate, launchMinecraft } from "./lib/launcher"; export default function App() { return ( @@ -16,46 +16,33 @@ export default function App() { - + Play - Account + Accounts Settings - {/* Play Tab */}
+ > Launch
- {/* Account Tab */} - -
- - -
- - + + - {/* Settings Tab */} -
- - -