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: goarch:
- amd64 - amd64
- arm64 - arm64
main: ./cmd/motrd main: ./cmd/motr
binary: motrd binary: motr
builder: go builder: go
gobinary: go gobinary: go
command: build command: build
@ -60,27 +60,22 @@ archives:
- src: README* - src: README*
- src: CHANGELOG* - 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: release:
github: github:
owner: onsonr owner: onsonr
name: sonr name: sonr
name_template: "{{.Tag}}" name_template: "{{.Now.Format '2006.11.22'}}"
ids: ids:
- default - default
- motr - motr
- dwn
draft: false draft: false
replace_existing_draft: true replace_existing_draft: true
replace_existing_artifacts: true replace_existing_artifacts: true
extra_files:
- glob: ./CHANGELOG*
- glob: ./README*
- glob: ./LICENSE*
- glob: ./pkl/dwn.pkl
brews: brews:
- name: sonr - name: sonr
@ -100,3 +95,4 @@ brews:
repository: repository:
owner: onsonr owner: onsonr
name: homebrew-tap name: homebrew-tap
branch: master

View File

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

View File

@ -28,4 +28,5 @@ message DWN {
uint64 id = 1; uint64 id = 1;
string alias = 2; string alias = 2;
string cid = 3; 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"]} {"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 ipfs daemon