Skip to content

Instantly share code, notes, and snippets.

@zhangxigithub
Last active December 20, 2015 19:29
Show Gist options
  • Select an option

  • Save zhangxigithub/6183406 to your computer and use it in GitHub Desktop.

Select an option

Save zhangxigithub/6183406 to your computer and use it in GitHub Desktop.
iOS服务器编译生成ipa
<?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