可以通过网页在线安装自动化部署,最终测试用户只需从页面下载安装即可。 也可以跳过向订购者订购的步骤,共享链接目标。 他们只需点击链接即可完成安装。
Android版本易于使用,只要部署静态文件服务器,所有Android设备都可以自行下载和安装。 这里主要介绍iOS的在线安装方式。
在线安装iOS的步骤很简单,就是部署https文件服务器(Nginx )、生成openssl证书,然后用即席或企业版本证书签名app。 这样,用户只需通过Safari访问页面即可进行安装。 现在,使用企业版证书签名的app不能上传到app store,但可以在任何设备上下载和安装。 要安装即席签名的app,最终用户设备的udid必须添加到签名的. mobileprovision中。 未加入udid的用户无法安装。
具体步骤如下。
1、部署https服务器。 这里也可以使用nginx(Apache的httpd。 注意只有https的服务器才能启动iOS的安装功能。
Nginx的安装在linux上可以参考这里。 必须安装依赖库,如pcre。
openssl需要0.9.8版,不需要1.0版。 Nginx的编译配置如下:
./configure– with-http _ SSL _ module– with-OpenSSL=./OpenSSL-0.9.8 zh
化妆
制造安装
2、Nginx配置如下(关键看https部分)。
用户根;
工作器_ processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
事件{
worker_connections 1024;
}
http {
include mime.types;
efault _ type应用程序/octet-stream;
# log _ format main ‘ $ remote _ addr-$ remote _ user [ $ time _ local ] ‘ $ request ‘ ‘
# ‘ $ status $ body _ bytes _ sent ‘ $ http _ referer ‘ ‘
# ‘ ‘ $ http _ user _ agent ‘ ‘ $ http _ x _ forwarded _ for ‘;
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
服务器{
listen 80
服务器_ name 127.0.0.1;
#charset koi8-r;
# access _ loglogs/host.access.log main;
位置/IOs _ test {
根/mnt/lang resser/download /
索引索引. html index.htm;
}
位置/IPA _ test {
alias /mnt/langresser/download/
add _ header content-dis positoin ‘ attachment ‘;
}
#error_page 404 /404.html;
# redirectservererrorpagestothestaticpage/50x.html
#
error _ page 500502503504/50x.html;
location=/50x.html {
根html;
}
# proxythephpscriptstoapachelisteningon 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
() )是
# passthephpscriptstofastcgiserverlisteningon 127.0.0.133609000
#
#location ~ \.php$ {
#根html;
# fastcgi _ pass 127.0.0.1:9000;
# fastcgi_index index.php;
# fastcgi _ param script _ filename/scripts $ fastcgi _ script _ name;
# include fastcgi_params;
() )是
# deny access to .htaccess files,if Apache ‘ s文档根
# concurs with nginx’s one
#
#location~~//ht{
# deny all;
() )是
}
# anothervirtualhostusingmixofip -,name-,和端口基础配置
#
#服务器{
# listen 8000;
#监听器somename :8080;
# server _ namesomenamealiasanother.alias;
#位置/{
#根html;
# index index.html index.htm;
() )是
() )是
#https服务器
#
服务器{
listen 443 ssl;
服务器_ name 127.0.0.1;
ssl on;
SSL _ certificate/usr/local/nginx/conf/server.CRT;
SSL _ certificate _ key/usr/local/nginx/conf/server _ no pwd.key;
#自动索引on;
#autoindex_exact_size off;
位置/IOs {
根/mnt/lang resser/download /
索引索引. html index.htm;
}
位置/IPA {
alias /mnt/langresser/download/
add _ header content-dis positoin ‘ attachment ‘;
}
}
# SSL _ session _ cache shared : SSL :1 m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH: aNULL: MD5;
# ssl_prefer_server_ciphers on;
#位置/{
#根html;
# index index.html index.htm;
() )是
() )是
}
3 .一个测试页面如下: index.html,部署到nginx )
游戏Demo 1. iOS安装证书
(如果您以前没有安装过此证书,请先安装证书)2. iOS安装游戏包3. Android安装游戏包