forked from awt2542/FramerSite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (30 loc) · 1.19 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
GENERATOR_URL = http://framergenerator-update.s3-website-us-east-1.amazonaws.com
GENERATOR_LATEST_PATH = $(shell curl $(GENERATOR_URL)/latest.txt)
update:
rm -Rf build
mkdir -p build
# Download the Framer lib
wget -O build/Framer.zip http://builds.framerjs.com/latest/Framer.zip
cd build; unzip Framer.zip
# Download the Generator
@echo $(GENERATOR_LATEST_PATH)
wget -O build/FramerGenerator.tar.gz "$(GENERATOR_URL)/$(GENERATOR_LATEST_PATH)"
cd build; tar -zxvf FramerGenerator.tar.gz
cd build; spctl -a -vvvvvvv "Framer Generator.app"
cd build; mv "Framer Generator.app" "Framer/Framer Generator.app"
# Create the Framer zip
cd build; zip -r --symlinks Framer.zip Framer
# cd build; tar -cvzf Framer.tar.gz Framer
# Test if the zipped app is still code signed
cd build; mv Framer Framer.bak
# cd build; tar -zxvf Framer.tar.gz
cd build; unzip Framer.zip
cd build; spctl -a -vvvvvv "Framer/Framer Generator.app"
# Move it to the download dir
# cp build/Framer.tar.gz static/downloads/Framer.tar.gz
# rm static/downloads/Framer.zip
cp build/Framer.zip static/downloads/Framer.zip
upload:
cactus deploy
optimize:
cd Examples; find ./static -name "*.png" -exec optipng -o3 {} \;