1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| { "app": { "bundleName": "com.ht.cotton", "bundleType": "app", "versionCode": 1000000, "versionName": "1.0.0", "label": "Htconnn", "deployDomain": "codehelps.online", "icons": { "normal": "https://codehelps.online/logo.png", "large": "https://codehelps.online/logo2.png" }, "minAPIVersion": "5.0.5(17)", "targetAPIVersion": "5.0.5(17)", "modules": [ { "name": "entry", "type": "entry", "deviceTypes": [ "tablet", "2in1", "phone" ], "packageUrl": "https://codehelps.online/a.hap", "packageHash": "56c1438593fc5f3d6e49196b2751a4bb99d3a83da744cbe8deecad27d07bda8e" } ] }, "sign": "描述文件签名" }
1.打出包对应的packageHash certutil -hashfile "D:\homyspace\htcotton\entry\build\default\outputs\default\entry-default-signed.hap" SHA256
2.描述文件签名 https://gitee.com/arkin-internal-testing/internal-testing 下载后运行manifest-sign.bat
-operation sign -mode localjks -inputFile D:\file\hmmswj\htcotton.json5 -outputFile D:\file\hmmswj\adhocnew.json5 -keystore D:\homyspace\htcotton\csr\htcotton.p12 -keystorepasswd htnova1003 -keyaliaspasswd htnova1003 -privatekey htcotto
3.生成的前json5文件上传到自己的服务器
|