代码拉取完成,页面将自动刷新
同步操作将从 anolis/keentune_brain 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
VERSION = 2.0.1
PREFIX ?= /usr
CONFDIR ?= /etc
OUTPATH = ./bin
TPMPATH = $(DESTDIR)/tmp/KEENTUNE
BINDIR = $(DESTDIR)$(PREFIX)/bin
LOCALBINDIR = $(DESTDIR)$(PREFIX)/local/bin
SYSCONFDIR = $(DESTDIR)$(CONFDIR)/keentune/conf/
SYSTEMDDIR = $(DESTDIR)$(PREFIX)/lib/systemd/system
all: target
target:
pyinstaller --clean --onefile \
--workpath $(TPMPATH) \
--distpath $(OUTPATH) \
--specpath $(TPMPATH) \
--hidden-import brain.algorithm.tunning.base \
--hidden-import brain.algorithm.tunning.tpe \
--hidden-import brain.algorithm.tunning.hord \
--hidden-import brain.algorithm.tunning.random \
--hidden-import brain.algorithm.sensitize.sensitize \
--hidden-import brain.algorithm.sensitize.sensitizer \
--name keentune-brain \
brain/brain.py
clean:
rm -rf $(TPMPATH)
rm -rf $(OUTPATH)
rm -rf $(BINDIR)/keentune-brain
rm -rf $(LOCALBINDIR)/keentune-brain
rm -rf keentune-brain-$(VERSION).tar.gz
install:
@echo "+ Start installing KeenTune-brain"
mkdir -p $(SYSCONFDIR)
mkdir -p $(SYSTEMDDIR)
install -p -D -m 0644 brain/brain.conf $(SYSCONFDIR)
install -p -D -m 0644 keentune-brain.service $(SYSTEMDDIR)
mkdir -p $(BINDIR)
mkdir -p $(LOCALBINDIR)
cp $(OUTPATH)/* $(BINDIR)
cp $(OUTPATH)/* $(LOCALBINDIR)
@echo "+ Make install Done."
startup:
systemctl daemon-reload
systemctl restart keentune-brain
tar:
mkdir -p keentune-brain-$(VERSION)
cp --parents $(OUTPATH)/* \
keentune-brain.service \
LICENSE \
Makefile \
brain/brain.conf \
keentune-brain-$(VERSION)
tar -czvf keentune-brain-$(VERSION).tar.gz keentune-brain-$(VERSION)
rm -rf keentune-brain-$(VERSION)
run: all install startup
rpm: target tar
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。