Add source path back to macOs installer for fetching dmg background image

CURA-6867
This commit is contained in:
Joey de l'Arago 2023-01-12 16:19:24 +01:00
parent 3a24ab1bee
commit 116d2b9ce5
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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()