diff options
author | kliment <kliment.yanev@gmail.com> | 2021-01-29 13:12:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 13:12:58 +0300 |
commit | 5a130c37857a30f2659cd99ad8048c8bced47bdb (patch) | |
tree | a02e81190557cafe6c7cabfab611126d68ed18a0 /.github | |
parent | 567f06d3899d2e0cf2a2e9bd1ddaad8b0906e8b9 (diff) | |
parent | 91dd416711059b63d49cf2f8747434c36e547bc6 (diff) |
Merge pull request #1117 from kliment/osx-build-fix
Fix github action for building macos app
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/buildpackage-mac.yml | 8 | ||||
-rw-r--r-- | .github/workflows/buildpackage-win.yml | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/buildpackage-mac.yml b/.github/workflows/buildpackage-mac.yml index fb2d816..804868f 100644 --- a/.github/workflows/buildpackage-mac.yml +++ b/.github/workflows/buildpackage-mac.yml @@ -33,12 +33,16 @@ jobs: python setup.py build_ext --inplace - name: Make pyinstaller spec run: | - pyi-makespec -F --add-data images/\*:images --add-data \*.png:. --add-data \*.ico:. -w -i P-face.icns pronterface.py + pyi-makespec --hidden-import="pkg_resources.py2_warn" -F --add-data images/\*:images --add-data \*.png:. --add-data \*.ico:. -w -i P-face.icns pronterface.py - name: Make pyinstaller build run: | pyinstaller --clean pronterface.spec -y + ls -l dist/pronterface.app/Contents/macOS/pronterface + chmod +x dist/pronterface.app/Contents/macOS/pronterface + ls -l dist/pronterface.app/Contents/macOS/pronterface + zip -r -X pronterface-app.zip dist - name: Upload artifacts for inspection uses: actions/upload-artifact@v2 with: name: macosapp_${{ matrix.os }}_${{ matrix.architecture }}_${{ matrix.python-version }} - path: dist/* + path: pronterface-app.zip diff --git a/.github/workflows/buildpackage-win.yml b/.github/workflows/buildpackage-win.yml index 285e477..17fffb9 100644 --- a/.github/workflows/buildpackage-win.yml +++ b/.github/workflows/buildpackage-win.yml @@ -33,7 +33,7 @@ jobs: python setup.py build_ext --inplace - name: Make pyinstaller spec run: | - pyi-makespec -F --add-data "images/*;images" --add-data "*.png;." --add-data "*.ico;." -w -i pronterface.ico pronterface.py + pyi-makespec --hidden-import="pkg_resources.py2_warn" -F --add-data "images/*;images" --add-data "*.png;." --add-data "*.ico;." -w -i pronterface.ico pronterface.py - name: Make pyinstaller build run: | pyinstaller --clean pronterface.spec -y |