-
Notifications
You must be signed in to change notification settings - Fork 0
/
bee.json
39 lines (39 loc) · 2.97 KB
/
bee.json
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
{
"version": "2.3.2",
"architecture": {
"32bit": {
"url": "https://github.com/ethersphere/bee/releases/download/v2.3.2/bee-windows-386.zip",
"bin": [
"bee.exe"
],
"hash": "532b82af340fb93532d5dd818fecfdfef91c7dd9f8d4707de139f796a9a9c7ec"
},
"64bit": {
"url": "https://github.com/ethersphere/bee/releases/download/v2.3.2/bee-windows-amd64.zip",
"bin": [
"bee.exe"
],
"hash": "54ba0ee34105edd8dc1e0f5805f094151edc440f04f4d6d62856b5a7d8d289d0"
}
},
"homepage": "https://github.com/ethersphere/bee",
"license": "BSD-3-Clause",
"description": "Swarm client implemented in Go.",
"persist": [
"data",
"packaging/scoop/bee.yaml"
],
"post_install": [
"Write-Host 'Running postinstall command'",
"if(!(Test-Path $persist_dir\\bee.yaml)){New-Item -ItemType SymbolicLink -Path \"$persist_dir\\bee.yaml\" -Target \"$persist_dir\\packaging\\scoop\\bee.yaml\" | Out-Null}",
"(Get-Content -path $persist_dir\\bee.yaml -Raw) -replace './bee.yaml',\"$persist_dir\\bee.yaml\" | Set-Content -Path $persist_dir\\bee.yaml",
"(Get-Content -path $persist_dir\\bee.yaml -Raw) -replace './data',\"$persist_dir\\data\" | Set-Content -Path $persist_dir\\bee.yaml",
"(Get-Content -path $persist_dir\\bee.yaml -Raw) -replace './password',\"$persist_dir\\password\" | Set-Content -Path $persist_dir\\bee.yaml",
"if(!(Test-Path $persist_dir\\password)){[System.Web.Security.Membership]::GeneratePassword(32,5) | Set-Content -Path $persist_dir\\password}",
"if(sc.exe query SwarmBeeSvc | Select-String FAILED){sc.exe create SwarmBeeSvc binPath= \"$dir\\bee.exe start --config=$persist_dir\\bee.yaml\" type= share start= auto displayName= \"Bee\"; sc.exe description SwarmBeeSvc \"Swarm client implemented in Go.\"}",
"if($global){$ETH_ADDRESS = (((C:\\ProgramData\\scoop\\shims\\bee.exe init --config=$persist_dir\\bee.yaml | Select-String ethereum) -split ' ‘)[-1]).Trim('\"')} else {$ETH_ADDRESS = (((bee.exe init --config=$persist_dir\\bee.yaml | Select-String ethereum) -split ' ‘)[-1]).Trim('\"')}; Write-Host \"Please make sure there is XDAI and, if required, XBZZ available on the following Ethereum address on Gnosis Chain: $ETH_ADDRESS\nLearn how to fund your node by visiting our docs at https://docs.ethswarm.org/docs/installation/fund-your-node\"",
"Write-Host \"Bee requires a Gnosis Chain RPC endpoint to function. By default this is expected to be found at ws://localhost:8546.\nPlease see https://docs.ethswarm.org/docs/installation/install for more details on how to configure your node.\nConfig: $persist_dir\\bee.yaml\"",
"Write-Host \"Once your node's wallet has received the funds deploy Bee chequebook with [sudo] $dir\\bee.exe deploy --config=$persist_dir\\bee.yaml\"",
"Write-Host 'Start Bee service with [sudo] sc.exe start SwarmBeeSvc'"
]
}