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

Auto-Generate Build not working #35

Open
wilg opened this issue Dec 9, 2018 · 7 comments
Open

Auto-Generate Build not working #35

wilg opened this issue Dec 9, 2018 · 7 comments

Comments

@wilg
Copy link

wilg commented Dec 9, 2018

I'm not sure what I'm doing wrong here. When I press build, my builds complete successfully and upload to itch (via the plugin) but the build number does not advance.

Is there something I am doing wrong?

screen shot 2018-12-09 at 11 49 29 am

@Chaser324
Copy link
Collaborator

What version of Unity are you running?

I'll take a look and see if I can determine some reason it wouldn't update. Is it possible that it isn't saving the "Auto-Generate Version" selection - if you close and reopen Unity, is it still checked?

I guess it may also be possible that it's retaining values displayed in that UI. If you close the Product Parameters section prior to doing a build, does it change anything?

@wilg
Copy link
Author

wilg commented Dec 10, 2018

I'm using Unity 2018.2.18f1. I'll check the other things in a bit!

@wilg
Copy link
Author

wilg commented Dec 10, 2018

Looks like it was the first problem, it wasn't saving the checkbox properly. I quit Unity and restarted it, and it was unchecked. I checked it again and it did save the change in Assets/UnityBuildSettings/UnityBuildSettings.asset, and it appears to work. So my issue is resolved, I'm not sure if this is caused by a bug or something I did. Thanks!

@Chaser324
Copy link
Collaborator

Glad you got it resolved.

@wilg
Copy link
Author

wilg commented Jan 15, 2019

Actually, I think a problem that's happening here is that when you click "Auto-Generate Version" it does not serialize buildCounter or lastGeneratedVersion into
UnityBuildSettings.asset, so it's easy for the version change to not get committed into version control.

That means, when you come back and build again, the version might have regressed to an earlier version.

It's possible also there are other situations where the build version not serializing causes strange stuff to happen. Maybe if you click "generate version string now" and then "build" with auto-increment on you might not get the version you expect.

@skaggspa
Copy link

skaggspa commented Jul 3, 2021

I believe I'm having this issue with Unity 2021.1.13f -- the build counter doesn't seem to be auto-incrementing. Sometimes it updates if I close & re-open the SUB tab, but usually I have to manually set the build counter.

@robinnorth
Copy link
Collaborator

@skaggspa thanks for the report, I believe I have seen the same behaviour in 2021.1.15f on a project I'm working on, will try and find some time to investigate more and fix the issue.

@robinnorth robinnorth reopened this Jul 29, 2021
@robinnorth robinnorth added the bug label Jul 29, 2021
@robinnorth robinnorth self-assigned this Jul 29, 2021
@robinnorth robinnorth added this to the v2.1.0 milestone Jul 29, 2021
@robinnorth robinnorth modified the milestones: v2.1.0, Backlog Sep 10, 2021
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

4 participants