diff --git a/.gitignore b/.gitignore index c81007a..5fd7a86 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ build/ +release/ sd_root/ vendor/ hekate.bin \ No newline at end of file diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..c518fb5 --- /dev/null +++ b/build.bat @@ -0,0 +1,39 @@ +@echo off + +rmdir /S /Q release +cls + +echo building... + +mkdir release + +set GOOS=windows +set GOARCH=386 +go build -o launchpad-windows-i386.exe +zip -r9 launchpad-windows-i386.zip fake_tickets hbl.patch launchpad-windows-i386.exe +mv launchpad-windows-i386.zip release/launchpad-windows-i386.zip +del launchpad-windows-i386.exe + +set GOOS=windows +set GOARCH=amd64 +go build -o launchpad-windows-amd64.exe +zip -r9 launchpad-windows-amd64.zip fake_tickets hbl.patch launchpad-windows-amd64.exe +mv launchpad-windows-amd64.zip release/launchpad-windows-amd64.zip +del launchpad-windows-amd64.exe + +set GOOS=linux +set GOARCH=386 +go build -o launchpad-linux-i386.exe +zip -r9 launchpad-linux-i386.zip fake_tickets hbl.patch launchpad-linux-i386.exe +mv launchpad-linux-i386.zip release/launchpad-linux-i386.zip +del launchpad-linux-i386.exe + +set GOOS=linux +set GOARCH=amd64 +go build -o launchpad-linux-amd64.exe +zip -r9 launchpad-linux-amd64.zip fake_tickets hbl.patch launchpad-linux-amd64.exe +mv launchpad-linux-amd64.zip release/launchpad-linux-amd64.zip +del launchpad-linux-amd64.exe + +set GOOS= +set GOARCH= \ No newline at end of file