forked from JipZeonGit/workbuddy-linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
62 lines (48 loc) · 1.47 KB
/
Copy pathMakefile
File metadata and controls
62 lines (48 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
SHELL := /bin/bash
.PHONY: help deps build-app run-app deb rpm pacman package install check-update verify-patches clean check
help:
@echo "Targets:"
@echo " make deps"
@echo " make build-app"
@echo " make build-app DMG=/path/to/WorkBuddy.dmg"
@echo " make run-app"
@echo " make deb"
@echo " make rpm"
@echo " make pacman"
@echo " make package"
@echo " make install"
@echo " make check-update"
@echo " make verify-patches"
@echo " make check"
@echo " make clean"
deps:
bash scripts/install-deps.sh
build-app:
@if [ -n "$(DMG)" ]; then bash install.sh "$(DMG)"; else bash install.sh; fi
run-app:
bash workbuddy-app/start.sh
deb:
bash scripts/build-deb.sh
rpm:
bash scripts/build-rpm.sh
pacman:
bash scripts/build-pacman.sh
package:
bash scripts/package.sh
install:
bash scripts/install-package.sh
check-update:
bash scripts/check-upstream-version.sh
# Verify that every required Linux patch is actually present in the built
# app.asar. The patcher anchors on upstream source text, so a new upstream
# release can silently disable a patch — run this after build-app.
verify-patches:
node scripts/lib/verify-patches.js
check:
bash -n install.sh scripts/*.sh scripts/lib/*.sh
node --check scripts/lib/apply-linux-patches.js
node --check scripts/lib/verify-patches.js
clean:
rm -rf workbuddy-app workbuddy-app-next dist dist-next
rm -rf .asar-tool .asar-extract .test-repack.asar .test-repack.asar.unpacked
rm -f .tmp-asar-tool.js .tmp-asar-repack.js