eba Basically, the original script should be sufficient for version upgrades, but if you add a few lines to the script to import the detected Spine project and save it as a new Spine project, the version upgrade of the Spine project can be handled at the same time.
For example, the following commands can be added to the exportUsingJsonSettings()
and exportUsingDefaultSettings()
methods to overwrite the project with the specified version:
# Import the Spine project and save it with the specified version.
local command_args_import=("--update" "$VERSION" "--input" "$file_path" "--output" "$file_path" "-r")
"$SPINE_EXE" "${command_args_import[@]}";
Here is the modified script where I added the above lines:
Perhaps my way of writing the process is redundant. Please feel free to modify and use it as you wish.