Files
kopia/app/Makefile
Jarek Kowalski 5412d75f79 htmlui: approaching usability by mere mortals
- added ability to make new snapshots from the UI
- added directory picker
- hide/show macOS dock icon automatically
- fixed copy/paste on Mac (apparently if you don't have 'Edit' menu
  in your app, copy/paste and many other shortcut keys simply don't
  work)
- added smart time formatting ("X minutes ago", etc.) in lists
  using 'moment' library
- added progress information to snapshots
2020-02-22 20:03:57 -08:00

56 lines
1.4 KiB
Makefile

SHELL:=/bin/bash
REPO_OWNER=kopia
electron_builder_flags:=
electron_publish_flag:=never
ifeq ($(TRAVIS_PULL_REQUEST),false)
electron_publish_flag=always
ifneq ($(TRAVIS_TAG),)
# tagged release - create draft release, but don't publish
electron_builder_flags+=-c.extraMetadata.version=$(TRAVIS_TAG:v%=%)
electron_builder_flags+=-c.publish.releaseType=draft
electron_builder_flags+=-c.publish.owner=$(REPO_OWNER)
electron_builder_flags+=-c.publish.repo=kopia
else
# post-submit run, create a release in another repo
electron_builder_flags+=-c.extraMetadata.version=$(shell date +%Y%m%d).0.$(TRAVIS_BUILD_NUMBER)
electron_builder_flags+=-c.publish.owner=$(REPO_OWNER)
electron_builder_flags+=-c.publish.repo=kopia-ui-release
electron_builder_flags+=-c.publish.releaseType=release
endif
else
# not running on Travis, or Travis in PR mode, don't build installer and don't publish
ifneq ($(FORCE_KOPIA_UI_SIGN),)
electron_builder_flags+=--dir
endif
endif
ifeq ($(TRAVIS_OS_NAME),windows)
# disable Kopia UI code signing on Windows.
undefine CSC_LINK
undefine CSC_KEY_PASSWORD
endif
dev: node_modules
$(npm) $(npm_flags) run dev
run: build-html
$(npm) $(npm_flags) run start-electron-prebuilt
build-html: node_modules
$(npm) $(npm_flags) run build-html
build-electron: node_modules build-html
$(npm) $(npm_flags) run build-electron -- $(electron_builder_flags) -p $(electron_publish_flag)
include ../tools/tools.mk
node_modules: $(npm)
$(npm) $(npm_flags) install