思路:ios開發(fā)人員提供ipa包痕囱、配置plist文件,配置https服務(wù)辖源、創(chuàng)建下載頁面以及鏈接
1. xml plist文件 ?看本文最后
2. 這里提供兩個免費(fèi)的SSL證書網(wǎng)站,配置好服務(wù)器就可以使用了?
? ? ? ? https://letsencrypt.org ? ?/ https://certbot.eff.org
????????http://www.reibang.com/p/801b67cc2ff8 ? 這篇文有配置說明cerbot生成免費(fèi)SSL證書的步驟
3.在nginx 配置:
server {
? ? ? ? listen 80;
? ? ? ? #/etc/letsencrypt/live/www.xxxx.cc
? ? ? ? listen? ? ? 443 ssl;
? ? ? ? ssl_certificate /etc/letsencrypt/live/www.xxxx.io/cert.pem;
? ? ? ? ssl_certificate_key /etc/letsencrypt/live/www.xxxx.io/privkey.pem;
? ? ? ? server_name www.xxxx.cc xxxx.cc;
? ? ? ? root /data/www/officialWeb;
? ? ? ? index? index.html index.php;
? ? ? ? # error_log? /data/www/www.xxxx.cc/storage/logs/xxxx_err.log;
? ? ? ? location / {
? ? ? ? ? ? ? # try_files $uri $uri/ /index.php?$query_string;
? ? ? ? }
? ? ? ? location ~ [^/]\.php(/|$) {
#? ? ? ? ? allow 111.111.11.1;
#? ? ? ? ? deny all;
? ? ? ? ? ? ? ? fastcgi_pass? 127.0.0.1:9000;
? ? ? ? ? ? ? ? fastcgi_index? /index.php;
? ? ? ? ? ? ? ? fastcgi_param PATH_INFO $fastcgi_path_info;
? ? ? ? ? ? ? ? fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
? ? ? ? ? ? ? ? fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
? ? ? ? ? ? ? ? include? ? ? ? fastcgi_params;
? ? ? ? }
}
4. 下載demo代碼:<a href="itms-services://?action=download-manifest&url=https://www.xxxx.cc/apps/eoscash.plist"> download </a>
plist 文件內(nèi)容 ?手敲上來的授帕,供參考同木,不保證能用,需要原始的去網(wǎng)上下載
-----------------------------------------------------------------------
<?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>http://xxxsdf.com/xxxx/xxxx.ipa</string><!-- http 或者h(yuǎn)ttps鏈接跛十, ipa文件下載地址 ?-->
? ? ? ? ? ? ? ? </dict>
? ? ? ? ? ? ? ? <dict>
? ? ? ? ? ? ? ? ? ? <key>kind</key>
? ? ? ? ? ? ? ? ? ? <string>full-size-image</string>
? ? ? ? ? ? ? ? ? ? <key>needs-shine</key>
? ? ? ? ? ? ? ? ? ? <true />
? ? ? ? ? ? ? ? ? ? ?<key>url</key>
? ? ? ? ? ? ? ? ? ? <string>https://xxxx.xxxxx/xxxxx/images/logo_im.png</string> <!-- ?http或者h(yuǎn)ttps 鏈接圖片地址 ?-->
? ? ? ? ? ? ? ? </dict>
? ? ? ? ? ? ? ? <dict>
? ? ? ? ? ? ? ? ? ? <key>kind</key>
? ? ? ? ? ? ? ? ? ? <string>display-image</string>
? ? ? ? ? ? ? ? ? ? <key>needs-shine</key>
? ? ? ? ? ? ? ? ? ? <true/>
? ? ? ? ? ? ? ? ? ? <key>url</key>
? ? ? ? ? ? ? ? ? ? <string>https://xxx.xxx/xxxx/images/logo_im.png</string><!-- http或者h(yuǎn)ttps鏈接的小圖片地址 ?-->
? ? ? ? ? ? ? ? </dict>
? ? ? ? ? ? </array>
? ? ? ? ? ? <key>metadata</key>
? ? ? ? ? ? <dict>
? ? ? ? ? ? ? ? <key>bundle-identifier</key>
? ? ? ? ? ? ? ? <string>com.beebay.jsnet</string><!-- BundleID 新建app時的包名 -->
? ? ? ? ? ? ? ? <key>bundle-version</key>
? ? ? ? ? ? ? ? <string>1.0.1</string><!-- 版本號 -->
? ? ? ? ? ? ? ? <key>kind</key>
? ? ? ? ? ? ? ? <string>software</string>
? ? ? ? ? ? ? ? <key>title</key>
? ? ? ? ? ? ? ? <string>EOSCash</string><!-- 安裝app時的提示信息 -->
? ? ? ? ? ? ?</dict>
? ? ? ? ? </dict>
? ? </array>
?</dict>
</plist>