Browse Source

Don't store directories in the template tpz

Hein-Pieter van Braam 7 years ago
parent
commit
7a16a670d7
2 changed files with 7 additions and 2 deletions
  1. 5 0
      build-all.sh
  2. 2 2
      build-templates.sh

+ 5 - 0
build-all.sh

@@ -16,3 +16,8 @@ MONO_VERSION=$3
 echo "uwp windows macos ubuntu_32 ubuntu_64 android javascript" | xargs -P 2 -n 1 ./build-godot.sh ${FILE_VERSION} ${MONO_VERSION}
 
 ./build-templates.sh ${VERSION} ${FILE_VERSION}
+
+pushd godot-mono-glue
+git archive $FILE_VERSION --prefix=godot-$FILE_VERSION/ -o ../release-$FILE_VERSION/godot-$FILE_VERSION.tar.xz
+popd
+sha256sum release-$FILE_VERSION/godot-$FILE_VERSION.tar.xz > release-$FILE_VERSION/godot-$FILE_VERSION.tar.xz.sha256

+ 2 - 2
build-templates.sh

@@ -16,11 +16,11 @@ echo "$VERSION" > templates/version.txt
 
 mkdir -p release-${FILE_VERSION}
 rm -f release-${FILE_VERSION}/*templates.tpz
-zip -q -9 -r release-${FILE_VERSION}/Godot_v${FILE_VERSION}_export_templates.tpz templates
+zip -q -9 -r -D release-${FILE_VERSION}/Godot_v${FILE_VERSION}_export_templates.tpz templates
 
 mkdir -p mono/release-${FILE_VERSION}
 rm -f mono/release-${FILE_VERSION}/*templates.tpz
 cd mono
 echo "$VERSION".mono > templates/version.txt
-zip -q -9 -r release-${FILE_VERSION}/Godot_v${FILE_VERSION}_mono_export_templates.tpz templates
+zip -q -9 -r -D release-${FILE_VERSION}/Godot_v${FILE_VERSION}_mono_export_templates.tpz templates
 cd ..