refactor: rename motrd to motr

This commit is contained in:
Prad Nukala 2024-09-30 22:21:44 -04:00
parent ffb67f0a6d
commit d6676ce551
7 changed files with 15 additions and 15 deletions

View File

@ -22,8 +22,8 @@ builds:
goarch:
- amd64
- arm64
main: ./cmd/motrd
binary: motrd
main: ./cmd/motr
binary: motr
builder: go
gobinary: go
command: build
@ -60,27 +60,22 @@ archives:
- src: README*
- src: CHANGELOG*
- id: dwn
builds:
- dwn
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
format: zip
files:
- src: CHANGELOG*
- src: pkl/dwn.pkl
release:
github:
owner: onsonr
name: sonr
name_template: "{{.Tag}}"
name_template: "{{.Now.Format '2006.11.22'}}"
ids:
- default
- motr
- dwn
draft: false
replace_existing_draft: true
replace_existing_artifacts: true
extra_files:
- glob: ./CHANGELOG*
- glob: ./README*
- glob: ./LICENSE*
- glob: ./pkl/dwn.pkl
brews:
- name: sonr
@ -100,3 +95,4 @@ brews:
repository:
owner: onsonr
name: homebrew-tap
branch: master

View File

@ -299,7 +299,7 @@ sh-testnet: mod-tidy
motr:
@echo "(motr) Building motr gateway"
go build -o ./build/motrd ./cmd/motrd
go build -o ./build/motr ./cmd/motr
dwn:
@echo "(dwn) Building dwn.wasm -> IPFS Vault"
@ -328,7 +328,7 @@ start-caddy:
start-motr: motr
@echo "(start-proxy) Starting proxy server"
./build/motrd start
./build/motr start
###############################################################################
### help ###

View File

@ -28,4 +28,5 @@ message DWN {
uint64 id = 1;
string alias = 2;
string cid = 3;
string resolver = 4;
}

View File

@ -21,4 +21,7 @@ ipfs config --json Peering.Peers '[
{"ID": "QmcfV2sg9zaq7UUHVCGuSvT2M2rnLBAPsiE79vVyK3Cuev", "Addrs": ["/dnsaddr/node-12.ingress.cloudflare-ipfs.com"]}
]'
# Make sure ipfs is publicly accessible
ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["*"]'
ipfs daemon