mirror of
https://github.com/imgfloat/client.git
synced 2026-02-05 03:59:26 +00:00
Migrate from personal repo
This commit is contained in:
31
Makefile
Normal file
31
Makefile
Normal file
@@ -0,0 +1,31 @@
|
||||
.ONESHELL:
|
||||
.POSIX:
|
||||
|
||||
.DEFAULT_GOAL := run
|
||||
|
||||
ELECTRON := $(shell \
|
||||
if [ -f /etc/os-release ] && grep -q '^ID=nixos' /etc/os-release; then \
|
||||
echo electron; \
|
||||
else \
|
||||
echo "npx electron"; \
|
||||
fi)
|
||||
|
||||
node_modules: package-lock.json
|
||||
npm install
|
||||
|
||||
.PHONY: run
|
||||
run:
|
||||
$(ELECTRON) src/main.js
|
||||
|
||||
.PHONY: run-x
|
||||
run-x:
|
||||
./util/run-xorg $(ELECTRON)
|
||||
|
||||
.PHONY: run-wl
|
||||
run-wl:
|
||||
./util/run-wl $(ELECTRON)
|
||||
|
||||
.PHONY: fix
|
||||
fix: node_modules
|
||||
./node_modules/.bin/prettier --write src
|
||||
|
||||
Reference in New Issue
Block a user