You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the ccb/ccbi-file format changes when CocosBuilder updates. Modification dates of files doesn't so CocosBuilder will not automatically republish all the files (specifically ccbi) that needs to be updated.
A solution would be to save the version of CocosBuilder in the project file. For version, the git commit hash shown in the about box could be used. The commit hash is updated when the /scripts/BuildDistribution.sh is being run.
When opening a project, CocosBuilder checks if the hash in the project file matches the current version. If not, it sets a variable in the projectFile, needsRepublish. When the publisher runs it checks the variable and republishes all files if it is set to true. After the publish is complete the variable is set to false.
The text was updated successfully, but these errors were encountered:
The easiest way to solve this could be to remove the published directory right before the publish process starts.
Also, selecting the "Clean Cache" option from file menu should mark any open project file as needing to be republished.
The file with the current git has can be found in CocosBuilder/version/Version.txt after the scripts/BuildDistribution.sh command has been run (to run it, first cd into the scripts directory).
Sometimes the ccb/ccbi-file format changes when CocosBuilder updates. Modification dates of files doesn't so CocosBuilder will not automatically republish all the files (specifically ccbi) that needs to be updated.
A solution would be to save the version of CocosBuilder in the project file. For version, the git commit hash shown in the about box could be used. The commit hash is updated when the /scripts/BuildDistribution.sh is being run.
When opening a project, CocosBuilder checks if the hash in the project file matches the current version. If not, it sets a variable in the projectFile, needsRepublish. When the publisher runs it checks the variable and republishes all files if it is set to true. After the publish is complete the variable is set to false.
The text was updated successfully, but these errors were encountered: