Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Pika committed Sep 19, 2018
1 parent ce23465 commit 3d69f4e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build/
release/
sd_root/
vendor/
hekate.bin
39 changes: 39 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -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=

0 comments on commit 3d69f4e

Please sign in to comment.