2020-06-16 21:44:48 +08:00
..
2020-06-16 21:34:36 +08:00
2020-06-16 21:32:09 +08:00
2020-06-15 21:22:57 +08:00
2020-06-16 21:44:48 +08:00
2020-06-16 21:32:09 +08:00
2020-06-16 21:44:48 +08:00
2020-06-16 21:44:48 +08:00

Shadow Editor Desktop

Use Electron to create a desktop app.

Create on Windows

  1. 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/
  1. Download MongoDB and unzip in the mongo folder.

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.

  1. Build ShadowEditor.

Read README.md in the root folder to build on Windows.

  1. Run the following in this folder to copy build folder.
xcopy /e /q /y ..\..\build .\build
  1. Run Electron App.
npm start
  1. Build Electron App.
npm run package

The app will generated in the out folder.