Added windows build tools.

This commit is contained in:
Corey Butler
2016-11-02 20:31:38 -05:00
parent 77e7c3fe27
commit 420eeeeb7f
4 changed files with 10 additions and 0 deletions

2
.gitignore vendored
View File

@@ -32,3 +32,5 @@ bin/nvm/*
!.gitignore
dist
out

3
build.bat Normal file
View File

@@ -0,0 +1,3 @@
@echo off
docker run --rm --name switch-builder -e GOOS=windows -e GOARCH=386 -v "%cd%/out:/out" -v "%cd%/app:/app" switch go build -o /out/switch.exe /app/switch.go
@echo on

3
dev.bat Normal file
View File

@@ -0,0 +1,3 @@
@echo off
docker run --rm -it --name switch-builder -e GOOS=linux -e GOARCH=386 -v "%cd%/app:/app" switch sh
@echo on

2
mkenv.bat Normal file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
docker build -t switch .