Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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

Discussion in 'Unity Build Automation' started by egonaraujo, Aug 12, 2020.

  1. egonaraujo

    egonaraujo

    Joined:
    Jan 21, 2015
    Posts:
    18
    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?

    2. 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!
     
  2. looytroop

    looytroop

    Joined:
    Jun 22, 2017
    Posts:
    63
    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.
     
  3. looytroop

    looytroop

    Joined:
    Jun 22, 2017
    Posts:
    63