Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

feat: add pywin32 dependency only on windows systems #266

Merged
merged 4 commits into from
Nov 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,22 +114,22 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: '3.9'
architecture: ${{ matrix.arch }}

- name: Install dependencies
shell: bash
run: |
pip3 install --upgrade pip wheel
pip3 install --upgrade poetry PyInstaller ${{ matrix.qt }}
pip3 install --upgrade pip wheel --user
pip3 install --upgrade --user poetry PyInstaller ${{ matrix.qt }}
poetry install -E ${{ matrix.qt }}
poetry build
pip3 install dist/*.whl

- name: Create .exe
run: |
echo "from guiscrcpy.cli import cli; cli()" > entry.py
python -m PyInstaller -n guiscrcpy-${{ matrix.qt }}-${{ matrix.arch }} .\entry.py --onefile -i guiscrcpy\ui\icons\guiscrcpy_logo_SRj_icon.ico
python -m PyInstaller -n guiscrcpy-${{ matrix.qt }}-${{ matrix.arch }} .\entry.py --onefile -i guiscrcpy\ui\icons\guiscrcpy_logo_SRj_icon.ico --hidden-import pywin32

- name: Upload artifact
uses: actions/upload-artifact@v1.0.0
Expand All @@ -154,7 +154,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
python-version: '3.9'
architecture: ${{ matrix.arch }}


Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: 3.x
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade poetry wheel
Expand Down
Loading