@@ -71,11 +71,13 @@ export function Networks() {
71
71
72
72
async function clientStart ( ) {
73
73
const urlClientCfg = `${ urlNetwork } /${ networkId } /client.toml` ;
74
+ const urlServices = `${ urlNetwork } /${ networkId } /services.json` ;
74
75
const urlWalletshield = `${ urlNetwork } /${ networkId } /walletshield-${ platformArch } ` ;
75
76
const appLocalDataDirPath = await path . appLocalDataDir ( ) ;
76
77
const dirNetworks = await path . join ( appLocalDataDirPath , "networks" ) ;
77
78
const dirNetwork = await path . join ( dirNetworks , networkId ) ;
78
79
const fileClientCfg = await path . join ( dirNetwork , "client.toml" ) ;
80
+ const fileServices = await path . join ( dirNetwork , "services.json" ) ;
79
81
const fileWalletshield =
80
82
( await path . join ( dirNetwork , "walletshield" ) ) +
81
83
( platform ( ) === "windows" ? ".exe" : "" ) ;
@@ -95,13 +97,14 @@ export function Networks() {
95
97
}
96
98
97
99
////////////////////////////////////////////////////////////////////////
98
- // save the network's client.toml in a network-specific directory
100
+ // save the network's assets in a network-specific directory
99
101
////////////////////////////////////////////////////////////////////////
100
102
log . debug ( `local network directory: ${ dirNetwork } ` ) ;
101
103
if ( ! ( await exists ( dirNetwork ) ) )
102
104
await mkdir ( dirNetwork , { recursive : true } ) ;
103
105
await download ( urlClientCfg , fileClientCfg ) ;
104
- setMessage ( "info" , "Retrieved network client configuration" ) ;
106
+ await download ( urlServices , fileServices ) ;
107
+ setMessage ( "info" , "Retrieved network assets" ) ;
105
108
106
109
////////////////////////////////////////////////////////////////////////
107
110
// save the network's walletshield binary
0 commit comments