-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build EXE | ||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- "*.*.*" | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install poetry | ||
uses: abatilo/actions-poetry@v2 | ||
- name: Install dependencies | ||
run: poetry install | ||
- name: Build executables | ||
run: scripts/build_executables.ps1 | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: | | ||
dist/OpenOpcCli.exe | ||
dist/OpenOpcServer.exe | ||
dist/OpenOpcService.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
|
||
pyinstaller --onefile ` | ||
poetry run pyinstaller --onefile ` | ||
--clean ` | ||
--noconfirm ` | ||
--paths ./openopc2 ` | ||
--hidden-import=json ` | ||
--hidden-import=win32timezone ` | ||
--hidden-import=pythoncom ` | ||
--name OpenOpcService ` | ||
../openopc2/gateway_service.py | ||
openopc2/gateway_service.py | ||
|
||
|
||
pyinstaller --onefile ` | ||
poetry run pyinstaller --onefile ` | ||
--clean ` | ||
--noconfirm ` | ||
--paths ./openopc2 ` | ||
--hidden-import=json ` | ||
--hidden-import=win32timezone ` | ||
--hidden-import=pythoncom ` | ||
--name OpenOpcCli ` | ||
../openopc2/cli.py | ||
openopc2/cli.py | ||
|
||
pyinstaller --onefile ` | ||
poetry run pyinstaller --onefile ` | ||
--clean ` | ||
--noconfirm ` | ||
--paths ./openopc2 ` | ||
--hidden-import=json ` | ||
--hidden-import=win32timezone ` | ||
--hidden-import=pythoncom ` | ||
--name OpenOpcServer ` | ||
../openopc2/gateway_server.py | ||
openopc2/gateway_server.py |