Allow to link content inside PackageMaker project without duplication to shrink product space
We want to create native installer for our products (scripts for After Effects) It's possible that user have multiple versions of AE installed, and to give an option for selecting specific version we need to use PackageMaker content Choices.
Each choice have folder associated with it. In our products folder is always the same, what differs is location to move that folder. The way PackageMaker works it create unique pkg for every choice content, event if it's same content from other Choices After build, final installer contain multiple equal pkgs.
To solve this problem, we generate new version of project, where all the content linked to first available package. After if, generated content might look buggy, but that's OK.
How to use
- Find content name (can be found using
Show Package Contenton
YourProject.pmdoc and looking at files like
01content-contents.xml(here content=content), if there will be files like
- run with python3
python3 pmoptimizer.py -p YourProject -c content
Installer size shrinked by N times (N = amount of choices in installer) if content is same.