Skip to content

cid9/launcher3

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

254 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Retrac Launcher

A modern, beautiful launcher for Retrac built with Tauri, React, and TypeScript.

Retrac Logo

🎨 Features

  • 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

πŸ“‹ Prerequisites

Before you begin, ensure you have the following installed:

Verify Installation

# Check Node.js version
node --version

# Check npm version
npm --version

# Check Rust version
rustc --version

# Check Cargo version
cargo --version

πŸš€ Installation

  1. Clone the repository (or navigate to the project folder)

    cd C:\Users\gabpl\Downloads\retrac\launcher3
  2. Install dependencies

    npm install

    This will install all required Node.js packages including:

    • React & React DOM
    • Tauri
    • TailwindCSS
    • Framer Motion
    • React Router
    • And more...

πŸ› οΈ Development

Run in Development Mode

Start the development server with hot-reload:

npx tauri dev

This will:

  • Start the Vite development server on http://localhost:1420
  • Compile the Rust backend
  • Launch the application window
  • Enable hot-reload for instant updates

Development Tips

  • Hot Reload: Changes to React components will auto-reload
  • Rust Changes: Require restarting npx tauri dev
  • Config Changes: Changes to tauri.conf.json require restart

πŸ§ͺ Testing

Run Tests

# Run all tests
npm test

# Run tests in watch mode
npm run test:watch

# Run tests with coverage
npm run test:coverage

Linting

# Check for linting errors
npm run lint

# Auto-fix linting errors
npm run lint:fix

Type Checking

# Check TypeScript types
npm run type-check

πŸ“¦ Building for Production

Build the Application

Create a production build:

npm run tauri build

This will:

  1. Build the optimized React frontend
  2. Compile the Rust backend in release mode
  3. Create an installer in src-tauri/target/release/bundle/

Build Output

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 for Different Targets

# Build MSI installer (default)
npm run tauri build

# Build portable executable
npm run tauri build -- --bundles portable

🎯 Available Scripts

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

πŸ“ Project Structure

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

🎨 Customization

Change Accent Color

Edit src/main.css:

--ACCENT: #10b981; /* Emerald Green */
--ACCENT-VIBRANT: #34d399;

Update Application Icon

Replace files in src-tauri/icons/ with your custom icons:

  • icon.png - Main icon (512x512 recommended)
  • icon.ico - Windows icon
  • icon.icns - macOS icon

Modify Window Settings

Edit src-tauri/tauri.conf.json:

{
  "app": {
    "windows": [{
      "width": 1100,
      "height": 720,
      "resizable": false
    }]
  }
}

πŸ› Troubleshooting

Common Issues

Issue: "Cannot find module" errors

# Solution: Reinstall dependencies
rm -rf node_modules package-lock.json
npm install

Issue: Rust compilation errors

# Solution: Update Rust toolchain
rustup update

Issue: 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

Getting Help

πŸ“ Version History

Version 2.1.2 (Current)

  • ✨ Redesigned UI with emerald green theme
  • 🎨 Simplified navigation and cleaner aesthetics
  • πŸ–ΌοΈ Updated to use local icon assets
  • πŸ”’ Disabled update checker for development
  • ⚑ Performance improvements

🀝 Contributing

  1. Create a new branch for your feature
  2. Make your changes
  3. Test thoroughly
  4. Submit a pull request

πŸ“„ License

This project is proprietary software for Retrac.

πŸ™ Acknowledgments


Made with ❀️ for the Retrac community

About

The game launcher for Retrac, an OG Fortnite Experience.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 85.5%
  • Rust 13.5%
  • Other 1.0%