Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Release bundles
*.zip
*.tar.gz

# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
Expand All @@ -7,6 +11,7 @@
*.dll
*.so
*.dylib
Server/jServ

# Test binary, built with `go test -c`
*.test
Expand Down
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
build:
cd Server && go build
release: build
mkdir js-linux
cp Server/config.json js-linux/.
cp Server/jServ js-linux/.
tar -czvf jserv-linux-amd64.tar.gz js-linux/*
rm -rf js-linux
deploy: build
[[ ! -d /etc/jserv ]] && mkdir /etc/jserv
[[ -f /usr/bin/jServ ]] && rm /usr/bin/jServ
cp Server/jServ /usr/bin/.
cp Server/config.json /etc/jserv/.
# systemd unit needed