Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force republish of all assets when CocosBuilder updates #329

Open
vlidholt opened this issue Apr 18, 2013 · 1 comment
Open

Force republish of all assets when CocosBuilder updates #329

vlidholt opened this issue Apr 18, 2013 · 1 comment

Comments

@vlidholt
Copy link

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.

@vlidholt
Copy link
Author

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).

vlidholt pushed a commit that referenced this issue May 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant