码迷,mamicode.com
首页 > 移动开发 > 详细

IOS包 " *. ipa " 放到自己的服务器,并支持下载安装

时间:2020-05-31 18:09:47      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:安装   文件   ref   tms   ice   public   自己的   支持   utf-8   

技术图片

 

1.创建 manifest.plist 文件
   2.通过 itms-services://协议让 Safari 进行下载
   3.ipa 下载链接必须为 https 的

文件 manifest.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>https://xxxx.com/down/ios/xxxx.ipa</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>url</key>
<string>https://xxxx.com/down/ios/images/58.png</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>url</key>
<string>https://xxxx.com/down/ios/images/640X960.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>.com.xxxx.xxxLo</string>
<key>bundle-version</key>
<string>1.4</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>xxxx网</string>
</dict>
</dict>
</array>
</dict>
</plist>

文件 index.html
<html lang="en">
<head>
<meta charset="UTF-8">
<title>xxxx网</title>
</head>
<body>
<a style="font-size: 5rem" href="itms-services://?action=download-manifest&url=https://xxxx.com/down/ios/manifest.plist">下载</a>
<h1>IOS下载</h1>
</body>
</html>

参考链接
https://www.jianshu.com/p/2f5ec1ab46f4


IOS包 " *. ipa " 放到自己的服务器,并支持下载安装

标签:安装   文件   ref   tms   ice   public   自己的   支持   utf-8   

原文地址:https://www.cnblogs.com/daivid/p/13019824.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!