* feat(lk): initial pass at app create command * feat(bootstrap): parse and execute bootstrap files * refactor(lk): move config into .livekit dir * chore(lk): move cloud subcommand to its own category * feat(lk): delegate builds to go-task * feat(lk): initial pass at app create command * feat(bootstrap): parse and execute bootstrap files * refactor(lk): move config into .livekit dir * chore(lk): move cloud subcommand to its own category * feat(lk): delegate builds to go-task * refactor(lk): rearrage app command implementations * feat(lk): use taskfile format for bootstrap * fix(build): proper windows manual install * feat(lk): degit apps created from template * feat(lk): select or authorize project before bootstrap * chore(lk): stricter task string typing * chore(deps): tidy deps
41 lines
1.0 KiB
Makefile
41 lines
1.0 KiB
Makefile
ifeq (,$(shell go env GOBIN))
|
|
GOBIN=$(shell go env GOPATH)/bin
|
|
else
|
|
GOBIN=$(shell go env GOBIN)
|
|
endif
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
DETECTED_OS := Windows
|
|
else
|
|
DETECTED_OS := $(shell uname -s)
|
|
endif
|
|
|
|
cli: check_lfs
|
|
GOOS=darwin GOARCH=arm64 go build -ldflags "-w -s" -o bin/lk ./cmd/lk
|
|
GOOS=linux GOARCH=amd64 go build -ldflags "-w -s" -o bin/lk-linux ./cmd/lk
|
|
GOOS=windows GOARCH=amd64 go build -ldflags "-w -s" -o bin/lk.exe ./cmd/lk
|
|
|
|
|
|
install: cli
|
|
ifeq ($(DETECTED_OS),Windows)
|
|
cp bin/lk.exe $(GOBIN)/lk.exe
|
|
ln -sf $(GOBIN)/lk.exe $(GOBIN)/livekit-cli.exe
|
|
else ifeq ($(DETECTED_OS),Darwin)
|
|
cp bin/lk $(GOBIN)/lk
|
|
ln -sf $(GOBIN)/lk $(GOBIN)/livekit-cli
|
|
else
|
|
cp bin/lk-linux $(GOBIN)/lk
|
|
ln -sf $(GOBIN)/lk $(GOBIN)/livekit-cli
|
|
endif
|
|
|
|
check_lfs:
|
|
@{ \
|
|
if [ ! -n $(find pkg/provider/resources -name neon_720_2000.ivf -size +100) ]; then \
|
|
echo "Video resources not found. Ensure Git LFS is installed"; \
|
|
exit 1; \
|
|
fi \
|
|
}
|
|
|
|
fish_autocomplete: cli
|
|
./bin/lk generate-fish-completion -o autocomplete/fish_autocomplete
|