<commit_before>自动生成自签名HTTPS服务器，快速安装ipa

[README For English](./README-en.md)

# 支持
* OS X
* Ubuntu
* CentOS
* 其他平台未测试

# 需要
* [nodejs](https://nodejs.org/)

# 安装
```
$ npm install -g ios-ipa-server
```

# 用法
```
Usage: ios-ipa-server [option] [dir]

Options:

-h, --help                output usage information
-V, --version             output the version number
-p, --port <port-number>  set port for server (defaults is 1234)
-i, --ip <ip-address>     set ip address for server (defaults is automatic getting by program)
```

## 开启服务
```
$ cd /path/of/ipa
$ ios-ipa-server

# or

$ ios-ipa-server /path/of/ipa


# open https://ip:port/download on your iphone
```

### 关于`ipa`打包方法
* [Ad-hoc](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/TestingYouriOSApp/TestingYouriOSApp.html)
* [企业级分发](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/DistributingEnterpriseProgramApps/DistributingEnterpriseProgramApps.html)
* 普通开发者账号推荐使用[shenzhen](https://github.com/nomad/shenzhen)打包生成`ipa`

### 安装app
* 手机使用safari打开`https://ip:port/download`页面
* 第一次打开会弹出警告`无法验证服务器`，请点击`详细信息`按钮安装证书，按指示一直点击下一步和完成(**强烈推荐使用静态IP，避免每次重新安装证书**)
* 点击`ipa`链接在线安装`ipa`
* iOS 10.3 [安装方法](https://github.com/bumaociyuan/ios-ipa-server/issues/23) Settings > General > About (logically...) > Certificate Trust Settings > Enable Full Trust for Root Certificates


![simulator screen shot jun 22 2016 2 45 19 pm 2](https://cloud.githubusercontent.com/assets/4977911/16257320/66c5ff7e-388a-11e6-827a-b5708b86e272.png)
# 效果图
![screeshot](screeshot.png)


# 开发

```
# 下载源码
$ git clone <EMAIL>:bumaociyuan/ios-ipa-server.git

# 安装依赖包
$ cd ios-ipa-server
$ npm install 

# 建立link 方便调试
$ npm link

# 运行
$ cd /path/of/ipa
$ ios-ipa-server
```

# TODO

- [ ] 支持多语言
- [ ] 支持[shenzhen](https://github.com/nomad/shenzhen)
- [ ] 支持上传IPA
<commit_msg>	modified:   README.md<commit_after>自动生成自签名HTTPS服务器，快速安装ipa

[README For English](./README-en.md)

# 支持
* OS X
* Ubuntu
* CentOS
* 其他平台未测试

# 需要
* [nodejs](https://nodejs.org/)

# 安装
```
$ npm install -g ios-ipa-server
```

# 用法
```
Usage: ios-ipa-server [option] [dir]

Options:

-h, --help                output usage information
-V, --version             output the version number
-p, --port <port-number>  set port for server (defaults is 1234)
-i, --ip <ip-address>     set ip address for server (defaults is automatic getting by program)
```

## 开启服务
```
$ cd /path/of/ipa
$ ios-ipa-server

# or

$ ios-ipa-server /path/of/ipa


# open https://ip:port/download on your iphone
```

### 关于`ipa`打包方法
* [Ad-hoc](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/TestingYouriOSApp/TestingYouriOSApp.html)
* [企业级分发](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/DistributingEnterpriseProgramApps/DistributingEnterpriseProgramApps.html)
* 普通开发者账号推荐使用[shenzhen](https://github.com/nomad/shenzhen)打包生成`ipa`

### 安装app
* 手机使用safari打开`https://ip:port/download`页面
* 第一次打开会弹出警告`无法验证服务器`，请点击`详细信息`按钮安装证书，按指示一直点击下一步和完成(**强烈推荐使用静态IP，避免每次重新安装证书**)
* 点击`ipa`链接在线安装`ipa`
* iOS 10.3 [安装方法](https://github.com/bumaociyuan/ios-ipa-server/issues/23) Settings > General > About (logically...) > Certificate Trust Settings > Enable Full Trust for Root Certificates


![simulator screen shot jun 22 2016 2 45 19 pm 2](https://cloud.githubusercontent.com/assets/4977911/16257320/66c5ff7e-388a-11e6-827a-b5708b86e272.png)
# 效果图
![screeshot](screeshot.png)


# 开发

```
# 下载源码
$ git clone <EMAIL>:bumaociyuan/ios-ipa-server.git

# 安装依赖包
$ cd ios-ipa-server
$ npm install 

# 建立link 方便调试
$ npm link

# 运行
$ cd /path/of/ipa
$ ios-ipa-server
```

# TODO

- [ ] 支持多语言
- [ ] 支持[shenzhen](https://github.com/nomad/shenzhen)
- [ ] 支持上传IPA
- [ ] iOS 10.3 以上提示 #23 证书信任设置

{'fraction_non_alphanumeric': 0.15774278215223098, 'fraction_numerical': 0.031758530183727034, 'mean_word_length': 4.0949197860962565, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6753560', 'n_tokens_mistral': 1847, 'n_tokens_neox': 1879, 'n_words': 265}