diff --git a/Makefile b/Makefile
index 2af89b8..ec0043e 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ deps:
go install github.com/go-task/task/v3/cmd/task@latest
build: go.sum
- GOOS=js GOARCH=wasm go build -o build/app.wasm main.go
+ GOOS=js GOARCH=wasm go build -o build/app.wasm ./cmd/main.go
########################################
### Tools & dependencies
diff --git a/main.go b/cmd/main.go
similarity index 100%
rename from main.go
rename to cmd/main.go
diff --git a/internal/config/Config.pkl.go b/config/Config.pkl.go
similarity index 100%
rename from internal/config/Config.pkl.go
rename to config/Config.pkl.go
diff --git a/internal/config/Environment.pkl.go b/config/Environment.pkl.go
similarity index 100%
rename from internal/config/Environment.pkl.go
rename to config/Environment.pkl.go
diff --git a/internal/config/Motr.pkl.go b/config/Motr.pkl.go
similarity index 100%
rename from internal/config/Motr.pkl.go
rename to config/Motr.pkl.go
diff --git a/internal/config/Schema.pkl.go b/config/Schema.pkl.go
similarity index 100%
rename from internal/config/Schema.pkl.go
rename to config/Schema.pkl.go
diff --git a/internal/config/init.pkl.go b/config/init.pkl.go
similarity index 100%
rename from internal/config/init.pkl.go
rename to config/init.pkl.go
diff --git a/dist/config.yaml b/dist/config.yaml
new file mode 100644
index 0000000..b802e04
--- /dev/null
+++ b/dist/config.yaml
@@ -0,0 +1,125 @@
+version: 2
+project_name: sonr
+release:
+ github:
+ owner: onsonr
+ name: motr
+ replace_existing_draft: true
+ tag: '{{ .PrefixedTag }}'
+ name_template: '{{ .Tag }} | {{ .Env.RELEASE_DATE }}'
+ extra_files:
+ - glob: ./README*
+ replace_existing_artifacts: true
+builds:
+ - id: motr
+ goos:
+ - js
+ goarch:
+ - wasm
+ goamd64:
+ - v1
+ go386:
+ - sse2
+ goarm:
+ - "6"
+ goarm64:
+ - v8.0
+ gomips:
+ - hardfloat
+ goppc64:
+ - power8
+ goriscv64:
+ - rva20u64
+ targets:
+ - js_wasm
+ dir: .
+ main: ./cmd/main.go
+ binary: app
+ builder: go
+ gobinary: go
+ command: build
+ ldflags:
+ - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
+archives:
+ - id: default
+ name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
+ format: tar.gz
+ files:
+ - src: license*
+ - src: LICENSE*
+ - src: readme*
+ - src: README*
+ - src: changelog*
+ - src: CHANGELOG*
+snapshot:
+ version_template: '{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}'
+checksum:
+ name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
+ algorithm: sha256
+changelog:
+ format: '{{ .SHA }}: {{ .Message }} ({{ with .AuthorUsername }}@{{ . }}{{ else }}{{ .AuthorName }} <{{ .AuthorEmail }}>{{ end }})'
+dist: dist
+env_files:
+ github_token: ~/.config/goreleaser/github_token
+ gitlab_token: ~/.config/goreleaser/gitlab_token
+ gitea_token: ~/.config/goreleaser/gitea_token
+source:
+ name_template: '{{ .ProjectName }}-{{ .Version }}'
+ format: tar.gz
+gomod:
+ gobinary: go
+announce:
+ twitter:
+ message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
+ mastodon:
+ message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
+ server: ""
+ reddit:
+ title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
+ url_template: '{{ .ReleaseURL }}'
+ slack:
+ message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
+ username: GoReleaser
+ discord:
+ message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
+ author: GoReleaser
+ color: "3888754"
+ icon_url: https://goreleaser.com/static/avatar.png
+ teams:
+ title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
+ message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
+ color: '#2D313E'
+ icon_url: https://goreleaser.com/static/avatar.png
+ smtp:
+ subject_template: '{{ .ProjectName }} {{ .Tag }} is out!'
+ body_template: 'You can view details from: {{ .ReleaseURL }}'
+ mattermost:
+ message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
+ title_template: '{{ .ProjectName }} {{ .Tag }} is out!'
+ username: GoReleaser
+ linkedin:
+ message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
+ telegram:
+ enabled: true
+ message_template: '{{ mdv2escape .ProjectName }} {{ mdv2escape .Tag }} is out{{ mdv2escape "!" }} Check it out at {{ mdv2escape .ReleaseURL }}'
+ chat_id: "-1002222617755"
+ parse_mode: MarkdownV2
+ webhook:
+ message_template: '{ "message": "{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}"}'
+ content_type: application/json; charset=utf-8
+ opencollective:
+ title_template: '{{ .Tag }}'
+ message_template: '{{ .ProjectName }} {{ .Tag }} is out!
Check it out at {{ .ReleaseURL }}'
+ bluesky:
+ message_template: '{{ .ProjectName }} {{ .Tag }} is out! Check it out at {{ .ReleaseURL }}'
+git:
+ tag_sort: -version:refname
+github_urls:
+ download: https://github.com
+gitlab_urls:
+ download: https://gitlab.com
+partial:
+ by: goos
+nightly:
+ version_template: '{{ incpatch .Version }}-{{ .ShortCommit }}-nightly'
+ tag_name: nightly
diff --git a/dist/metadata.json b/dist/metadata.json
new file mode 100644
index 0000000..2f34c0a
--- /dev/null
+++ b/dist/metadata.json
@@ -0,0 +1,12 @@
+{
+ "project_name": "sonr",
+ "tag": "v0.0.0",
+ "previous_tag": "",
+ "version": "0.0.0-SNAPSHOT-958558e",
+ "commit": "958558e0fba35b6695fcd1e3af0cf4c316e46ca6",
+ "date": "2025-01-04T21:17:02.861575-05:00",
+ "runtime": {
+ "goos": "darwin",
+ "goarch": "arm64"
+ }
+}
\ No newline at end of file
diff --git a/pkl/App.pkl b/pkl/App.pkl
index c080f57..1f7b226 100644
--- a/pkl/App.pkl
+++ b/pkl/App.pkl
@@ -1,4 +1,4 @@
-@go.Package { name = "github.com/onsonr/motr/internal/config" }
+@go.Package { name = "github.com/onsonr/motr/config" }
module sonr.net.Motr