优化目录结构
This commit is contained in:
parent
1f6a9cf6db
commit
1cedbc97b3
2 changed files with 6 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -19,4 +19,4 @@
|
|||
dist
|
||||
ui
|
||||
^ui/index.html
|
||||
app/data/*/*
|
||||
tests/data/*/*
|
||||
|
|
|
|||
10
Makefile
10
Makefile
|
|
@ -86,16 +86,16 @@ plugin:
|
|||
rm -rf $(HOME)/data/gou-unit/logs
|
||||
mkdir -p $(HOME)/data/gou-unit/plugins
|
||||
mkdir -p $(HOME)/data/gou-unit/logs
|
||||
GOOS=linux GOARCH=amd64 go build -o $(HOME)/data/gou-unit/plugins/user.so ./app/plugins/user
|
||||
GOOS=linux GOARCH=amd64 go build -o $(HOME)/data/gou-unit/plugins/user.so ./tests/plugins/user
|
||||
chmod +x $(HOME)/data/gou-unit/plugins/user.so
|
||||
ls -l $(HOME)/data/gou-unit/plugins
|
||||
ls -l $(HOME)/data/gou-unit/logs
|
||||
$(HOME)/data/gou-unit/plugins/user.so 2>&1 || true
|
||||
plugin-mac:
|
||||
rm -rf ./app/plugins/user/dist
|
||||
rm -rf ./app/plugins/user.so
|
||||
go build -o ./app/plugins/user.so ./app/plugins/user
|
||||
chmod +x ./app/plugins/user.so
|
||||
rm -rf ./tests/plugins/user/dist
|
||||
rm -rf ./tests/plugins/user.so
|
||||
go build -o ./tests/plugins/user.so ./tests/plugins/user
|
||||
chmod +x ./tests/plugins/user.so
|
||||
|
||||
# 编译静态文件
|
||||
.PHONY: static
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue