36 lines
696 B
Makefile
36 lines
696 B
Makefile
ifeq ($(OS), Windows_NT)
|
|
build: build-windows
|
|
else ifeq ($(shell uname -s), Darwin)
|
|
build: build-macos
|
|
else
|
|
build: build-linux
|
|
endif
|
|
|
|
build-windows:
|
|
@echo ---- build for windows
|
|
wails build -ldflags '-s -w -extldflags "-static"' -platform windows/amd64
|
|
upx -9 --lzma ./build/bin/RWKV-Runner.exe
|
|
|
|
build-macos:
|
|
@echo ---- build for macos
|
|
wails build -ldflags '-s -w' -platform darwin/universal
|
|
|
|
build-linux:
|
|
@echo ---- build for linux
|
|
wails build -ldflags '-s -w' -platform linux/amd64
|
|
upx -9 --lzma ./build/bin/RWKV-Runner
|
|
|
|
build-web:
|
|
@echo ---- build for web
|
|
cd frontend && npm run build
|
|
|
|
dev:
|
|
wails dev
|
|
|
|
dev-web:
|
|
cd frontend && npm run dev
|
|
|
|
preview:
|
|
cd frontend && npm run preview
|
|
|