mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Unitypackage automation: Fixed preparation script and package framework for 3.6 branch (needs to be more conservative).
This commit is contained in:
parent
2934c08dde
commit
af7874f749
@ -83,6 +83,7 @@ if [ $spine_version == "3.6" ]; then
|
|||||||
dst_spine_csharp_subdir="Assets/Spine/spine-csharp"
|
dst_spine_csharp_subdir="Assets/Spine/spine-csharp"
|
||||||
dst_spine_unity_subdir="Assets/Spine/spine-unity"
|
dst_spine_unity_subdir="Assets/Spine/spine-unity"
|
||||||
lf_handling="conservative"
|
lf_handling="conservative"
|
||||||
|
git_track_package_changes=true
|
||||||
else
|
else
|
||||||
|
|
||||||
src_spine_unity_subdir="spine-unity/Assets/Spine"
|
src_spine_unity_subdir="spine-unity/Assets/Spine"
|
||||||
@ -144,7 +145,7 @@ main() {
|
|||||||
echo ----------------------------------------------------------------------
|
echo ----------------------------------------------------------------------
|
||||||
# prepare target dir to track changes or not (via .gitignore ignore directory)
|
# prepare target dir to track changes or not (via .gitignore ignore directory)
|
||||||
if [ $git_track_package_changes == true ]; then
|
if [ $git_track_package_changes == true ]; then
|
||||||
rm "${dst_assets_base_dir}/.gitignore"
|
rm -f "${dst_assets_base_dir}/.gitignore"
|
||||||
else
|
else
|
||||||
echo '*' > "${dst_assets_base_dir}/.gitignore"
|
echo '*' > "${dst_assets_base_dir}/.gitignore"
|
||||||
fi
|
fi
|
||||||
@ -154,6 +155,15 @@ main() {
|
|||||||
# in spine 3.6 we want to be more conservative and keep existing meta files
|
# in spine 3.6 we want to be more conservative and keep existing meta files
|
||||||
# (they come from a previously extracted reference 3.6 unitypackage).
|
# (they come from a previously extracted reference 3.6 unitypackage).
|
||||||
# so in spine-csharp and dst_spine_unity dirs, we don't want to delete meta files.
|
# so in spine-csharp and dst_spine_unity dirs, we don't want to delete meta files.
|
||||||
|
|
||||||
|
if [ ! -d "$dst_spine_csharp/" ]; then
|
||||||
|
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
echo "!!! ERROR $dst_spine_csharp/ does not exist!"
|
||||||
|
echo '!!! Please unpack the last valid unitypackage to Assets/ for reference purposes (to preserve lf vs crlf)'
|
||||||
|
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
find "$dst_spine_csharp/" -type f -not -name '*.meta' -delete
|
find "$dst_spine_csharp/" -type f -not -name '*.meta' -delete
|
||||||
find "$dst_spine_csharp/" -type d -empty -delete
|
find "$dst_spine_csharp/" -type d -empty -delete
|
||||||
find "$dst_spine_unity/" -type f -not -name '*.meta' -delete
|
find "$dst_spine_unity/" -type f -not -name '*.meta' -delete
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
./*
|
|
||||||
Loading…
x
Reference in New Issue
Block a user