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

Commit

Permalink
Merge pull request #266 from srevinsaju/work/srevin/pywin32
Browse files Browse the repository at this point in the history
feat: add pywin32 dependency only on windows systems
  • Loading branch information
srevinsaju authored Nov 19, 2021
2 parents 389a33a + 4bc7475 commit 939a26e
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 172 deletions.
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/[email protected]
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

0 comments on commit 939a26e

Please sign in to comment.