-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
659c42d
commit aa324be
Showing
7 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ | |
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
build/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
# vmix-URL-Generator | ||
vMix RESTful API URL Generator | ||
|
||
## Author | ||
Shugo Kawamura | ||
Github : [**FlowingSPDG**](http://github.com/FlowingSPDG) | ||
Twitter : [**@FlowingSPDG**](http://twitter.com/FlowingSPDG) / [**@FlowingSPDG_EN**](http://twitter.com/FlowingSPDG_EN) | ||
|
||
## Usage | ||
``./vmix_gen -addr :8080 -vmix "http://localhost:8088" `` | ||
Open http://localhost:8080/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Go | ||
GOCMD=go | ||
GOBUILD=$(GOCMD) build | ||
GOCLEAN=$(GOCMD) clean | ||
GOTEST=$(GOCMD) test | ||
GOGET=$(GOCMD) get | ||
BINARY_NAME=vmix_gen | ||
DIST_DIR=build | ||
SERVER_DIR=server | ||
WEB_DIR=web | ||
|
||
# Replacing "RM" command for Windows PowerShell. | ||
RM = rm -rf | ||
ifeq ($(OS),Windows_NT) | ||
RM = Remove-Item -Recurse -Force | ||
endif | ||
|
||
# Replacing "MKDIR" command for Windows PowerShell. | ||
MKDIR = mkdir -p | ||
ifeq ($(OS),Windows_NT) | ||
MKDIR = New-Item -ItemType Directory | ||
endif | ||
|
||
# Replacing "CP" command for Windows PowerShell. | ||
CP = cp -R | ||
ifeq ($(OS),Windows_NT) | ||
CP = powershell -Command Copy-Item -Recurse -Force | ||
endif | ||
|
||
# Replacing "GOPATH" command for Windows PowerShell. | ||
GOPATHDIR = $GOPATH | ||
ifeq ($(OS),Windows_NT) | ||
GOPATHDIR = $$env:GOPATH | ||
endif | ||
|
||
.DEFAULT_GOAL := build-windows | ||
|
||
test: | ||
$(GOTEST) -v ./... | ||
clean: | ||
@$(GOCLEAN) | ||
-@$(RM) $(DIST_DIR)/* | ||
deps: deps-web deps-go | ||
deps-web: | ||
@yarn global add @vue/cli | ||
@cd ./web && yarn | ||
deps-go: | ||
@$(GOGET) -v -u | ||
build-prepare: | ||
@cd ./server && $(GOGET) github.com/mitchellh/gox \ | ||
github.com/konsorten/go-windows-terminal-sequences | ||
-@$(RM) ./$(DIST_DIR)/*/static | ||
build-windows: build-prepare build-web build-windows-server-only | ||
@$(MKDIR) ./$(DIST_DIR)/static | ||
@$(CP) ./web/dist/* ./$(DIST_DIR)/static | ||
build-windows-server-only: build-prepare | ||
@cd ./server && GOOS=windows GOARCH=386 go build -o ../$(DIST_DIR)/${BINARY_NAME}.exe main.go | ||
build-web: | ||
@cd ./web && yarn run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
declare module 'element-ui'; | ||
declare module 'element-ui/lib/locale'; | ||
declare module 'element-ui/lib/locale/lang/en'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters