2016-04-28 15:58:02 +02:00
|
|
|
# Build tool for Factorio Server Manager
|
|
|
|
#
|
|
|
|
|
2016-11-03 00:05:14 +02:00
|
|
|
NODE_ENV:=production
|
|
|
|
|
2016-04-28 15:58:02 +02:00
|
|
|
build:
|
2017-05-25 05:13:49 +02:00
|
|
|
# make sure this project is located within GOPATH, I.E. $GOPATH/src/factorio-server-manager
|
|
|
|
|
2016-10-11 15:50:38 +02:00
|
|
|
# Build Linux release
|
2016-11-01 21:58:06 +02:00
|
|
|
mkdir build
|
2017-05-25 05:13:49 +02:00
|
|
|
GOOS=linux GOARCH=amd64 go build -o factorio-server-manager/factorio-server-manager factorio-server-manager/src
|
2016-11-03 00:05:14 +02:00
|
|
|
# ui/node_modules/webpack/bin/webpack.js ui/webpack.config.js app/bundle.js --progress --profile --colors
|
2017-01-25 02:44:17 +02:00
|
|
|
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
|
2016-10-11 15:50:38 +02:00
|
|
|
# Build Windows release
|
2017-05-25 05:13:49 +02:00
|
|
|
GOOS=windows GOARCH=386 go build -o factorio-server-manager/factorio-server-manager.exe factorio-server-manager/src
|
2017-01-25 02:44:17 +02:00
|
|
|
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
|
2016-10-11 15:50:38 +02:00
|
|
|
|
2016-12-15 19:54:05 +02:00
|
|
|
dev:
|
|
|
|
mkdir dev
|
2017-05-25 05:13:49 +02:00
|
|
|
GOOS=linux GOARCH=amd64 go build -o factorio-server-linux/factorio-server-manager factorio-server-manager/src
|
2016-12-15 19:54:05 +02:00
|
|
|
cp -r app/ dev/
|
|
|
|
cp conf.json.example dev/conf.json
|
|
|
|
mv factorio-server-linux/factorio-server-manager dev/factorio-server-manager
|