mirror of
https://gitee.com/BDWare/ypk-deploy-tool
synced 2026-01-29 08:09:27 +00:00
release 0.7.3
This commit is contained in:
@@ -15,13 +15,14 @@ public class CodeRepoTool {
|
||||
|
||||
}
|
||||
|
||||
public static void publish(String publishConfig) throws Exception {
|
||||
public static void publish(String publishConfig, String ypkPath) throws Exception {
|
||||
FileStorage storage = new FileStorage(publishConfig);
|
||||
EndpointConfig endpointConfig = storage.loadAsEndpointConfig();
|
||||
AuditIrpClient irpClient = new AuditIrpClient(endpointConfig);
|
||||
JsonObject arg = storage.load();
|
||||
CodeRepoClient client = new CodeRepoClient(arg.get("codeRepoId").getAsString(), irpClient, SM2KeyPair.fromJson(arg.toString()));
|
||||
String ypkPath = arg.get("ypkPath").getAsString();
|
||||
if (ypkPath == null)
|
||||
ypkPath = arg.get("ypkPath").getAsString();
|
||||
AtomicInteger result = new AtomicInteger(0);
|
||||
client.createAndUpload(ypkPath, new CodeRepoClient.ProgressCallback() {
|
||||
@Override
|
||||
@@ -51,4 +52,8 @@ public class CodeRepoTool {
|
||||
Thread.yield();
|
||||
}
|
||||
}
|
||||
|
||||
public static void publish(String publishConfig) throws Exception {
|
||||
publish(publishConfig, null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@ public class SmartContractClientExt extends SmartContractClient {
|
||||
|
||||
@Override
|
||||
public void onLogin(JsonObject obj) {
|
||||
LOGGER.info(obj.toString());
|
||||
// LOGGER.info(obj.toString());
|
||||
isLoggedIn = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user