How to make Post-Build scripts and find xcode and build folders

Hello!

I am trying to automate my MacOS build in a way that the codesigning and .pkg is done in the cloud. I figured that the post-build script is probably the way to go, but I have some questions…

1.Would that (code sign and pkg generation) be possible in the cloud?

  1. How do I access the Build and Xcode folders via this script, can I get any of the paths via parameters (like $1) or is there any hardcoded path that the build will always go to?

Thanks!

Hey! I’m looking for a solution to find the build folder as well. I’m generating a WebGL game and need to inject some html into the final build right after it finishes building. Via Cloud Build, I know I can supply a post-build script, and I just want to find that path, and inject my HTML.

UPDATE: After searching around I came across this as the path:

/BUILD_PATH/<ORG_ID>.<PROJECT_ID>.<BUILD_TARGET_ID>/.build/last/<BUILD_TARGET_ID>/

As you can see here: https://discussions.unity.com/t/760328/2

I was able to figure out the org_id, project_id, and build_target_id in the build logs.