2020-03-18 22:32:49 +03:00
|
|
|
name = "git-hydra"
|
2020-01-29 22:25:13 +03:00
|
|
|
|
|
|
|
all: linux macos windows web
|
|
|
|
|
|
|
|
linux:
|
|
|
|
mkdir -p /tmp/$(name)-linux
|
|
|
|
/usr/bin/godot --export "Linux" "/tmp/$(name)-linux/$(name)"
|
2020-09-24 12:09:51 +03:00
|
|
|
cd /tmp && zip -r $(name)-linux.zip $(name)-linux
|
2020-01-29 22:25:13 +03:00
|
|
|
|
|
|
|
macos:
|
|
|
|
/usr/bin/godot --export "Mac OS" "/tmp/$(name)-macos.app"
|
|
|
|
mv "/tmp/$(name)-macos.app" "/tmp/$(name)-macos.zip"
|
|
|
|
|
2020-09-09 18:04:22 +03:00
|
|
|
windows: dependencies/windows/git/
|
2020-01-29 22:25:13 +03:00
|
|
|
mkdir -p /tmp/$(name)-windows
|
|
|
|
/usr/bin/godot --export "Windows" "/tmp/$(name)-windows/$(name).exe"
|
2020-09-09 18:04:22 +03:00
|
|
|
cp -r --parents dependencies/windows/git/ /tmp/$(name)-windows/
|
2020-09-24 12:09:51 +03:00
|
|
|
cd /tmp && zip -r $(name)-windows.zip $(name)-windows
|
2020-01-29 22:25:13 +03:00
|
|
|
|
|
|
|
web:
|
|
|
|
mkdir -p /tmp/$(name)-web
|
|
|
|
/usr/bin/godot --export "HTML5" "/tmp/$(name)-web/index.html"
|
2020-09-24 12:09:51 +03:00
|
|
|
cd /tmp && zip -r $(name)-web.zip $(name)-web
|
2020-09-09 18:04:22 +03:00
|
|
|
|
|
|
|
# Dependencies:
|
|
|
|
|
|
|
|
cache/portablegit.7z.exe:
|
|
|
|
wget https://github.com/git-for-windows/git/releases/download/v2.28.0.windows.1/PortableGit-2.28.0-64-bit.7z.exe -O cache/portablegit.7z.exe
|
|
|
|
|
|
|
|
dependencies/windows/git/: cache/portablegit.7z.exe
|
|
|
|
wine cache/portablegit.7z.exe -o dependencies/windows/git/ -y
|