From e77c04f6b1cd06a57e7de8362c49d45e7bd6649d Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Fri, 12 Jul 2019 17:35:01 +0100 Subject: [PATCH] Initial commit --- .gitignore | 63 +++++++++++++++++++++++++++++++++++++++++ Makefile | 16 +++++++++++ actionDefaultImage.png | Bin 0 -> 4383 bytes actionIcon.png | Bin 0 -> 960 bytes main.go | 19 +++++++++++++ manifest.json | 40 ++++++++++++++++++++++++++ 6 files changed, 138 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 actionDefaultImage.png create mode 100644 actionIcon.png create mode 100644 main.go create mode 100644 manifest.json 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 0000000000000000000000000000000000000000..b558c11793674e7ddecc12eea69309882f8d23af GIT binary patch literal 4383 zcmV+)5#a8LP)Px_*-1n}RCoc^oClCpMHEC>F$|XS8n#JYTldfejWb( z_19nMB`cPbQ=m!+)vI4$l`UH~7;RQomMSPHP&}cH8#br|2Mz?~t{3VzJmnM>i^U36 zG3}i=aYC*7p9h^)m8DR(7_kTD58bMs$$Jj~`bD1)P-TBcL8Wd{|YgR4Lj_ z@H;m*SGN~4=m#Yk`ck@dX~m#jv~S-&CwR7RjvqUw%9Sgpzkv&*RIOSywejFVRbl`t zTc%900(A7q5idYhgj+Xl+?ZJaHE!HkFXYOVE29glN|h?5CzMbS&nREMd|Dg?NAgWr zhM9MsCuGaAyD~}!4ZZz#J>9$RxFZ1v1ZQ+h7@^9OEs>J^iML#-a%C;>O&esJcb))9 zd$DX0ewjiH46=>s*wLe^N|h?kp;oL|QBU}YY@Jl7cCA|8_Gkl{7t6^&fNWzzW>gXo zDo8RwMu9lz+;i2p-+U9zPWW9`gmZ_E9aU+OYhem+G4dVpt1g!mmN#&YjVgeH%e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TpeL>URJD002ovPDHLkV1glRLSFy? literal 0 HcmV?d00001 diff --git a/actionIcon.png b/actionIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..baf95bb260400e8a720c854de60a4758b8a8846f GIT binary patch literal 960 zcmV;x13&zUP)Px&dPzhw0OuuC-p)b=A|HS@v%Wsi1-R&zZ}anSahV z2YQ`O_-Ql(z<;q?r4llhHwF4H^78Wf<-A%-DsOL4hF=VO3BJC*FhoRPZEX#fuV2~a zkX{czKR;MzXIcKIfLg5al0US`{z59`3MRQ#*1gq(B%%ej|^l*KtKRaBqu`% zflot2__ngbIeax5$fP!sB^MPHF-yN;@{5a)M_+e0`*MYHcP=v%RW&sTrfibr@7*Xa z#?yudmffGb<>h$(3j?hK%FtA^lQ7U?6&^?1BD%&NMhM zfT$x!pdp)^tjo)I+u4cB)W>&yecU^>T8+Yj0=ElPLH_<_J3Bjk^;fQ5g)TfCr_Y>$ zF)ItT48*CpVW@ z30SH79k??2{{1+W zmWK3<3bDg>JpQZIrv`2mu|`_mioqik$-v z4GywG{%%5IB4Vh@Yk7IB8=&TU(%pOaaDae*v!n#q3k&%&D;_-f*%~)&?v#}YyWLJ$ zb&