Skip to content

CodingRookie98/winAutoShutdown

Repository files navigation

WinAutoShutdown: Intelligent Power Automation

English | 中文

The Ultimate Power Automation Tool for Windows.

A modern, lightweight Windows power management utility. Schedule shutdowns, reboots, sleep modes, and more with a beautiful Vue+Rust interface.

License Version

✨ Features

  • 🚀 High Performance: Low resource usage powered by Rust backend.
  • 🎨 Modern UI: Built with Vue 3, supports Dark Mode and elegant animations.
  • 🛡️ Secure & Transparent: Native Windows API integration with safety checks.
  • Power Management: Automate Shutdown, Reboot, Sleep, Hibernate, and Lock.
  • 🔄 Smart Scheduling: Flexible timer and task management system.

🛠️ Tech Stack

  • Frontend: Vue 3, TypeScript, Vite
  • Backend: Rust, Tauri, Windows API
  • State Management: Pinia
  • Testing: Vitest (Frontend), Cargo Test (Backend)

📦 Installation & Run

Prerequisites

  • Node.js (v18+)
  • pnpm
  • Rust (Latest Stable)
  • Visual Studio C++ Build Tools (Windows)

Development

# Install dependencies
pnpm install

# Start dev server (Frontend + Backend)
pnpm tauri dev

Build for Production

# Build Windows installer (.msi, .exe)
pnpm tauri build

🧪 Testing

This project follows TDD (Test-Driven Development) principles.

# Run frontend tests
pnpm test

# Run backend tests
cd src-tauri && cargo test

📂 Project Structure

winAutoShutdown/
├── src/                # Vue Frontend Source
│   ├── components/     # UI Components
│   ├── composables/    # Composable Logic (Hooks)
│   ├── stores/         # Pinia Stores
│   └── ...
├── src-tauri/          # Rust Backend Source
│   ├── src/
│   │   ├── core/       # Core Business Logic (Timer, SystemControl)
│   │   └── ...
│   └── ...
├── docs/               # Documentation
└── ...

🤝 Contribution

Issues and Pull Requests are welcome! Please follow these guidelines:

  1. Commit Message: Use Conventional Commits (e.g., feat: add timer, fix: dark mode).
  2. Branching: Do not commit directly to master. Use dev or feature/* branches.
  3. Code Style: Keep code clean, run cargo fmt and ESLint.

📄 License

MIT License

About

This is an automatic shutdown software, currently only tested on Windows 11 and 10 platform.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors