iOS14以後要求ipa的下載下傳位址也必須是https的,是以需要找一個可以分享下載下傳連結的網盤。要直接能下載下傳的,不需要登入的。
1.首先登入gitee
建立一個項目,并,建立一個xxx.plist檔案
github會很慢甚至打不開。
檔案内容如下,記得替換成你自己的:下載下傳網址、應用名稱、版本、iocn圖檔
注意下載下傳位址要用https的,可以用阿裡雲或騰訊雲買的域名免費獲得https證書。
<?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://下載下傳網址/xxx.ipa</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>needs-shine</key>
<false/>
<key>url</key>
<string>https://下載下傳網址/images/icon512.png</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>needs-shine</key>
<true/>
<key>url</key>
<string>https://下載下傳網址/images/icon72.png</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>包名例如com.xxx.xxx</string>
<key>bundle-version</key>
<string>版本号随便填例如1.0.1</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>應用名xxx</string>
</dict>
</dict>
</array>
</dict>
</plist>
儲存檔案。
檢視原始資料

原始資料類似于下邊的
然後複制原始資料的網址https://gitee.com/xxx/xxx/raw/master/xxx.plist xxx内容是你自己的。
這個網址備用。
2.制作下載下傳頁面
按鈕連結如下,裡邊gitee的連結用你第一步得到的。
<div class="btn">
<a href="itms-services:///?action=download-manifest&url=https://gitee.com/xxx/xxx/raw/master/xxx.plist" target="_blank" rel="external nofollow" target="blank">
</div>