{
  "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文件上传到自己的服务器
Logo

讨论HarmonyOS开发技术,专注于API与组件、DevEco Studio、测试、元服务和应用上架分发等。

更多推荐