mirror of
https://github.com/kopia/kopia.git
synced 2026-03-16 13:17:27 -04:00
* app: added desktop app shell based on Electron that runs in the tray, starts a background kopia server and allows access to the UI * icons: updated icons for the app * htmlui: flexible containers
31 lines
945 B
Makefile
31 lines
945 B
Makefile
dev: node_modules
|
|
PATH=$(TOOL_PATH) $(NPM_TOOL) run dev
|
|
|
|
run: build-html
|
|
PATH=$(TOOL_PATH) $(NPM_TOOL) run start-electron-prebuilt
|
|
|
|
build-html: node_modules
|
|
PATH=$(TOOL_PATH) $(NPM_TOOL) run build-html
|
|
|
|
build-electron-dir: node_modules build-html
|
|
PATH=$(TOOL_PATH) $(NPM_TOOL) run build-electron-dir
|
|
|
|
build-all-mac: node_modules build-html
|
|
PATH=$(TOOL_PATH) $(NPM_TOOL) run build-electron-mac
|
|
|
|
build-all-win-linux-docker:
|
|
docker run --rm -ti \
|
|
--env ELECTRON_CACHE="/root/.cache/electron" \
|
|
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
|
|
-v $(CURDIR):/project \
|
|
-v ~/.cache/electron:/root/.cache/electron \
|
|
-v $(CURDIR)/../dist:/dist \
|
|
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
|
|
electronuserland/builder:wine \
|
|
/bin/bash -c "npm install && npm run build-html && npm run build-electron-win-linux"
|
|
|
|
include ../tools/tools.mk
|
|
|
|
node_modules: $(NPM_TOOL)
|
|
PATH=$(TOOL_PATH) $(NPM_TOOL) install
|