Skip to content

BOSSincrypto/dont-sleep-app

Repository files navigation


Don't Sleep
Don't Sleep

Cross-platform utility to keep your device awake. Lightweight. Native. Fast.

Release CI License Platform

FeaturesDownloadTech StackDevelopmentLicense


Features

  • Toggle with one click — Instantly prevent your system from sleeping
  • Timer mode — Set a countdown (5 min / 15 min / 30 min / 1 h / 2 h) and let it auto-disable
  • Global hotkey — Press Ctrl + Shift + K (or Cmd + Shift + K on macOS) from anywhere to toggle
  • System tray — Minimize to tray; app keeps running in the background
  • Auto-start — Optional launch on system startup
  • Cross-platform — Native builds for Windows, macOS (Intel & Apple Silicon), and Linux
  • Lightweight — Built with Tauri + Rust. No Electron bloat. ~5–10 MB binary.

Download

Platform Download
Windows .msi installer
macOS (Apple Silicon) .dmg
macOS (Intel) .dmg
Linux .AppImage / .deb

Or visit the Releases page for all artifacts.

Note: Unsigned binaries may trigger SmartScreen (Windows) or Gatekeeper (macOS). Click "More info" → "Run anyway" to proceed.


Tech Stack


Development

Prerequisites

  • Node.js >= 18
  • Rust (latest stable)
  • Platform-specific dependencies:
    • Windows: Microsoft Visual C++ Build Tools
    • macOS: Xcode Command Line Tools
    • Linux: libwebkit2gtk-4.1-dev, libappindicator3-dev, librsvg2-dev, patchelf

Setup

git clone https://github.com/BOSSincrypto/dont-sleep-app.git
cd dont-sleep-app
npm install

Run in development mode

npm run tauri dev

Build for production

npm run tauri build

Auto-Deployment

This repository uses GitHub Actions for automated CI/CD:

  1. Push a tag matching v* (e.g., v1.0.0)
  2. GitHub Actions builds for Windows, macOS (Intel + ARM), and Linux
  3. Artifacts are uploaded to a new GitHub Release draft
  4. Review and publish the draft release manually
git tag v1.0.0
git push origin v1.0.0

Troubleshooting

Windows: App immediately crashes on launch

  1. Install WebView2 Runtime — Tauri apps require Microsoft Edge WebView2. The .msi installer attempts to download it automatically, but if you run the .exe directly or offline, install WebView2 manually from Microsoft's official page.
  2. Check log files — Starting from v1.0.5, the app writes diagnostic logs next to the executable:
    • dont_sleep_app_error.log — Tauri startup errors
    • dont_sleep_app_panic.log — Rust panic messages
  3. Run from Command Prompt — Open cmd.exe, navigate to the install folder, and run Dont Sleep.exe to see real-time println! output.
  4. Visual C++ Redistributables — Ensure the latest MSVC redistributables are installed.

Windows: SmartScreen warning

The app is not code-signed (certificates cost ~$70–99/year). Click More info → Run anyway to proceed.

macOS: Gatekeeper blocks the app

Right-click the .appOpen, or run:

xattr -d com.apple.quarantine /Applications/Dont\ Sleep.app

License

MIT © BOSSinCrypto


Built with ❤️ and ☕ by BOSSinCrypto

Releases

Packages

Contributors

Languages