web打包
1.命令行
npm run build
2.打包完成后的dist文件夹
flutter android
- 配置jks
- 本地引入jks文件,比如放到d盘
- 项目android目录下新建文件key.proerties(里面有jks的地址)
storePassword=<password from previous step>
keyPassword=<password from previous step>
keyAlias=key
storeFile=D:/example.jks
- 修改android/app/build.grandle,
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
debug {
keyAlias keystoreProperties['keyAlias']
keyPassword keystoreProperties['keyPassword']
storeFile file(keystoreProperties['storeFile'])
storePassword keystoreProperties['storePassword']
}
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.release
}
debug {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
- 命令行
npm build apk
输出文件夹的apk(build/app/outputs/apk ....app.apk)
flutter ios
- 命令行
flutter build ios
- Runner。。。文件打开
- 选择方式 Generic ios Device
包名,证书,版本
- Product->Archive
- Distribute->next->next->output
- ipa