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.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/release/windows/msix/create_msix_package.py b/release/windows/msix/create_msix_package.py
index dda09a10d4b..7d33abb03c7 100644
--- a/release/windows/msix/create_msix_package.py
+++ b/release/windows/msix/create_msix_package.py
@@ -95,6 +95,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:
@@ -107,6 +110,13 @@ else:
pfx_path = None
print("Creating MSIX package without signing.")
+pri_new_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",
@@ -165,6 +175,9 @@ 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_new_command)}")
+execute_command(pri_new_command, "MakePri", 4)
+
print(f"Creating MSIX package using command: {' '.join(msix_command)}")
# Remove MSIX file if it already exists. Otherwise the MakeAppX tool