5

uniapp打包ipa通过页面下载

 1 year ago
source link: https://blog.p2hp.com/archives/11510
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

uniapp打包ipa通过页面下载 | Lenix Blog

最近在做一个app,用uniapp打包之后,本来是用蒲公英分发,然而客户希望将下载地址改为自己公司下载地址,于是便做了一个下载页,提供给客户进行下载。

自行做下载页需要以下三个文件:

  1. ipa文件
  1. plist文件
  1. 下载的html

首先,ipa,plist,html三个文件名一致

其次,需要pilst文件,需要注意四个位置,ipa地址,bundle-identifier包名(Bundle ID),bundle-version版本号,title换成自己的,其他copy就行了。

6e92248a198d12f2e812df150a597691.png

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "" target="_blank">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://xxx.com/xxx.ipa</string>

</dict>

</array>

<key>metadata</key>

<dict>

<key>bundle-identifier</key>

<string>xxx</string>

<key>bundle-version</key>

<string>1.0.21</string>

<key>kind</key>

<string>software</string>

<key>title</key>

<string>xxx</string>

</dict>

</dict>

</array>

</dict>

</plist>

三,html中下载链接

<a class="btn"

href="itms-services://?action=download-manifest&url=https://xxx/xxx.plist">下载APP</a>

四,将ipa,plist,html三个文件放到客户服务器,最后得到一个html网页文件,https://xxx/xxx.html,进网页文件,点击下载就可以下载ios安装包啦。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK