A modern, beautiful launcher for Retrac built with Tauri, React, and TypeScript.
- Modern UI: Clean, minimalist design with emerald green accents
- Discord Authentication: Secure login via Discord OAuth
- Real-time Stats: Track your gameplay statistics and progress
- News & Updates: Stay informed with the latest Retrac news
- Cross-platform: Built with Tauri for native performance
Before you begin, ensure you have the following installed:
- Node.js (v18 or higher) - Download here
- Rust (latest stable) - Install via rustup
- Visual Studio Build Tools (Windows only) - Required for Tauri
- Download Visual Studio Build Tools
- Install "Desktop development with C++" workload
# Check Node.js version
node --version
# Check npm version
npm --version
# Check Rust version
rustc --version
# Check Cargo version
cargo --version-
Clone the repository (or navigate to the project folder)
cd C:\Users\gabpl\Downloads\retrac\launcher3
-
Install dependencies
npm install
This will install all required Node.js packages including:
- React & React DOM
- Tauri
- TailwindCSS
- Framer Motion
- React Router
- And more...
Start the development server with hot-reload:
npx tauri devThis will:
- Start the Vite development server on
http://localhost:1420 - Compile the Rust backend
- Launch the application window
- Enable hot-reload for instant updates
- Hot Reload: Changes to React components will auto-reload
- Rust Changes: Require restarting
npx tauri dev - Config Changes: Changes to
tauri.conf.jsonrequire restart
# Run all tests
npm test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverage# Check for linting errors
npm run lint
# Auto-fix linting errors
npm run lint:fix# Check TypeScript types
npm run type-checkCreate a production build:
npm run tauri buildThis will:
- Build the optimized React frontend
- Compile the Rust backend in release mode
- Create an installer in
src-tauri/target/release/bundle/
After building, you'll find:
- MSI Installer:
src-tauri/target/release/bundle/msi/Retrac_2.1.2_x64_en-US.msi - Executable:
src-tauri/target/release/Retrac.exe
# Build MSI installer (default)
npm run tauri build
# Build portable executable
npm run tauri build -- --bundles portable| Command | Description |
|---|---|
npm run dev |
Start Vite dev server only |
npx tauri dev |
Start full development environment |
npm run build |
Build frontend only |
npm run tauri build |
Build complete application |
npm run lint |
Check code quality |
npm run type-check |
Validate TypeScript types |
launcher3/
βββ src/ # React source code
β βββ components/ # React components
β β βββ core/ # Core components (Frame, etc.)
β β βββ navigation/ # Navigation components
β β βββ routes/ # Page components
β βββ wrapper/ # State management (Zustand)
β βββ import/ # Shared UI components
β βββ main.tsx # React entry point
β βββ main.css # Global styles
βββ src-tauri/ # Rust/Tauri backend
β βββ src/ # Rust source code
β βββ icons/ # Application icons
β βββ Cargo.toml # Rust dependencies
β βββ tauri.conf.json # Tauri configuration
βββ public/ # Static assets
βββ package.json # Node.js dependencies
βββ vite.config.ts # Vite configuration
βββ tailwind.config.js # TailwindCSS configuration
βββ tsconfig.json # TypeScript configuration
Edit src/main.css:
--ACCENT: #10b981; /* Emerald Green */
--ACCENT-VIBRANT: #34d399;Replace files in src-tauri/icons/ with your custom icons:
icon.png- Main icon (512x512 recommended)icon.ico- Windows iconicon.icns- macOS icon
Edit src-tauri/tauri.conf.json:
{
"app": {
"windows": [{
"width": 1100,
"height": 720,
"resizable": false
}]
}
}Issue: "Cannot find module" errors
# Solution: Reinstall dependencies
rm -rf node_modules package-lock.json
npm installIssue: Rust compilation errors
# Solution: Update Rust toolchain
rustup updateIssue: Build fails on Windows
- Ensure Visual Studio Build Tools are installed
- Restart your terminal after installation
Issue: Port 1420 already in use
# Solution: Kill the process using the port
npx kill-port 1420- Check the Tauri Documentation
- Visit the React Documentation
- Review Vite Documentation
- β¨ Redesigned UI with emerald green theme
- π¨ Simplified navigation and cleaner aesthetics
- πΌοΈ Updated to use local icon assets
- π Disabled update checker for development
- β‘ Performance improvements
- Create a new branch for your feature
- Make your changes
- Test thoroughly
- Submit a pull request
This project is proprietary software for Retrac.
- Built with Tauri
- UI powered by React
- Styled with TailwindCSS
- Animations by Framer Motion
Made with β€οΈ for the Retrac community