forked from MertJSX/folderhost
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (21 loc) · 661 Bytes
/
Makefile
File metadata and controls
22 lines (21 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
start:
go run main.go
web:
cd web && npm run dev
# Use docker for development if you want...
docker:
docker compose build
docker compose up
test-server:
go run gotest.tools/gotestsum@latest --format testname ./test/
# Use mingw for to take Windows build. The other versions won't work :/
build:
cd web && npm run build
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -o ./debug/folderhost main.go
CC=x86_64-w64-mingw32-gcc CGO_ENABLED=1 GOOS=windows GOARCH=amd64 go build -o ./debug/folderhost.exe main.go
setup:
@echo "Downloading dependencies..."
go mod tidy
go mod download
cd web && npm install
@echo "Dependencies are downloaded successfully."