-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
60 lines (49 loc) · 1.37 KB
/
Makefile
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
# VARIABLES
export PROOT=$(shell pwd)
export BINARIES=${PROOT}/node_modules/.bin
export VERSION=1.10.2
export ID=com.crunchyroll.webos
export HOMEPAGE="https://github.com/mateussouzaweb/crunchyroll-webos"
export THUMBNAIL="https://raw.githubusercontent.com/mateussouzaweb/crunchyroll-webos/master/src/images/80px.png"
# DEV METHODS
build:
compactor \
--source $(PROOT)/src/ \
--destination $(PROOT)/dist/ \
--compress false \
--progressive false \
--hashed false \
&& rollup --config $(PROOT)/rollup.config.js \
&& sed -i 's/type="module"/defer="defer"/g' $(PROOT)/dist/index.html
develop:
compactor \
--develop true \
--source $(PROOT)/src/ \
--destination $(PROOT)/dist/
# TV METHODS
devices:
$(BINARIES)/ares-setup-device -list
setup:
$(BINARIES)/ares-setup-device
check:
$(BINARIES)/ares-install --list
# APP METHODS
package:
cp -r $(PROOT)/dist/ $(PROOT)/$(ID)/ \
&& $(BINARIES)/ares-package \
$(PROOT)/$(ID) \
--no-minify \
--outdir $(PROOT)/bin \
&& rm -r $(PROOT)/$(ID)
manifest:
$(BINARIES)/webosbrew-gen-manifest \
-a $(PROOT)/src/appinfo.json \
-p $(PROOT)/bin/$(ID)_$(VERSION)_all.ipk \
-o $(PROOT)/bin/webosbrew.manifest.json \
-i $(THUMBNAIL) -l $(HOMEPAGE)
install:
$(BINARIES)/ares-install $(PROOT)/bin/$(ID)_$(VERSION)_all.ipk
launch:
$(BINARIES)/ares-launch $(ID)
inspect:
$(BINARIES)/ares-inspect --app $(ID) --host-port 9222