I assume it started with Xcode 6, anyway.
As described in the Plug-in reference (2nd bullet point), bltrversion
used to run after the product was spit out. It now appears to run before. As a result, we’ve got a few plug-ins out there with a build number higher than what you see in the repo.
So going forward, we need to:
An alternative to that last one: We could just know that it works this way and release plug-ins with higher numbers than what’s in the repo, but I hate that idea.
Another option (which I’m sort of leaning toward) is removing the build number fiddling from the script altogether and just doing it by hand. (We end up messing with it by hand all the time as it is. At least we could eliminate surprises.)
--
Rob McBroom
http://www.skurfer.com/
--
You received this message because you are subscribed to the Google Groups "Quicksilver - Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quicksilver---deve...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 17 Sep 2015, at 2:50, Patrick Robertson wrote:
So for the Extra Scripts plugin I just built, it has a version number of 93
and Info.plist has 94. I think that Info.plist and the released plugin
should have the same version number (that's what I always assumed was the
case).
Rob - are you saying that this is what is happening now (since bltrversion
is being run before the plugin gets created).If we just stick to blindly listening to bltrversion, what's the problem?
Say you clone a fresh copy of the repo and the build number in Info.plist
is 93. You build the plug-in…
Info.plist
is copied into the final product (still at 93)bltrversion
runs, making whatever changesbltrversion
runs, making whatever changesInfo.plist
is copied into the final product (now at 94)The new way is what we always wanted (so documentation changes, etc. would be included in the final product immediately), but it’s problematic because the plug-in you build ends up with a higher number than what you have in the repo.
Maybe we just need to adjust the work-flow and not commit changes to Info.plist
until after we build the final release, but that only works if the person making the changes is also releasing the plug-in which isn’t always the case.
In theory, anyone should be able to check out a fresh copy of the project and build something that matches what’s released. That isn’t the case now. I guess that’s the problem. (Also, if you work on a plug-in and build in Debug mode, the version won’t get bumped. What you have will be 1 less than what was released, so the new build won’t replace your copy of the plug-in.)
Bottom line: We have to change the user-friendly version anyway, and we end up fiddling with the build number (rolling it back, pre-setting it to one less) a lot anyway, so why not just manage it by hand?
--