-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
39 lines (35 loc) · 1.77 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
# https://opensource.com/article/18/8/what-how-makefile
# Work in progress
.PHONY: all setup-cep-panel assemble-cep-panel start-cep-panel build-cep-panel
# .ONESHELL:
# Adobe CEP Panel
setup-cep-panel:
@echo "Setting Premiere debug mode to accept unsigned extensions"
defaults write com.adobe.CSXS.5 PlayerDebugMode 1
defaults write com.adobe.CSXS.6 PlayerDebugMode 1
defaults write com.adobe.CSXS.7 PlayerDebugMode 1
defaults write com.adobe.CSXS.8 PlayerDebugMode 1
@echo "Done, please restart your computer"
assemble-cep-panel:
@echo "Adobe CEP Panel - Assemble relevant files"
# TODO: clear directory ./packages/cep/build and recreate
rm -rf ./packages/cep/build
# TODO: move relevant files from react and electron backend into ./packages/cep/build
mkdir -p ./packages/cep/build
# eg
# sync-files adobe-panel-src adobe-panel-build
# && sync-files electron adobe-panel-build/electron
# && sync-files lib adobe-panel-build/lib
# && sync-files ./package.json adobe-panel-build/package.json
# && sync-files node_modules adobe-panel-build/node_modules
start-cep-panel: cep-panel-assemble
@echo "Adobe CEP Panel start"
@echo "make directory for Adobe CEP extensions if not present"
mkdir -p ~/Library/Application\ Support/Adobe/CEP/extensions/
# TODO: need to decide what to move into Adobe CEP extension folder, ideally jsut content of ./packages/cep/build
cd ./packages/cep/build && cp -R $PWD ~/Library/Application\ Support/Adobe/CEP/extensions/autoedit2-panel
# sync-files adobe-panel-src ~/Library/Application\\ Support/Adobe/CEP/extensions/autoedit2-panel
build-cep-panel: build-react assemble-cep-panel
@echo "Adobe CEP Panel build"
@echo "Adobe CEP Panel - packaging and code signing for distribution"
# node ./package/cep/scripts/sign-and-package-adobe-panel.js