-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
86 lines (67 loc) · 2.13 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
DIST_DIR := $(shell pwd)/dist
help:
@echo "build - Create built extension for the current platform"
@echo "install - Install the built extension"
@echo "dev - Install in dev location"
@echo "docs - Generate documentation"
@echo "debug - Set the reg/plist keys for debugging a CEP extension"
uname_S := None
ifeq ($(OS),Windows_NT)
uname_S := Windows
else:
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
endif
DIST_DIR := $(shell pwd)/dist
clean: clean-build clean-gulp
clean-build:
rm -rf build/
rm -rf dist/
clean-gulp:
gulp clean 2>/dev/null || true
ifneq ($(uname_S), Windows)
debug:
defaults write com.adobe.CSXS.8 PlayerDebugMode 1
endif
_docs:
gulp docs
docs: _docs
open docs/protio/index.html
release-docs: _docs
deps:~
yarn install
jspm install
build-dev:
gulp watch
build:
ifneq ($(uname_S), Windows)
gulp build-prod
./bin/ZXPSignCmd -sign dist output/protio.zxp MyCert.p12 abc123
else
gulp build-prod
endif
deploy:
ifneq ($(uname_S), Windows)
rm "/Library/Application Support/Adobe/CEP/extensions/protio" 2>/dev/null || true
mkdir -p "/Library/Application Support/Adobe/CEP/extensions/protio" 2>/dev/null || true
cp output/protio.zxp "/Library/Application Support/Adobe/CEP/extensions/protio/protio.zxp"
else
cmd /c rmdir /Q "%APPDATA%\\Adobe\\CEP\\extensions\\protio" 2>/dev/null || true
xcopy /EHK output/protio.zxp "%APPDATA%\\Adobe\\CEP\\extensions\\protio\\protio.zxp"
endif
ifeq ($(uname_S), Windows)
dev: clean
cmd /c rmdir /Q "%APPDATA%\\Adobe\\CEP\\extensions\\protio" 2>/dev/null || true
cmd /c mklink /J "%APPDATA%\\Adobe\\CEP\\extensions\\protio" "$(shell cygpath -w $(DIST_DIR))"
gulp watch
else
dev: clean
rm "/Library/Application Support/Adobe/CEP/extensions/protio" 2>/dev/null || true
ln -s $(DIST_DIR) "/Library/Application Support/Adobe/CEP/extensions/protio"
gulp watch
endif
uninstall:
cmd /c rmdir /Q "%APPDATA%\\Adobe\\CEP\\extensions\\premiere-otio" 2>/dev/null || true
ifneq ($(uname_S), Windows)
create-cert:
./bin/ZXPSignCmd -selfSignedCert US OR MyCompanyName MyPersonName abc123 MyCert.p12
endif