feat: handle serving static files for browser video tag. updated goreleaser config.

This commit is contained in:
Alf
2021-03-14 00:02:24 -08:00
parent 6924093f58
commit 2a3d8f3064
2 changed files with 17 additions and 3 deletions

View File

@@ -5,4 +5,17 @@ builds:
- darwin
goarch:
- amd64
- arm64
- arm64
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE

View File

@@ -22,9 +22,9 @@ const (
██╔══╝ ██╔══╝ ██║╚██╔╝██║██╔═══╝ ██╔══╝ ██║ ██║██║ ██║
██║ ██║ ██║ ╚═╝ ██║██║ ███████╗╚██████╔╝██████╔╝
╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚══════╝ ╚═════╝ ╚═════╝
v0.0.2
v0.0.3
`
version = "0.0.2"
version = "0.0.3"
description = "[\u001b[32mffmpegd\u001b[0m] - websocket server for \u001b[33mffmpeg-commander\u001b[0m.\n"
usage = `
Usage:
@@ -97,6 +97,7 @@ func printBanner() {
func startServer() {
http.HandleFunc("/ws", handleConnections)
http.HandleFunc("/files", handleFiles)
http.Handle("/", http.FileServer(http.Dir("./")))
// Handles incoming WS messages from client.
go handleMessages()