mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 19:05:54 +08:00
Remove double .dmg at the end of file name.
Fix typo in msi_instaler CURA-6867
This commit is contained in:
parent
116d2b9ce5
commit
0f683d301a
2
.github/workflows/cura-installer.yml
vendored
2
.github/workflows/cura-installer.yml
vendored
@ -251,7 +251,7 @@ jobs:
|
|||||||
if "${{ runner.os }}" == "Windows":
|
if "${{ runner.os }}" == "Windows":
|
||||||
installer_ext = "msi" if "${{ inputs.msi_installer }}" == "true" else "exe"
|
installer_ext = "msi" if "${{ inputs.msi_installer }}" == "true" else "exe"
|
||||||
elif "${{ runner.os }}" == "macOS":
|
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:
|
else:
|
||||||
installer_ext = "AppImage"
|
installer_ext = "AppImage"
|
||||||
output_env = os.environ["GITHUB_OUTPUT"]
|
output_env = os.environ["GITHUB_OUTPUT"]
|
||||||
|
@ -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
|
@param source_path: The location of the project source files
|
||||||
"""
|
"""
|
||||||
|
|
||||||
dmg_filename = f"{filename}.dmg"
|
build_dmg(source_path, dist_path, filename)
|
||||||
|
|
||||||
build_dmg(source_path, dist_path, dmg_filename)
|
|
||||||
|
|
||||||
notarize_dmg = bool(os.environ.get("NOTARIZE_DMG", "TRUE"))
|
notarize_dmg = bool(os.environ.get("NOTARIZE_DMG", "TRUE"))
|
||||||
if notarize_dmg:
|
if notarize_dmg:
|
||||||
notarize_file(dist_path, dmg_filename)
|
notarize_file(dist_path, filename)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user