From 604e7b437de0ffebcc5a71d36daf284018e6a869 Mon Sep 17 00:00:00 2001 From: Shuai Date: Tue, 3 Aug 2021 11:26:30 +0800 Subject: [PATCH] config --- neo3-gui/neo3-gui/ClientApp/gui-config.json | 4 ++-- neo3-gui/neo3-gui/ClientApp/package.json | 13 +++++++++---- neo3-gui/neo3-gui/ClientApp/src/config.js | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/neo3-gui/neo3-gui/ClientApp/gui-config.json b/neo3-gui/neo3-gui/ClientApp/gui-config.json index c3f25f53..b20d5336 100644 --- a/neo3-gui/neo3-gui/ClientApp/gui-config.json +++ b/neo3-gui/neo3-gui/ClientApp/gui-config.json @@ -1,6 +1,6 @@ { "Port": 8081, "RPCURL": "http://localhost:8081", - "Language": "zh", - "Network": "private" + "Language": "", + "Network": "mainnet" } \ No newline at end of file diff --git a/neo3-gui/neo3-gui/ClientApp/package.json b/neo3-gui/neo3-gui/ClientApp/package.json index e4fd98bb..17faf0e0 100644 --- a/neo3-gui/neo3-gui/ClientApp/package.json +++ b/neo3-gui/neo3-gui/ClientApp/package.json @@ -53,10 +53,15 @@ "./preload.js", "./package.json" ], - "extraResources": { - "from": "./build-neo-node/", - "to": "./build-neo-node/" - }, + "extraResources": [ + { + "from": "./build-neo-node/", + "to": "./build-neo-node/" + }, + { + "filter": "./gui-config.json" + } + ], "win": { "target": "nsis", "icon": "public/logo512.png" diff --git a/neo3-gui/neo3-gui/ClientApp/src/config.js b/neo3-gui/neo3-gui/ClientApp/src/config.js index 60c7ccbd..345b59f7 100644 --- a/neo3-gui/neo3-gui/ClientApp/src/config.js +++ b/neo3-gui/neo3-gui/ClientApp/src/config.js @@ -25,7 +25,7 @@ class Config { this.Port = config.Port || 8081; this.RPCURL = config.RPCURL || "http://localhost:" + this.Port; this.Language = config.Language || ""; - this.Network = config.Network || "testnet"; + this.Network = config.Network || "mainnet"; }; /**