Skip to content
YingXue edited this page Feb 1, 2020 · 13 revisions

How to package the app:

Windows

Run npm run package:win this will create a executable installation, an msi installation, and a stand-alone executable in the dist dirctory based on the version number in the package.json file.

Linux

Run npm run package:linux this will create snap and AppImage installations as well as tar.gz, tar.lz, and tar.xz formats. Changes to build.linux.target array entries can be used to only build specific output types.

Macintosh

Run npm run package:mac this will create dmg installations suitable for Macintosh OSX as well as mountable application.

Linux on Windows via Docker

Ensure your Docker environment is set up appropriately. Run npm run docker to pull and launch the electronland/electron-builder image and launch the current working directory as /. Some environments require $(pwd) to be replaced with the actual host directory. You can make the change as needed in package.json.

Once the electron-builder environment is loaded, run npm run package:linux to create the Linux installations as you would in a full Linux environment.

How to solve 'Port is in use'

The port our app use may have already been taken by another process, or being blocked by a firewall or some proxy settings.

You can either free up the port or set up a custom port to use.

In order to set up the port, add an enviroment variable 'AZURE_IOT_EXPLORER' with its value being an open port that the app can use and then restart the app.
For example in powershell, you can execute the following command: [System.Environment]::SetEnvironmentVariable('AZURE_IOT_EXPLORER', '55883')

Clone this wiki locally