Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/windows/msix/create_msix_package.py')
-rw-r--r--release/windows/msix/create_msix_package.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/release/windows/msix/create_msix_package.py b/release/windows/msix/create_msix_package.py
index 69b0a2ef901..497aa1d7068 100644
--- a/release/windows/msix/create_msix_package.py
+++ b/release/windows/msix/create_msix_package.py
@@ -46,6 +46,9 @@ content_blender_folder = pathlib.Path(content_folder, "Blender").absolute()
content_assets_folder = pathlib.Path(content_folder, "Assets")
assets_original_folder = pathlib.Path(".", "Assets")
+pri_config_file = pathlib.Path(".", "priconfig.xml")
+pri_resources_file = pathlib.Path(content_folder, "resources.pri")
+
local_blender_zip = pathlib.Path(".", "blender.zip")
if args.pfx:
@@ -58,6 +61,13 @@ else:
pfx_path = None
print("Creating MSIX package without signing.")
+pri_command = ["makepri",
+ "new",
+ "/pr", f"{content_folder.absolute()}",
+ "/cf", f"{pri_config_file.absolute()}",
+ "/of", f"{pri_resources_file.absolute()}"
+ ]
+
msix_command = ["makeappx",
"pack",
"/h", "SHA256",
@@ -115,6 +125,8 @@ with zipfile.ZipFile(local_blender_zip, "r") as blender_zip:
print("... extraction complete.")
+print(f"Generating Package Resource Index (PRI) file using command: {' '.join(pri_command)}")
+execute_command(pri_command, "MakePri", 4)
print(f"Creating MSIX package using command: {' '.join(msix_command)}")