2020-03-18 22:32:49 +03:00
|
|
|
name = "git-hydra"
|
2020-01-29 22:25:13 +03:00
|
|
|
|
2020-10-20 11:54:33 +03:00
|
|
|
all: linux macos windows
|
2020-01-29 22:25:13 +03:00
|
|
|
|
|
|
|
linux:
|
2020-10-20 11:54:33 +03:00
|
|
|
mkdir -p build/$(name)-linux
|
|
|
|
\godot --export "Linux" "build/$(name)-linux/$(name)"
|
|
|
|
cd build/$(name)-linux && zip -r ../$(name)-linux.zip .
|
2020-01-29 22:25:13 +03:00
|
|
|
|
|
|
|
macos:
|
2020-10-20 11:54:33 +03:00
|
|
|
mkdir -p build
|
|
|
|
\godot --export "Mac OS" "build/$(name)-macos.zip"
|
2020-01-29 22:25:13 +03:00
|
|
|
|
2020-09-09 18:04:22 +03:00
|
|
|
windows: dependencies/windows/git/
|
2020-10-20 11:54:33 +03:00
|
|
|
mkdir -p build/$(name)-windows
|
|
|
|
\godot --export "Windows" "build/$(name)-windows/$(name).exe"
|
|
|
|
cp -r --parents dependencies/windows/git/ build/$(name)-windows/
|
|
|
|
cd build/$(name)-windows && zip -r ../$(name)-windows.zip .
|
2020-01-29 22:25:13 +03:00
|
|
|
|
2020-10-20 11:54:33 +03:00
|
|
|
clean-unzipped:
|
|
|
|
cd build && ls | grep -v '\.zip$$' | xargs rm -r
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build dependencies cache
|
2020-09-09 18:04:22 +03:00
|
|
|
|
|
|
|
# Dependencies:
|
|
|
|
|
|
|
|
cache/portablegit.7z.exe:
|
2020-10-20 11:54:33 +03:00
|
|
|
mkdir -p cache
|
2020-09-09 18:04:22 +03:00
|
|
|
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
|
2020-10-20 11:54:33 +03:00
|
|
|
7zr x cache/portablegit.7z.exe -odependencies/windows/git/ -y
|