Only use end of cura version for identifier. The "/" is an illegal character in the distribution.xml

CURA-6867
This commit is contained in:
Joey de l'Arago 2023-01-13 13:38:10 +01:00
parent 6ca4af399a
commit c04cc7809a

View file

@ -141,12 +141,14 @@ 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("cura_version", type = str, help="The version of cura")
parser.add_argument("cura_conan_version", type = str, help="The version of cura")
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()
cura_version = args.cura_conan_version.split("/")[-1]
if Path(args.filename).suffix == ".pkg":
create_pkg_installer(args.filename, args.dist_path, args.cura_version)
create_pkg_installer(args.filename, args.dist_path, cura_version)
elif Path(args.filename).suffix == ".dmg":
create_dmg(args.filename, args.dist_path, args.source_path)
else: