This is a desktop application built with Electron that wraps your Web Instance site and makes it available as a standalone desktop app for Windows, Mac and Linux.
- Opens your Web in a standalone window.
- Can be run locally without a browser.
- URL can be easily changed in
index.jsorconfig.json.
- Clone the repository:
- Install dependencies:
npm install
To start the desktop app:
npm start
This will open a window with your Web Instance URL. You can change the URL directly in main.js.
To create an executable for Windows, Mac or Linux, use electron-packager or electron-builder
Example with electron-packager:
- Install:
npm install electron-packager --save-dev
- Package the app:
npx electron-packager . WebApp --platform=win32 --arch=x64 --overwrite
This will create a folder WebApp-win32-x64 with a ready .exe for Windows. Change --platform to darwin (Mac) or linux for other platforms.
WebApp-Desktop/
β
βββ index.js # Main Electron script
βββ package.json # Node.js dependencies and scripts
βββ config.json # App configuration (URL, settings)
βββ .gitignore # Ignore node_modules and other files
βββ node_modules/ # Generated after npm install
In index.js add URL for Web Instance
win.loadURL('https://your-web-instance.com');
OR In config.json add your web instance
"appUrl": "https://your-web-instance.com"
Contributions are welcome!
If you want to improve this project:
- Fork the repository
- Create a new branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -m "Add new feature") - Push to the branch (
git push origin feature/my-feature) - Open a Pull Request
Feel free to open issues for suggestions, bugs or improvements.
MIT License