这里是PhiCommunity的客户端仓库,目前只有Android客户端,使用Cordova开发。
执行以下命令,克隆并构建PhiCommunity可浏览网页:
git clone https://github.com/HanHan233/PhiCommunity cd ./PhiCommunity/ sudo npm install webpack webpack-cli -g npm install npm run build mv ./dist/ ../www/ cd .. rm -rf ./PhiCommunity/*
或者直接克隆gh-pages分支
git clone -b gh-pages https://github.com/HanHan233/PhiCommunity www
rm -rf www/.git/*注意:在构建前请确保您的系统已经安装了
gradle,Android SDK 32,JDK 8。
# 安装构建工具 npm install -g cordova npm install #配置平台 npm run add-platform:android #确保依赖都搞定 npm run check #构建Debug版本 npm run build:debug #输出目录在./platforms/android/app/build/outputs/apk/目录下 #npm run build:release #如需构建release版本请先配置build.json(build.sample.json为模板)