mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2025-12-08 19:26:19 +00:00
Shadow Editor Desktop
Use Electron to create a desktop app.
Create on Windows
- Install
Electron.
npm install --save-dev electron electron-packager
In China, as it is really slow and may fail at last, you can set a proxy as follows. Create or edit
file C:\Users\{Username}\.npmrc, and write:
registry=https://registry.npm.taobao.org/
disturl=https://npm.taobao.org/mirrors/node
ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/
- Download MongoDB and unzip in the
mongofolder.
Download mongodb zip package from https://www.mongodb.com/try/download/community.
Unzip mongodb-win32-x86_64-2012plus-4.2.7.zip in the mongo folder.
You can run mongo/start.bat and test if mongodb works well.
- Build ShadowEditor.
Read README.md in the root folder to build on Windows.
- Run the following in this folder to copy
buildfolder.
xcopy /e /q /y ..\..\build .\build
- Run Electron App.
npm start
- Build Electron App.
npm run package
The app will generated in the out folder.