问题描述
我正在使用 https://www.pwabuilder.com/ 生成 .apk 文件以上传到 Google Play 商店。
能够成功创建新并将 PWA 首次添加到 Play 商店,但是已经进行了一些更新,现在需要使用最新更新更新 PWA。
要通过 PWAbuilder 更新现有应用程序,需要更改选项:
对于 const array1 = [{id: 'a'},{id: '8'},{id: 'c'},{id: 'a'}];
const array2 = [{id: 'a'},{id: 'c'}];
let res = array1.filter(obj1 => {
return array2.find(obj2 => obj1.id === obj2.id)
})
.reduce((acc,cur) => {
if(!acc.find(obj => obj.id === cur.id)){
acc.push(cur)
}
return acc
},[])
console.log(res)
部分,则需要选择 Signing key
选项:
以及在哪里可以找到 Key file
+ Key alias
+ Key password
?
我很难找到专门针对这种情况的答案,所以如果可以,还请分享屏幕截图,以帮助您更清楚、更具体。
解决方法
好的,所以我误解并认为此密钥文件和信息是通过 Google Play Console 找到的,但是在阅读 https://github.com/pwa-builder/PWABuilder/issues/961 上的问题时,我遇到了用户 xet7
发布的帖子,其中包含 6 个步骤和我意识到他们的第 5 步:
您将获得包含密钥文件的 .zip 文件,例如包含随机数据的签名.keystore 和包含您密码的签名密钥-readme.txt。
所以我回到了最初上传到 Google Play 时从 PWAbuilder 网站收到的原始 .zip 文件,找到了这两个文件:
在 signing-key-info.txt
中,您会找到 PWAbuilder 的 Android Package Options 填写签名密钥部分输入字段所需的信息:Key alias
+ Key password
+ Key store password
>
而 signing.keystore
是我们需要包含的 Key 文件所需要的文件。
另外,请确保更新应用版本代码和更新其他字段,并可以点击完成按钮!