From 116d2b9ce58dcf239f652f622048bc0f100ea985 Mon Sep 17 00:00:00 2001 From: Joey de l'Arago Date: Thu, 12 Jan 2023 16:19:24 +0100 Subject: [PATCH] Add source path back to macOs installer for fetching dmg background image CURA-6867 --- .github/workflows/cura-installer.yml | 2 +- packaging/MacOS/build_macos.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cura-installer.yml b/.github/workflows/cura-installer.yml index aeae82e114..dff7b70256 100644 --- a/.github/workflows/cura-installer.yml +++ b/.github/workflows/cura-installer.yml @@ -310,7 +310,7 @@ jobs: - name: Create the MacOS dmg and/or pkg (Bash) if: ${{ github.event.inputs.installer == 'true' && runner.os == 'Macos' }} - run: python ../cura_inst/packaging/MacOS/build_macos.py . "${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }}" + run: python ../cura_inst/packaging/MacOS/build_macos.py ../cura_inst . "${{ steps.filename.outputs.FULL_INSTALLER_FILENAME }}" working-directory: dist - name: Upload the artifacts diff --git a/packaging/MacOS/build_macos.py b/packaging/MacOS/build_macos.py index ed2605594e..3dbb3652f5 100644 --- a/packaging/MacOS/build_macos.py +++ b/packaging/MacOS/build_macos.py @@ -140,6 +140,7 @@ def create_dmg(filename: str, dist_path: str, source_path: str) -> None: if __name__ == "__main__": parser = argparse.ArgumentParser(description = "Create installer for Cura.") + parser.add_argument("source_path", type = str, help="Path to Pyinstaller source folder") parser.add_argument("dist_path", type = str, help="Path to Pyinstaller dist folder") parser.add_argument("filename", type = str, help = "Filename of the pkg (e.g. 'UltiMaker-Cura-5.1.0-beta-Macos-X64.pkg')") args = parser.parse_args()