-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
29 lines (25 loc) · 1.19 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Build tool for Factorio Server Manager
#
NODE_ENV:=production
build:
# make sure this project is located within GOPATH, I.E. $GOPATH/src/factorio-server-manager
# Build Linux release
mkdir build
GOOS=linux GOARCH=amd64 go build -o factorio-server-manager/factorio-server-manager factorio-server-manager/src
# ui/node_modules/webpack/bin/webpack.js ui/webpack.config.js app/bundle.js --progress --profile --colors
cp -r app/ factorio-server-manager/
cp conf.json.example factorio-server-manager/conf.json
zip -r build/factorio-server-manager-linux-x64.zip factorio-server-manager
rm -rf factorio-server-manager
# Build Windows release
GOOS=windows GOARCH=386 go build -o factorio-server-manager/factorio-server-manager.exe factorio-server-manager/src
cp -r app/ factorio-server-manager/
cp conf.json.example factorio-server-manager/conf.json
zip -r build/factorio-server-manager-windows.zip factorio-server-manager
rm -rf factorio-server-manager
dev:
mkdir dev
GOOS=linux GOARCH=amd64 go build -o factorio-server-linux/factorio-server-manager factorio-server-manager/src
cp -r app/ dev/
cp conf.json.example dev/conf.json
mv factorio-server-linux/factorio-server-manager dev/factorio-server-manager