diff --git a/.github/build_pc_client_windows.yml b/.github/build_pc_client_windows.yml new file mode 100644 index 0000000..3cee909 --- /dev/null +++ b/.github/build_pc_client_windows.yml @@ -0,0 +1,39 @@ +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions + +name: Build PC Client on Windows + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: 3.9 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install PySide6 psutil pyinstaller + - name: Swith to PC client path + run: | + cd ./software/pc/ + - name: PyInstaller + run: | + pyinstaller hexapod.spec + copy mainwindow.ui .\dist\hexapod\ + - name: Archive built module + uses: actions/upload-artifact@v2 + if: success() + with: + name: hexapod_windows + path: .\dist\hexapod \ No newline at end of file diff --git a/software/pc/hexapod.spec b/software/pc/hexapod.spec new file mode 100644 index 0000000..c8e45ac --- /dev/null +++ b/software/pc/hexapod.spec @@ -0,0 +1,38 @@ +# -*- mode: python ; coding: utf-8 -*- + +block_cipher = None + + +a = Analysis(['hexapod.py'], + pathex=['./hexapod'], + binaries=[], + datas=[('./res', 'res')], + hiddenimports=[], + hookspath=[], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + [], + exclude_binaries=True, + name='hexapod', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + console=False, + icon='res/hexapod_logo.ico' ) +coll = COLLECT(exe, + a.binaries, + a.zipfiles, + a.datas, + strip=False, + upx=True, + upx_exclude=[], + name='hexapod') diff --git a/software/pc/res/hexapod_logo.ico b/software/pc/res/hexapod_logo.ico new file mode 100644 index 0000000..83dc9b4 Binary files /dev/null and b/software/pc/res/hexapod_logo.ico differ