When exporting for Windows, bundle with PortableGit

This commit is contained in:
Sebastian Morr 2020-09-09 17:04:22 +02:00
parent 5ac3523817
commit 61a59c8eb7
3 changed files with 17 additions and 9 deletions

4
.gitignore vendored
View file

@ -1 +1,3 @@
.import/ /.import/
/cache/
/dependencies/

View file

@ -6,20 +6,26 @@ linux:
mkdir -p /tmp/$(name)-linux mkdir -p /tmp/$(name)-linux
/usr/bin/godot --export "Linux" "/tmp/$(name)-linux/$(name)" /usr/bin/godot --export "Linux" "/tmp/$(name)-linux/$(name)"
zip -r /tmp/$(name)-linux.zip /tmp/$(name)-linux zip -r /tmp/$(name)-linux.zip /tmp/$(name)-linux
#rm -r /tmp/$(name)-linux
macos: macos:
/usr/bin/godot --export "Mac OS" "/tmp/$(name)-macos.app" /usr/bin/godot --export "Mac OS" "/tmp/$(name)-macos.app"
mv "/tmp/$(name)-macos.app" "/tmp/$(name)-macos.zip" mv "/tmp/$(name)-macos.app" "/tmp/$(name)-macos.zip"
windows: windows: dependencies/windows/git/
mkdir -p /tmp/$(name)-windows mkdir -p /tmp/$(name)-windows
/usr/bin/godot --export "Windows" "/tmp/$(name)-windows/$(name).exe" /usr/bin/godot --export "Windows" "/tmp/$(name)-windows/$(name).exe"
cp -r --parents dependencies/windows/git/ /tmp/$(name)-windows/
zip -r /tmp/$(name)-windows.zip /tmp/$(name)-windows zip -r /tmp/$(name)-windows.zip /tmp/$(name)-windows
#rm -r /tmp/$(name)-windows
web: web:
mkdir -p /tmp/$(name)-web mkdir -p /tmp/$(name)-web
/usr/bin/godot --export "HTML5" "/tmp/$(name)-web/index.html" /usr/bin/godot --export "HTML5" "/tmp/$(name)-web/index.html"
zip -r /tmp/$(name)-web.zip /tmp/$(name)-web zip -r /tmp/$(name)-web.zip /tmp/$(name)-web
#rm -r /tmp/$(name)-web
# 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

View file

@ -6,7 +6,7 @@ runnable=true
custom_features="" custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="levels/*, scripts/*" include_filter="levels/*, scripts/*"
exclude_filter="" exclude_filter="dependencies/*, cache/*"
export_path="" export_path=""
patch_list=PoolStringArray( ) patch_list=PoolStringArray( )
script_export_mode=1 script_export_mode=1
@ -32,7 +32,7 @@ runnable=true
custom_features="" custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="levels/*, scripts/*" include_filter="levels/*, scripts/*"
exclude_filter="" exclude_filter="dependencies/*, cache/*"
export_path="" export_path=""
patch_list=PoolStringArray( ) patch_list=PoolStringArray( )
script_export_mode=1 script_export_mode=1
@ -65,7 +65,7 @@ runnable=true
custom_features="" custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="levels/*, scripts/*" include_filter="levels/*, scripts/*"
exclude_filter="" exclude_filter="dependencies/*, cache/*"
export_path="" export_path=""
patch_list=PoolStringArray( ) patch_list=PoolStringArray( )
script_export_mode=1 script_export_mode=1
@ -107,7 +107,7 @@ runnable=true
custom_features="" custom_features=""
export_filter="all_resources" export_filter="all_resources"
include_filter="levels/*, scripts/*" include_filter="levels/*, scripts/*"
exclude_filter="" exclude_filter="dependencies/*, cache/*"
export_path="" export_path=""
patch_list=PoolStringArray( ) patch_list=PoolStringArray( )
script_export_mode=1 script_export_mode=1