remove data folder from release and fix binary size (#160)
This commit is contained in:
parent
d2ffb190f9
commit
2da55f411b
4 changed files with 2 additions and 3 deletions
1
Makefile
1
Makefile
|
@ -122,7 +122,6 @@ release: check_release build
|
|||
@cp $(CROWDSEC_FOLDER)/$(CROWDSEC_BIN) $(RELDIR)/cmd/crowdsec
|
||||
@cp $(CSCLI_FOLDER)/$(CSCLI_BIN) $(RELDIR)/cmd/crowdsec-cli
|
||||
@cp -R ./config/ $(RELDIR)
|
||||
@cp -R ./data/ $(RELDIR)
|
||||
@cp wizard.sh $(RELDIR)
|
||||
@cp scripts/test_env.sh $(RELDIR)
|
||||
@bash ./scripts/build_plugins.sh
|
||||
|
|
|
@ -7,6 +7,7 @@ GOGET=$(GOCMD) get
|
|||
BINARY_NAME=cscli
|
||||
PREFIX?="/"
|
||||
BIN_PREFIX = $(PREFIX)"/usr/local/bin/"
|
||||
LD_OPTS=-ldflags="-s -w"
|
||||
|
||||
all: clean build
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ DATA_PREFIX = $(PREFIX)"/var/run/crowdsec/"
|
|||
PID_DIR = $(PREFIX)"/var/run/"
|
||||
|
||||
SYSTEMD_PATH_FILE="/etc/systemd/system/crowdsec.service"
|
||||
|
||||
LD_OPTS=-ldflags="-s -w"
|
||||
|
||||
all: clean test build
|
||||
|
||||
|
|
|
@ -286,7 +286,6 @@ install_plugins_bin() {
|
|||
#install crowdsec and cscli
|
||||
install_crowdsec() {
|
||||
mkdir -p "${CROWDSEC_DATA_DIR}"
|
||||
find data -type f -exec install -Dm 755 {} "${CROWDSEC_LIB_DIR}/{}" \; || exit
|
||||
(cd config && find patterns -type f -exec install -Dm 755 "{}" "${CROWDSEC_CONFIG_PATH}/{}" \; && cd ../) || exit
|
||||
mkdir -p "${CROWDSEC_CONFIG_PATH}/scenarios" || exit
|
||||
mkdir -p "${CROWDSEC_CONFIG_PATH}/postoverflows" || exit
|
||||
|
|
Loading…
Add table
Reference in a new issue