Initial commit
This commit is contained in:
		
							
								
								
									
										63
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -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 | ||||||
							
								
								
									
										16
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								Makefile
									
									
									
									
									
										Normal file
									
								
							| @ -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) | ||||||
							
								
								
									
										
											BIN
										
									
								
								actionDefaultImage.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								actionDefaultImage.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 4.3 KiB | 
							
								
								
									
										
											BIN
										
									
								
								actionIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								actionIcon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 960 B | 
							
								
								
									
										19
									
								
								main.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								main.go
									
									
									
									
									
										Normal file
									
								
							| @ -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() | ||||||
|  |  | ||||||
|  | } | ||||||
							
								
								
									
										40
									
								
								manifest.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								manifest.json
									
									
									
									
									
										Normal file
									
								
							| @ -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" | ||||||
|  |     } | ||||||
|  | } | ||||||
		Reference in New Issue
	
	Block a user