Siropu Well-known member Jan 16, 2018 #1 I want to exclude some files in one of my add-on directories when the zip is built. How can I do that?
I want to exclude some files in one of my add-on directories when the zip is built. How can I do that?
Chris D XenForo developer Staff member Jan 16, 2018 #2 You can use a build.json file and its "exec" array to execute commands. You could get that to run a script or run some delete commands, e.g. JSON: { "exec": [ "rm -rf _build/file/to/remove" ] } This will remove it from the contents of the _build directory which is the temporary directory which is zipped up for the release.
You can use a build.json file and its "exec" array to execute commands. You could get that to run a script or run some delete commands, e.g. JSON: { "exec": [ "rm -rf _build/file/to/remove" ] } This will remove it from the contents of the _build directory which is the temporary directory which is zipped up for the release.
Siropu Well-known member Jan 16, 2018 #3 Thank you. In order to work, it seems that you need full path: _build/upload/src/addons/YourAddon/path/to/file
Thank you. In order to work, it seems that you need full path: _build/upload/src/addons/YourAddon/path/to/file
Chris D XenForo developer Staff member Jan 16, 2018 #4 Yes, that's correct - the _build directory has the same directory structure as the zip file.
Banxix Well-known member Dec 3, 2019 #5 Nice, it gave me idea of how to make another zip file with different structure.