zoukankan      html  css  js  c++  java
  • 打包

    web打包

    1.命令行

    npm run build 
    

    2.打包完成后的dist文件夹

    flutter android

    1. 配置jks

    flutter 配置网址

    • 本地引入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
            }
        }
    
    1. 命令行
    npm build apk
    

    输出文件夹的apk(build/app/outputs/apk ....app.apk)

    flutter ios

    1. 命令行
    flutter build ios 
    
    1. Runner。。。文件打开
    2. 选择方式 Generic ios Device
    包名,证书,版本
    
    1. Product->Archive
    2. Distribute->next->next->output
    3. ipa
  • 相关阅读:
    山屋惊魂 · 大模拟 · 码长破千 · 祭
    CSP-S 模拟92
    CSP-S 模拟91
    关于我
    CSP-S 模拟76
    [2020 年联考 A 卷] HEOI 2020 退役记
    csp-s 2019 退役记
    论人贵有自知之明的重要性
    [NOI2018] 你的名字
    HDU 3446 daizhenyang's chess
  • 原文地址:https://www.cnblogs.com/gggggggxin/p/10837983.html
Copyright © 2011-2022 走看看