自己搭建 iOS企业版IPA包系统

iOS企业版IPA包

首先确保ipa包是可以下载的。download.html,ipa.plist,appWallet.ipa可以放在自己搭建的nginx服务器上,也可以放在七牛或者阿里云上面,ios需要https访问。我自己使用的是nginx。nginx mime.types文件需要添加下面两种,这里把安卓的也贴了出来。

application/vnd.android.package-archive apk;   
application/iphone                   pxl ipa;

plist文件是最重要的,将itms-services:///?action=download-manifest&url=https://app.cn/ipa.plist转化为二维码或者直接在苹果浏览器打开即可下载。download.html的作用是可以在微信中打开通过点击按钮的方式下载。

download.html文件内容 https://app.cn/ipa.plist改为自己的实际位置。
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>
<body>    
<a href="itms-services:///?action=download-manifest&url=https://app.cn/ipa.plist" class="button button-stripe">AACWallet下载</a>
</body>
</html>
ipa.plist文件内容 https://app.cn/appWallet.ipa改为自己的实际位置。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>items</key>
        <array>
                <dict>
                        <key>assets</key>
                        <array>
                                <dict>
                                        <key>kind</key>
                                        <string>software-package</string>
                                        <key>url</key>
                                        <string>https://app.cn/appWallet.ipa</string>
                                </dict>
                        </array>
                        <key>metadata</key>
                        <dict>
                                <key>bundle-identifier</key>
                                <string>com.fnst.smartwork</string>
                                <key>bundle-version</key>
                                <string>1.0</string>
                                <key>kind</key>
                                <string>software</string>
                                <key>title</key>
                                <string>AACWallet.ipa</string>
                        </dict>
                </dict>
        </array>
</dict>
</plist>
发布了19 篇原创文章 · 获赞 0 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qq_40961831/article/details/85266668