Remove double .dmg at the end of file name.

Fix typo in msi_instaler

CURA-6867
This commit is contained in:
Joey de l'Arago 2023-01-13 09:26:54 +01:00
parent 116d2b9ce5
commit 0f683d301a
2 changed files with 3 additions and 5 deletions

View File

@ -251,7 +251,7 @@ jobs:
if "${{ runner.os }}" == "Windows":
installer_ext = "msi" if "${{ inputs.msi_installer }}" == "true" else "exe"
elif "${{ runner.os }}" == "macOS":
installer_ext = "pkg" if "${{ inputs.mis_installer }}" == "true" else "dmg"
installer_ext = "pkg" if "${{ inputs.msi_installer }}" == "true" else "dmg"
else:
installer_ext = "AppImage"
output_env = os.environ["GITHUB_OUTPUT"]

View File

@ -129,13 +129,11 @@ def create_dmg(filename: str, dist_path: str, source_path: str) -> None:
@param source_path: The location of the project source files
"""
dmg_filename = f"{filename}.dmg"
build_dmg(source_path, dist_path, dmg_filename)
build_dmg(source_path, dist_path, filename)
notarize_dmg = bool(os.environ.get("NOTARIZE_DMG", "TRUE"))
if notarize_dmg:
notarize_file(dist_path, dmg_filename)
notarize_file(dist_path, filename)
if __name__ == "__main__":