iOS 企业分发 安装包发布

xiaoxiao2021-02-28  52

1.做一个index.html,下载按钮的点击事件

function installer() { location.href = "itms-services://?action=download-manifest&url=https://...../setup.plist"; }

2.setup.plist 文件格式

<?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>THE URL FOR YOUR IPA: ex: http://go.com/appname.ipa</string> </dict> <dict> <key>kind</key> <string>full-size-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>THE URL FOR INSTALLATION @2x ICON: ex: http://go.com/Icon@2x.png</string> </dict> <dict> <key>kind</key> <string>display-image</string> <key>needs-shine</key> <true/> <key>url</key> <string>THE URL FOR INSTALLATION ICON: ex: http://go.com/Icon.png</string> </dict> </array> <key>metadata</key> <dict> <key>bundle-identifier</key> <string>YOUR BUNDLE ID (Take it from your Xcode Project)</string> <key>bundle-version</key> <string>1.2.3 Your app version</string> <key>kind</key> <string>software</string> <key>title</key> <string>The Title To Present To The User installing the app</string> </dict> </dict> </array> </dict> </plist>
转载请注明原文地址: https://www.6miu.com/read-96837.html

最新回复(0)