erri120 / rpgmpacker

Simple CLI program for packaging RPG Maker games to use in an automated build/deploy pipeline.
MIT License
28 stars 3 forks source link

Unzip `nwjs-osx-unsigned.zip` for MV #48

Open Dustb0 opened 2 years ago

Dustb0 commented 2 years ago

Description When running rpgmpacker on Windows and trying to build for MacOS, the program fails with: 2022-02-13T12:53:57.959Z|ERROR|The template folder C:\Program Files (x86)\Steam\steamapps\common\RPG Maker MV\nwjs-osx-unsigned does not exist!

That's because on Windows, the MacOS template folder is zipped by default. For some reason, RPG Maker unzips the contents of this zip file to the output folder when building for MacOS on Windows: image

I know that on MacOS that's not the case, the folder is just there. Not sure how it is on Linux. It would be cool if rpgmpacker could handle this case as well for Windows users.

Environment Details

Logs

C:\Users\xxx\Documents>npx rpgmpacker --input "C:\Users\xxx\Documents\MyProject" --output "C:\Users\xxx\Documents\Output" --platforms "Windows" "OSX" "Linux" --rpgmaker "C:\Program Files (x86)\Steam\steamapps\common\RPG Maker MV"
2022-02-13T12:53:48.024Z|INFO|Building output for 3 targets
2022-02-13T12:53:57.958Z|INFO|Finished with Platform Windows
2022-02-13T12:53:57.959Z|ERROR|The template folder C:\Program Files (x86)\Steam\steamapps\common\RPG Maker MV\nwjs-osx-unsigned does not exist!
erri120 commented 2 years ago

nwjs-osx-unsigned is probably zipped to reduce the space requirements. Just extract it in the MV installation folder for now