In order to run the development version, clone the repository, and install dependencies via npm, you need network access.
You'll need the following tools:
- Clone the repository locally and go to the project folder.
git clone https://github.com/Autonomy-Logic/openplc-editor.git
cd openplc-editor- Install the dependencies
npm installnpm install also fetches the pinned tools named in binary-versions.json: STruC++ (into node_modules/strucpp) and
the HMI widget libraries from openplc-hmi-widgets (into
vendor/hmi-widgets/, checked against the pinned SHA-256). npm run setup:strucpp and npm run setup:hmi-widgets
fetch each one again. To try a local build of openplc-hmi-widgets instead of the pinned release, point the setup at it:
OPENPLC_HMI_WIDGETS_DIR=<openplc-hmi-widgets>/dist npm run setup:hmi-widgets.
- Run the development script
npm run devnpm run test # Unit tests (Jest, with coverage)
npm run test:watch # Unit tests in watch mode (no coverage)
npm run test:e2e # End-to-end tests (Playwright, builds the app first)The project uses GitHub Actions to automatically build and release new versions for all supported platforms (macOS, Windows, and Linux) in both x64 and ARM64 architectures.
To create a new release, simply create and push a new tag with the version number:
git tag v4.2.0
git push origin v4.2.0This will automatically:
- Build the application for all platforms (macOS, Windows, Linux) and architectures (x64, ARM64)
- Sign and notarize the macOS builds
- Create a GitHub Release with all artifacts attached
- Generate release notes based on commits since the last release
- Use semantic versioning:
vMAJOR.MINOR.PATCH(e.g.,v4.2.0) - For pre-releases, add a suffix:
v4.2.0-beta,v4.2.0-alpha, orv4.2.0-rc1 - Pre-release tags will be marked as pre-releases on GitHub
You can also trigger the build workflow manually from the GitHub Actions tab without creating a release. This is useful for testing builds:
- Go to Actions > Build and Release
- Click "Run workflow"
- Optionally specify a version number
- Click "Run workflow"
Note: Manual triggers will build all artifacts but won't create a GitHub Release (releases are only created when pushing a tag).
Please go to the repository wiki page to get instruction about the project.
Go to project management page to see the current state of the project.
Go to issues page to view the current state of issues in the project.
The OpenPLC Editor is licensed under the GPLv3 (see LICENSE).
The baremetal runtime the editor builds into microcontroller firmware is dual-licensed: GPLv3 or a commercial licence. If you are using it in a commercial setting, you may need a commercial licence. Licences can be bought from the OpenPLC Editor (desktop or web) when you upload a program to the device.
Contributions require agreeing to the Contributor License Agreement by ticking its checkbox on the pull request; see CONTRIBUTING.md.
