-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 711 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 711 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: build zip deploy clean
PLUGIN_NAME = decky-ftpd
-include .env
export
build:
pnpm build
zip: build
rm -rf $(PLUGIN_NAME)-dist $(PLUGIN_NAME).zip
mkdir -p $(PLUGIN_NAME)-dist/$(PLUGIN_NAME)
cp main.py plugin.json package.json $(PLUGIN_NAME)-dist/$(PLUGIN_NAME)/
cp -r dist $(PLUGIN_NAME)-dist/$(PLUGIN_NAME)/dist
cp -r py_modules $(PLUGIN_NAME)-dist/$(PLUGIN_NAME)/py_modules
cd $(PLUGIN_NAME)-dist && zip -r ../$(PLUGIN_NAME).zip $(PLUGIN_NAME)/
deploy: zip
@if [ -z "$(DECK_IP)" ]; then echo "Error: DECK_IP not set. Add it to .env or run: make deploy DECK_IP=x.x.x.x"; exit 1; fi
rsync -av $(PLUGIN_NAME).zip deck@$(DECK_IP):~/
clean:
rm -rf dist $(PLUGIN_NAME)-dist $(PLUGIN_NAME).zip