Last active
December 20, 2015 19:29
-
-
Save zhangxigithub/6183406 to your computer and use it in GitHub Desktop.
iOS服务器编译生成ipa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| need : shenzhen | |
| https://github.com/nomad/shenzhen | |
| Installation: | |
| $ gem install shenzhen | |
| */ | |
| $dir = "/Applications/MAMP/htdocs/mad/project/MADClient"; | |
| $target = "MADClient"; | |
| $out = "/Applications/MAMP/htdocs/mad/app.ipa"; | |
| function build($dir,$target,$out) | |
| { | |
| echo system('\ | |
| export DYLD_LIBRARY_PATH="";\ | |
| cd '.$dir.';\ | |
| ipa build;\ | |
| mv '.$target.'".ipa" '.$out.';\ | |
| rm '.$target.'".app.dSYM.zip";\ | |
| '); | |
| } | |
| function itmsURL($plist) | |
| { | |
| return 'itms-services://?action=download-manifest&url='.$plist; | |
| } | |
| build($dir,$target,$out); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment