Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
mybee
Commits
a1cddc8a
Unverified
Commit
a1cddc8a
authored
Mar 22, 2021
by
Ivan Vandot
Committed by
GitHub
Mar 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for scoop and fix config url (#1459)
parent
d075f40a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
117 additions
and
2 deletions
+117
-2
release.yaml
.github/workflows/release.yaml
+1
-0
.goreleaser.yml
.goreleaser.yml
+46
-0
bee.yaml
packaging/bee.yaml
+1
-1
bee.yaml
packaging/homebrew/bee.yaml
+1
-1
bee.yaml
packaging/scoop/bee.yaml
+68
-0
No files found.
.github/workflows/release.yaml
View file @
a1cddc8a
...
...
@@ -35,3 +35,4 @@ jobs:
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_PAT
:
${{ secrets.HOMEBREW_TAP_PAT }}
SCOOP_PAT
:
${{ secrets.SCOOP_PAT }}
.goreleaser.yml
View file @
a1cddc8a
...
...
@@ -57,6 +57,17 @@ archives:
-
name_template
:
"
{{
tolower
.ProjectName
}}-{{
tolower
.Os
}}-{{
tolower
.Arch
}}{{
if
.Arm
}}v{{
.Arm
}}{{
end
}}"
format
:
binary
-
id
:
scoop
builds
:
-
windows
name_template
:
"
{{
tolower
.ProjectName
}}-{{
tolower
.Os
}}-{{
tolower
.Arch
}}{{
if
.Arm
}}v{{
.Arm
}}{{
end
}}"
format
:
zip
wrap_in_directory
:
false
files
:
-
packaging/scoop/bee.yaml
-
LICENSE
-
README.md
-
id
:
homebrew
builds
:
...
...
@@ -118,6 +129,41 @@ nfpms:
bindir
:
/usr/bin
scoop
:
url_template
:
"
https://github.com/ethersphere/bee/releases/download/{{
.Tag
}}/{{
.ArtifactName
}}"
bucket
:
owner
:
ethersphere
name
:
scoop
token
:
"
{{
.Env.SCOOP_PAT
}}"
commit_author
:
name
:
bee-worker
email
:
bee-worker@ethswarm.org
commit_msg_template
:
"
Scoop
update
for
{{
.ProjectName
}}
version
{{
.Tag
}}"
homepage
:
"
https://github.com/ethersphere/bee"
description
:
"
Swarm
client
implemented
in
Go."
license
:
BSD-3-Clause
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
sufficient
eth
and
bzz
available
on
$ETH_ADDRESS
address.
\n
You
can
get
both
goerli
eth
and
goerli
bzz
from
https://bzz.ethswarm.org/?transaction=buy&amount=10&slippage=30&receiver=0x$ETH_ADDRESS
\"
"
-
"
Write-Host
\"
After
the
initial
fund
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'"
brews
:
-
name
:
swarm-bee
tap
:
...
...
packaging/bee.yaml
View file @
a1cddc8a
## Bee configuration - https://
swarm-gateways.net/bzz:/docs.swarm.eth/docs/installation/configuration
## Bee configuration - https://
gateway.ethswarm.org/bzz/docs.swarm.eth/docs/installation/configuration/
## HTTP API listen address (default ":1633")
# api-addr: :1633
...
...
packaging/homebrew/bee.yaml
View file @
a1cddc8a
## Bee configuration - https://
swarm-gateways.net/bzz:/docs.swarm.eth/docs/installation/configuration
## Bee configuration - https://
gateway.ethswarm.org/bzz/docs.swarm.eth/docs/installation/configuration/
## HTTP API listen address (default ":1633")
# api-addr: :1633
...
...
packaging/scoop/bee.yaml
0 → 100644
View file @
a1cddc8a
## Bee configuration - https://gateway.ethswarm.org/bzz/docs.swarm.eth/docs/installation/configuration/
## HTTP API listen address (default ":1633")
# api-addr: :1633
## initial nodes to connect to (default [/dnsaddr/bootnode.ethswarm.org])
# bootnode: [/dnsaddr/bootnode.ethswarm.org]
## enable clef signer
# clef-signer-enable: false
## clef signer endpoint
# clef-signer-endpoint: /usr/local/var/lib/swarm-clef/clef.ipc
## config file (default is /home/<user>/.bee.yaml)
config
:
./bee.yaml
## origins with CORS headers enabled
# cors-allowed-origins: []
## data directory (default "/home/<user>/.bee")
data-dir
:
./data
## db capacity in chunks, multiply by 4096 to get approximate capacity in bytes
# db-capacity: 5000000
## debug HTTP API listen address (default ":1635")
# debug-api-addr: 127.0.0.1:1635
## enable debug HTTP API
# debug-api-enable: false
## disable a set of sensitive features in the api
# gateway-mode: false
## enable global pinning
# global-pinning-enable: false
## NAT exposed address
# nat-addr: ""
## ID of the Swarm network (default 1)
# network-id: 1
## P2P listen address (default ":1634")
# p2p-addr: :1634
## enable P2P QUIC protocol
# p2p-quic-enable: false
## enable P2P WebSocket transport
# p2p-ws-enable: false
## password for decrypting keys
# password: ""
## path to a file that contains password for decrypting keys
password-file
:
./password
## amount in BZZ below the peers payment threshold when we initiate settlement (default 10000)
# payment-early: 10000
## threshold in BZZ where you expect to get paid from your peers (default 100000)
# payment-threshold: 100000
## excess debt above payment threshold in BZZ where you disconnect from your peer (default 10000)
# payment-tolerance: 10000
## ENS compatible API endpoint for a TLD and with contract address, can be repeated, format [tld:][contract-addr@]url
# resolver-options: []
## whether we want the node to start with no listen addresses for p2p
# standalone: false
## enable swap (default true)
# swap-enable: true
## swap ethereum blockchain endpoint (default "http://localhost:8545")
swap-endpoint
:
https://rpc.slock.it/goerli
## swap factory address
# swap-factory-address: ""
## initial deposit if deploying a new chequebook (default 100000000)
# swap-initial-deposit: 100000000
## enable tracing
# tracing-enable: false
## endpoint to send tracing data (default "127.0.0.1:6831")
# tracing-endpoint: 127.0.0.1:6831
## service name identifier for tracing (default "bee")
# tracing-service-name: bee
## log verbosity level 0=silent, 1=error, 2=warn, 3=info, 4=debug, 5=trace (default "info")
# verbosity: info
## send a welcome message string during handshakes
# welcome-message: ""
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment