如何为密钥库设置Cordova buildconfig.json全局路径,而不是我存储buildconfig.json的相对路径。 例如:
我将buildconfig.json存储在 / home / user / test-app / build / sign
buildconfig.json的一部分,我在其中设置了自定义密钥库的路径 ...
“android”:{ “debug”:{ “keystore”:“ /home/user/keystores/test-release.keystore ”,
...
Gradle显示错误,密钥库的位置错误 的 /home/user/test-app/build/sign/home/user/keystores/test-release.keystore
答案 0 :(得分:1)
为了生成签名的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": ""
}
}
}