Просмотр исходного кода

Remove + character from bundle identifier

CURA-12313
This character is not allowed and will make an invalid package, see https://developer.apple.com/documentation/bundleresources/information-property-list/cfbundleidentifier
Erwan MATHIEU 1 месяц назад
Родитель
Сommit
73519a3cdc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packaging/MacOS/build_macos.py

+ 1 - 1
packaging/MacOS/build_macos.py

@@ -154,7 +154,7 @@ if __name__ == "__main__":
     parser.add_argument("--app_name", required = True, type = str, help = "Filename of the .app that will be contained within the dmg/pkg")
     args = parser.parse_args()
 
-    cura_version = args.cura_conan_version.split("/")[-1]
+    cura_version = args.cura_conan_version.replace("+","-") # + is not allowed for bundle identifier
 
     app_name = f"{args.app_name}.app"