代码拉取完成,页面将自动刷新
使用ReactNative仿造的Git@OSC! (感谢 xiekw2010)
扫描下载Android(如下载不了可以打开 发布连接 下载)
###Install JS env
npm install
if error about 'EACCS' try
sudo chown -R $(whoami) "$HOME/.npm"
##iOS
open the project in ios dir cd ios
pod install
edit xcode project OSCGit
's scheme to release
mode
bundle the JS resources, in project root dir (如果第一次运行没生存index.ios.jsbundle,再运行一次)
react-native bundle --entry-file index.ios.js --bundle-output ./ios/bundle/index.ios.jsbundle --platform ios --assets-dest ./ios/bundle --dev false --sourcemap-output ./ios/bundle/source.map --verbose
Edit xcode project OSCGit
edit scheme to debug
mode
Xcode run!
- sh ./build_android.sh
- Just run the project
- react-native run-android
```bash
cnpm install -g code-push-cli --verbose
code-push register (会弹出网页,按照步骤安装)
code-push access-key ls
code-push app add RN_OSCGit
code-push deployment ls RN_OSCGit
code-push release-react RN_OSCGit ios --entryFile ./ios/bundle/index.ios.jsbundle
#android
code-push app add RN_OSCGit_android
code-push deployment ls RN_OSCGit_android
code-push release-react RN_OSCGit_android android
```
code-push deployment ls RN_OSCGit
code-push deployment ls RN_OSCGit_android
code-push release-react RN_OSCGit ios --entryFile ./ios/bundle/index.ios.jsbundle
code-push release-react RN_OSCGit_android android
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。