This repository contains a batch script designed to fix packaging issues with Godot UWP projects. By placing the script in the same directory as your Godot UWP export (export.appx
), it automates the process of extracting, modifying, and repackaging the appx file.
-
Pre-requisites:
- Ensure that 7-Zip is installed on your system.
- Have Visual Studio 2019 installed with the necessary tools, including
makeappx
command.
-
Setup:
- Place the
unpack_and_repack.bat
script in the same directory as yourexport.appx
file generated from Godot UWP export.
- Place the
-
Execution:
- Double-click
unpack_and_repack.bat
to execute the script. - The script will automatically:
- Extract
export.appx
using 7-Zip. - Delete
[Content_Types].xml
andAppxBlockMap.xml
which may cause packaging issues. - Utilize the Developer Command Prompt for Visual Studio 2019 to run
makeappx pack
to create a fixedmy_game.appx
.
- Extract
- Double-click
-
Outcome:
- After execution, you should find
my_game.appx
in the same directory asexport.appx
, ready for deployment or further testing.
- After execution, you should find
- This script assumes a standard setup with paths to 7-Zip and Visual Studio tools configured as specified. Modify the paths (
sevenZipPath
, path toVsDevCmd.bat
) in the script if your setup differs. - Keep the Developer Command Prompt for Visual Studio open during script execution to ensure environment variables are correctly set.