[TOC] ## 配置 cordova [cordova 部署](https://www.kancloud.cn/idcpj/python/818333) ## 配置vue `config/index.js ` ``` build: { // Template for index.html index: path.resolve(__dirname, '../App/www/index.html'), // Paths assetsRoot: path.resolve(__dirname, '../App/www'), } ``` `package.json` ``` "scripts": { "build:android": "node build/build.js && cd App && cordova run android" //自动打包安卓的例子 }, ``` ## 执行 ``` //在项目根目录 cordova create App cd App cordova platform add android [,browser,ios] npm run build:android ``` ## 修改app 信息 App/config.xml ``` //自定义图片 <platform name="android"> <allow-intent href="market:*" /> <icon density="ldpi" src="res/icon/android/icon-36-ldpi.png" /> <icon density="mdpi" src="res/icon/android/icon-48-mdpi.png" /> <icon density="hdpi" src="res/icon/android/icon-72-hdpi.png" /> <icon density="xhdpi" src="res/icon/android/icon-96-xhdpi.png" /> </platform> ```