mirror of
https://github.com/mattermost/focalboard.git
synced 2024-12-24 13:43:12 +02:00
Make server-linux-package
This commit is contained in:
parent
e2440457b0
commit
3e3f376582
14
Makefile
14
Makefile
@ -1,4 +1,6 @@
|
||||
.PHONY: prebuild clean cleanall server server-mac server-linux server-win generate watch-server webapp mac-app win-app linux-app
|
||||
.PHONY: prebuild clean cleanall server server-mac server-linux server-win server-linux-package generate watch-server webapp mac-app win-app linux-app
|
||||
|
||||
PACKAGE_FOLDER = octo
|
||||
|
||||
all: server
|
||||
|
||||
@ -24,6 +26,16 @@ server-linux:
|
||||
server-win:
|
||||
cd server; env GOOS=windows GOARCH=amd64 go build -o ../bin/octoserver.exe ./main
|
||||
|
||||
server-linux-package: server-linux webapp
|
||||
rm -rf package
|
||||
mkdir -p package/${PACKAGE_FOLDER}/bin
|
||||
cp bin/octoserver package/${PACKAGE_FOLDER}/bin
|
||||
cp -R webapp/pack package/${PACKAGE_FOLDER}/pack
|
||||
cp config.json package/${PACKAGE_FOLDER}
|
||||
mkdir -p dist
|
||||
cd package && tar -czvf ../dist/octo-linux-amd64.tar.gz ${PACKAGE_FOLDER}
|
||||
rm -rf package
|
||||
|
||||
generate:
|
||||
cd server; go get -modfile=go.tools.mod github.com/golang/mock/mockgen
|
||||
cd server; go get -modfile=go.tools.mod github.com/jteeuwen/go-bindata
|
||||
|
Loading…
Reference in New Issue
Block a user