mirror of
https://github.com/izzy2lost/godotuwpexport.git
synced 2026-03-10 11:52:35 -07:00
main
Godot UWP Packaging Fix Script
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.
Usage
-
Pre-requisites:
- Ensure that 7-Zip is installed on your system.
- Have Visual Studio 2019 installed with the necessary tools, including
makeappxcommand.
-
Setup:
- Place the
unpack_and_repack.batscript in the same directory as yourexport.appxfile generated from Godot UWP export.
- Place the
-
Execution:
- Double-click
unpack_and_repack.batto execute the script. - The script will automatically:
- Extract
export.appxusing 7-Zip. - Delete
[Content_Types].xmlandAppxBlockMap.xmlwhich may cause packaging issues. - Utilize the Developer Command Prompt for Visual Studio 2019 to run
makeappx packto create a fixedmy_game.appx.
- Extract
- Double-click
-
Outcome:
- After execution, you should find
my_game.appxin the same directory asexport.appx, ready for deployment or further testing.
- After execution, you should find
Notes
- 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.
Description
Languages
Batchfile
100%