arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Source Code

hashtag
Repository Links

  • SWAT+ source code repositoryarrow-up-right

  • SWAT+ Editor source code repositoryarrow-up-right

hashtag
Run and Compile SWAT+ Editor

hashtag
Install Development Tools

  • You may use any IDE of your choice, however is used by the developer.

  • Install

  • Install required Python packages. From command prompt, go to source code /api directory and run:

  • Install

  • Install required Node.js packages. From command prompt, go to the root directory of the source code and run:

hashtag
Run the Source Code

From a command prompt in the root directory (terminal inside Visual Studio Code)

Open a second command prompt and run

hashtag
Build the Source Code

First, use (included in the Python packages during install) to freeze the Python into executable files. This should be done from the /api directory in the source code. In Windows, run the supplied .bat file from a command prompt:

circle-info

Note: PyInstaller will create 32 or 64-bit executables depending on the version of Python you have installed.

Next, build the Vue.js code. Open a command prompt and run:

Finally, package the code for distribution using . Configuration is set in the package.json file. Results of the build will be placed in the /release/dist directory.

Create an installer:

Or, build a portable executable:

Or, pack the files into a directory:

QSWAT+ source code repositoryarrow-up-right
Visual Studio Codearrow-up-right
Python 3.7arrow-up-right
Node.jsarrow-up-right
PyInstallerarrow-up-right
Electron Builderarrow-up-right
pip install -r requirements.txt
npm install
npm run dev
npm run electron
pyinstaller_builds
npm run build
npm run dist
npm run dist-port
npm run pack