From b514aefa5380c461fda3debea7fabdb9ad13b25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Dukai?= Date: Fri, 7 Jul 2023 11:57:32 +0200 Subject: [PATCH] Generate console app on Windows and mac --- .github/workflows/package-release.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/package-release.yml b/.github/workflows/package-release.yml index 0f79065..fe6a50e 100644 --- a/.github/workflows/package-release.yml +++ b/.github/workflows/package-release.yml @@ -45,23 +45,38 @@ jobs: - name: Test with tox run: | tox - - name: Pyinstaller package - run: | - pip install . - pyinstaller --name cityjson2ifc --onefile --collect-all ifcopenshell src/cityjson2ifc_cli/cli.py + - name: Install package + run: pip install . - if: runner.os == 'Linux' + name: Pyinstaller package Linux run: | + pyinstaller \ + --name cityjson2ifc \ + --onefile \ + --collect-all ifcopenshell src/cityjson2ifc_cli/cli.py zip -rj dist/cityjson2ifc-ubuntu.zip dist/cityjson2ifc sha256sum dist/cityjson2ifc-ubuntu.zip > dist/cityjson2ifc-ubuntu.zip.sha256sum rm dist/cityjson2ifc - if: runner.os == 'macOS' + name: Pyinstaller package macOS run: | + pyinstaller \ + --name cityjson2ifc \ + --onefile \ + --console \ + --collect-all ifcopenshell src/cityjson2ifc_cli/cli.py zip -rj dist/cityjson2ifc-macos.zip dist/cityjson2ifc shasum -a 256 dist/cityjson2ifc-macos.zip > dist/cityjson2ifc-macos.zip.sha256sum rm dist/cityjson2ifc - if: runner.os == 'Windows' + name: Pyinstaller package Windows run: | - certUtil -hashfile dist/cityjson2ifc.exe SHA256 > cityjson2ifc.exe.sha256sum + pyinstaller \ + --name cityjson2ifc \ + --onefile \ + --console \ + --collect-all ifcopenshell src/cityjson2ifc_cli/cli.py + certUtil -hashfile dist/cityjson2ifc.exe SHA256 > dist/cityjson2ifc.exe.sha256sum - name: List contents run: | ls dist