Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

pre and post build functions script for all platforms

Discussion in 'Assets and Asset Store' started by jed500, Nov 11, 2011.

  1. jed500

    jed500

    Joined:
    Aug 8, 2008
    Posts:
    27
    Due to issues with postbuildprocess script on windows please find a link to free editor script for all platforms which replicates build and build -run buttons, calling a pre build and post build function and valid build path, please let me know of any improvements as I hope sure this will help many, cheers Jon

    http://jon-martin.com/?p=309
     
  2. Wild-Factor

    Wild-Factor

    Joined:
    Oct 11, 2010
    Posts:
    607
    thanks.
    Unity missed that.
     
  3. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    pre build is sweet, thanks :)

    don't get the part on postbuild though, the problem there normally is that 99.9% of the people forget that the osx ones will not work cause you have neither bash, perl nor applescript but that windows expects batch (that or you have to install per for example ... would be the easiest for crossplatform scripts actually)
     
  4. jed500

    jed500

    Joined:
    Aug 8, 2008
    Posts:
    27
    Thanks once again dreamora, you're quite right I got so far down that route and realised that it would need to call a batch file or need to install perl etc on all our other dev machines, couldn't get a batch file to execute when named PostbuildProcess though, so after realising loads of other (mainly windows) users had similar problems and that Aras had suggested back in 2008/9 this would be the way to go, slung this together. From the two functions I guess you could execute any app, batch file, perl etc with arguments, hence the two functions for completeness.

    In my case the reason for it was that i've been messing around with tripleDES/MD5 php-c# serial protection/trial for our standalone apps and wanted to execute a clean licence function, and paste it into the build folder on build.