forked from hawkthorne/hawkthorne-journey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (51 loc) · 1.98 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
.PHONY: love osx clean contributors
current_version = $(shell python scripts/version.py current)
next_version = $(shell python scripts/version.py next)
previous_version = $(shell python scripts/version.py previous)
love:
mkdir -p build
cd src && zip -r ../build/hawkthorne.love . -x ".*" \
-x ".DS_Store" -x "*/full_soundtrack.ogg"
osx: love
cp -r /Applications/love.app Journey\ to\ the\ Center\ of\ Hawkthorne.app
cp build/hawkthorne.love Journey\ to\ the\ Center\ of\ Hawkthorne.app/Contents/Resources
cp osx/Hawkthorne.icns Journey\ to\ the\ Center\ of\ Hawkthorne.app/Contents/Resources/Love.icns
zip -r hawkthorne-osx Journey\ to\ the\ Center\ of\ Hawkthorne.app
mv hawkthorne-osx.zip build
rm -rf Journey\ to\ the\ Center\ of\ Hawkthorne.app
win: win32 win64
win32: love
rm -rf hawkthorne
rm -f hawkthorne-win-x86.zip
cat win32/love.exe build/hawkthorne.love > win32/hawkthorne.exe
cp -r win32 hawkthorne
zip -r hawkthorne-win-x86 hawkthorne -x "*/love.exe"
mv hawkthorne-win-x86.zip build
win64: love
rm -rf hawkthorne
rm -f hawkthorne-win-x64.zip
cat win64/love.exe build/hawkthorne.love > win64/hawkthorne.exe
cp -r win64 hawkthorne
zip -r hawkthorne-win-x64 hawkthorne -x "*/love.exe"
mv hawkthorne-win-x64.zip build
upload: osx win
python scripts/upload.py build/hawkthorne.love
python scripts/upload.py build/hawkthorne-osx.zip
python scripts/upload.py build/hawkthorne-win-x86.zip
python scripts/upload.py build/hawkthorne-win-x64.zip
tag:
sed -i '' 's/$(current_version)/$(next_version)/g' src/conf.lua
git add src/conf.lua
git commit -m "Bump release version to $(next_version)"
git tag -a $(next_version) -m "Tagged new release at version $(next_version)"
git push origin master
git push --tags
deploy: tag upload post
post:
python scripts/post.py $(previous_version) $(current_version)
contributors:
python scripts/clean.py > CONTRIBUTORS
python scripts/credits.py > src/credits.lua
clean:
rm -rf build
rm -rf Journey\ to\ the\ Center\ of\ Hawkthorne.app