commit e77c04f6b1cd06a57e7de8362c49d45e7bd6649d Author: Sam Rose Date: Fri Jul 12 17:35:01 2019 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5797edf --- /dev/null +++ b/.gitignore @@ -0,0 +1,63 @@ + +# Created by https://www.gitignore.io/api/go,windows,visualstudiocode +# Edit at https://www.gitignore.io/?templates=go,windows,visualstudiocode + +### Go ### +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +### Go Patch ### +/vendor/ +/Godeps/ + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history + +### Windows ### +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# End of https://www.gitignore.io/api/go,windows,visualstudiocode \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e2205a5 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +GO = go +GOFLAGS = +INSTALLDIR = "$(APPDATA)\Elgato\StreamDeck\Plugins\dev.samwho.streamdeck.livesplit.sdPlugin" + +.PHONY: test install build + +build: + $(GO) build $(GOFLAGS) + +test: + $(GO) run $(GOFLAGS) main.go -- -port 12345 -pluginUUID 213 -registerEvent test -info "{\"application\":{\"language\":\"en\",\"platform\":\"mac\",\"version\":\"4.1.0\"},\"plugin\":{\"version\":\"1.1\"},\"devicePixelRatio\":2,\"devices\":[{\"id\":\"55F16B35884A859CCE4FFA1FC8D3DE5B\",\"name\":\"Device Name\",\"size\":{\"columns\":5,\"rows\":3},\"type\":0},{\"id\":\"B8F04425B95855CF417199BCB97CD2BB\",\"name\":\"Another Device\",\"size\":{\"columns\":3,\"rows\":2},\"type\":1}]}" + +install: build + cp *.png $(INSTALLDIR) + cp *.json $(INSTALLDIR) + cp *.exe $(INSTALLDIR) \ No newline at end of file diff --git a/actionDefaultImage.png b/actionDefaultImage.png new file mode 100644 index 0000000..b558c11 Binary files /dev/null and b/actionDefaultImage.png differ diff --git a/actionIcon.png b/actionIcon.png new file mode 100644 index 0000000..baf95bb Binary files /dev/null and b/actionIcon.png differ diff --git a/main.go b/main.go new file mode 100644 index 0000000..0da546a --- /dev/null +++ b/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "flag" +) + +func main() { + var port int + var pluginUUID string + var registerEvent string + var info string + + flag.IntVar(&port, "name", -1, "") + flag.StringVar(&pluginUUID, "pluginUUID", "", "") + flag.StringVar(®isterEvent, "registerEvent", "", "") + flag.StringVar(&info, "info", "", "") + flag.Parse() + +} diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..bb40291 --- /dev/null +++ b/manifest.json @@ -0,0 +1,40 @@ +{ + "Actions": [ + { + "Icon": "actionIcon", + "Name": "LiveSplit Go", + "States": [ + { + "Image": "actionDefaultImage", + "TitleAlignment": "middle", + "FontSize": "16" + } + ], + "SupportedInMultiActions": false, + "Tooltip": "LiveSplit", + "UUID": "dev.samwho.streamdeck.livesplit" + } + ], + "SDKVersion": 2, + "Author": "Sam Rose", + "CodePath": "streamdeck-livesplit.exe", + "Description": "Test", + "Name": "Test", + "Icon": "pluginIcon", + "URL": "https://samwho.dev", + "Version": "0.1", + "OS": [ + { + "Platform": "mac", + "MinimumVersion" : "10.11" + }, + { + "Platform": "windows", + "MinimumVersion" : "10" + } + ], + "Software": + { + "MinimumVersion" : "4.1" + } +} \ No newline at end of file