Prerequisites
Before you begin building Minimal Tray Tasker, ensure you have the following tools installed:Required Software
- Node.js (v18 or higher) - JavaScript runtime for the frontend
- npm - Package manager (comes with Node.js)
- Rust (v1.77.2 or higher) - Required for Tauri backend
- System Dependencies - Platform-specific requirements for Tauri
Refer to the Tauri prerequisites guide for detailed system-specific dependencies.
Installation
Install Node Dependencies
Install all required Node.js packages using npm:This will install all dependencies listed in
package.json, including:- Svelte 5 and SvelteKit
- Tauri CLI and plugins
- Drizzle ORM for database management
- TailwindCSS for styling
Development
Running the Development Server
To start the application in development mode with hot-reload:- Start the Vite development server for the Svelte frontend
- Compile the Rust backend
- Launch the application window
- Enable hot-module replacement for rapid development
Available Scripts
Building for Production
Creating a Production Build
To build the application for distribution:- Build the optimized Svelte frontend using Vite
- Compile the Rust backend in release mode
- Create platform-specific installers and bundles
Build Artifacts
After the build completes, you’ll find the distributable files in:The actual bundle formats depend on your operating system. Each platform builds its native format by default.
Platform-Specific Builds
Linux
.debpackage for Debian/Ubuntu.AppImagefor universal Linux support
macOS
.dmginstaller.appbundle
Windows
.msiinstaller.exestandalone executable
Troubleshooting
Common Build Issues
Rust compilation errors:- Ensure you have the latest Rust version:
rustup update - Check that all system dependencies are installed
- Clear the cache:
npm cache clean --force - Delete
node_modulesand reinstall:rm -rf node_modules && npm i
- Verify that your Tauri version matches the plugin versions in
package.jsonandCargo.toml