Command/OS | Windows | MacOS | Linux |
---|---|---|---|
Shutdown | ✔️ | ✔️ | ✔️ |
Reboot | ✔️ | ✔️ | ✔️ |
Hibernate* | ✔️ | ❌ | ❌ |
Log-off | ✔️ | ❌ | ❌ |
Sleep | ❌ | ✔️ | ❌ |
* Hibernate command will be triggered instead of Sleep for Windows 8/10 if Hibernate is turned off
Check out the releases here
# Clone the repository
$ git clone https://github.com/martinpham97/time2sleep-react
# Go into the repository
$ cd time2sleep-react
# Install dependencies
$ npm install
$ npm start
# Windows
$ npm run dist-win
# MacOS
$ npm run dist-mac
# Linux
$ npm run dist-linux
- Updated react to version 16.5.2
- Updated babel to version 8
- Used javascript's ES2017 padStart() instead of util function for countdown input
- Added version number in window title
- Added environment variables
- Removed lru-cache
- Minor code refractor
- Added lru-cache for better startup time
- Changed OS info events for better component load time
- Changed to solid background instead of transparent
- Added App ID for electron-builder
- Removed Squirrel for Windows builds