Initial commit, copy from examples folder

This commit is contained in:
deluan
2026-02-02 18:44:59 -05:00
commit cdc693bd7f
10 changed files with 1472 additions and 0 deletions

16
Makefile Normal file
View File

@@ -0,0 +1,16 @@
.PHONY: test build package clean
PLUGIN_NAME := discord-rich-presence
WASM_FILE := plugin.wasm
test:
go test -race ./...
build:
tinygo build -target wasip1 -buildmode=c-shared -o $(WASM_FILE) -scheduler=none .
package: build
zip $(PLUGIN_NAME).ndp $(WASM_FILE) manifest.json
clean:
rm -f $(WASM_FILE) $(PLUGIN_NAME).ndp