Cordova buildconfig.json keystore path



如何为密钥库设置 Cordova buildconfig.json 全局路径,而不是我存储 buildconfig.json 的相对路径。例:

  1. 我将buildconfig.json存储在/home/user/test-app/build/sign

  2. buildconfig.json 的一部分,我在其中设置了自定义密钥库的路径...

    "安卓":{ "调试":{ "keystore": "/home/user/keystores/test-release.keystore",

  3. cordova build android --buildConfig=/home/user/test-app/build/sign/buildconfig.json

Gradle 显示错误,密钥库位置错误/home/user/test-app/build/sign/home/user/keystores/test-release.keystore

为了生成签名的apk,我们使用位于项目根目录中的build.json配置文件。我们的build.json文件看起来像这样:

{
"ios": {
    "debug": {
        "codeSignIdentity": "iPhone Distribution",
        "provisioningProfile": "xxxxxxx-xxxxx-xxx-xxxx-xxxxx",
        "developmentTeam": "xxxxxx",
        "packageType": "ad-hoc",
        "iCloudContainerEnvironment": "Development",
        "buildFlag": [
            "LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks""
        ]
    },
    "release": {
        "codeSignIdentity": "iPhone Distribution",
        "provisioningProfile": "xxxxxxx-xxxxx-xxx-xxxx-xxxxx",
        "developmentTeam": "xxxxxxx",
        "packageType": "app-store",
        "iCloudContainerEnvironment": "Production",
        "buildFlag": [
            "LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks""
        ]
    }
},
"android": {
    "debug": {
        "keystore": "../build-config/android/xxxx.keystore",
        "storePassword": "********",
        "alias": "xxxxxx",
        "password": "********",
        "keystoreType": ""
    },
    "release": {
        "keystore": "../build-config/android/xxxxx.keystore",
        "storePassword": "********",
        "alias": "xxxxxx",
        "password": "******",
        "keystoreType": ""
    },
    "device": {
        "keystore": "../build-config/android/xxxxx.keystore",
        "storePassword": "*******",
        "alias": "xxxxxx",
        "password": "*******",
        "keystoreType": ""
    },
    "emulator": {
        "keystore": "../build-config/android/xxxx.keystore",
        "storePassword": "*******",
        "alias": "xxxxxx",
        "password": "*******",
        "keystoreType": ""
    }
 }
}

我在这里找到了它。

相关内容

  • 没有找到相关文章

最新更新