 |
| Author |
Message |
|
Neverbirth
Member
Joined: Mon Jul 06, 2009 8:14 am Posts: 71
|
 Re: AutoVersion
About the original issue, I'm leaving tomorrow soon in the morning for a meeting, so I'll wait to return in order to analyze it deeper. elyon wrote: I'm also a little curious how this plugin works. Does this version only when you create a file, or does it work each time you compile? It modifies the version when compiling, either before, or after it, and people can choose whether to update the version just in release mode, testing, or both. elyon wrote: Can you place the template text in any file in the project, or does it need to be a class file? You can use whatever template you want, so it doesn't need to be a class file. However, right now, the plugin completely writes the file when updating it, so the file must not have content prone to change. This is the "Smart Update" option I want to soon add, already have the code needed for it (after all, it would be mostly the same code used to read version data from custom templates), just didn't implement it yet. elyon wrote: Can you have multiple projects in the same directory, without them overwriting each other? By default they'd be overwritten, but you can configure the destination filename. elyon wrote: One thing I would LOVE to be able to do, though probably out of the scope of the plugin's current features, is to update an XML file with the build number or build date of each supporting file. If the XML content is static, you can use your own template, if not, will have to wait for the updated version with the feature. elyon wrote: Caching is a pain when loading child assets. Different browsers are terrible about caching files which have actually been updated. As a result, I have a "lastUpdated" value which I keep in an XML file. The solution that many take is to throw a random number at the end of their child URLs, but I think this is very inefficient. That requires the client to download the child files every time they visit the site, which is particularly awful if they are trying to pull it up from their cache while browsing offline.
As a result, I append my "lastUpdated" value instead, which means that it breaks the cache when I updat this value, but otherwise allows the client to keep their cached version. It would be really awesome to be able to update this automatically, so that when I compile each project, it updates it's version value in the XML file, but I'm not entirely sure how that would work from a development standpoint. I know, I've had to do the same in the past. elyon wrote: It wouldn't have to be an XML file, actually, and it wouldn't have to contain any data other than the compile times. For example: Code: <projects><project name="MyProject" build="1.00.10" /><project name="MyOtherProject" build="2.1.20" /></projects> The plugin supports different versioning styles, one of them is auto-increment, so that could be used as a build counter.
|
| Wed Apr 28, 2010 8:32 pm |
|
 |
|
zszen
Member
Joined: Fri Mar 09, 2007 8:02 am Posts: 270
|
 Re: AutoVersion
I use AutoVersion 0.9.10118.1209. But why the "version.as " file is outside of src folder
|
| Thu Apr 29, 2010 7:37 am |
|
 |
|
Neverbirth
Member
Joined: Mon Jul 06, 2009 8:14 am Posts: 71
|
 Re: AutoVersion
zszen wrote: I use AutoVersion 0.9.10118.1209. But why the "version.as " file is outside of src folder Simply because not all projects are created that way, and indeed, my team rarely uses a src folder (I know it's a best practice in Flex projects tho). You can modify where to store the Version.as class file, so it's not a big problem anyway, but will add to my list to check for the Classpaths in order to know where to best store the file.
|
| Thu Apr 29, 2010 5:41 pm |
|
 |
|
Neverbirth
Member
Joined: Mon Jul 06, 2009 8:14 am Posts: 71
|
 Re: AutoVersion
Added some more questions to the FAQ, updated the project RoadMap, and released v 1.0.10121.1307:
- Correctly initialize some variables like Start Date and IncrementBeforeBuild when a new project is created. - Added global settings. These are located together with the other FlashDevelop plugins settings. - Added language detection. Now AS2 and haXe projects will be correctly versioned without having to use custom templates. Also, the default templates aren't embedded inside the assembly, so ayone could make their own default files. - Added the Smart Update feature. This way you can modify the version data file, and everytime it is update, it will only update the lines corresponding to each version part.
Since there are now more files involved, I've uploaded the plugin as a fdz archive.
I'm analyzing the ExportProject plugin issue and test the Happy Turtle plugin this weekend.
|
| Sat May 01, 2010 11:27 am |
|
 |
|
Neverbirth
Member
Joined: Mon Jul 06, 2009 8:14 am Posts: 71
|
 Re: AutoVersion
I've already tested Happy Turtle, and it works as expected: just remove its reference to BuildVersionIncrement.dll, add one to AutoVersion.dll, and change the namespace of BaseIncrementor to the one located inside the AutoVersion assembly.
I've uploaded an unofficial, and unsupported binary to Google Code, for all of those that cannot compile it, or don't have the time for it.
|
| Mon May 03, 2010 8:04 am |
|
 |
|
zszen
Member
Joined: Fri Mar 09, 2007 8:02 am Posts: 270
|
 Re: AutoVersion
But it also don't solve my problem. please add a veriable like" path" and default is "src" . because many people use the default setting of flashdevelop. Neverbirth wrote: Added some more questions to the FAQ, updated the project RoadMap, and released v 1.0.10121.1307:
- Correctly initialize some variables like Start Date and IncrementBeforeBuild when a new project is created. - Added global settings. These are located together with the other FlashDevelop plugins settings. - Added language detection. Now AS2 and haXe projects will be correctly versioned without having to use custom templates. Also, the default templates aren't embedded inside the assembly, so ayone could make their own default files. - Added the Smart Update feature. This way you can modify the version data file, and everytime it is update, it will only update the lines corresponding to each version part.
Since there are now more files involved, I've uploaded the plugin as a fdz archive.
I'm analyzing the ExportProject plugin issue and test the Happy Turtle plugin this weekend.
|
| Wed May 05, 2010 6:39 am |
|
 |
|
Neverbirth
Member
Joined: Mon Jul 06, 2009 8:14 am Posts: 71
|
 Re: AutoVersion
zszen wrote: But it also don't solve my problem. please add a veriable like" path" I already said that you can configure where to store the class file. In the Project Version dialog, modify the Version FileName setting to match your preferred location. zszen wrote: and default is "src" . That wouldn't be the proper solution either. The right way of doing it is in my to-do list, once I have some spare time will add it. zszen wrote: because many people use the default setting of flashdevelop. Although most, not all project types use that folder structure as default.
|
| Wed May 05, 2010 7:49 am |
|
 |
|
zszen
Member
Joined: Fri Mar 09, 2007 8:02 am Posts: 270
|
 Re: AutoVersion
Thx Neverbirth wrote: zszen wrote: But it also don't solve my problem. please add a veriable like" path" I already said that you can configure where to store the class file. In the Project Version dialog, modify the Version FileName setting to match your preferred location. zszen wrote: and default is "src" . That wouldn't be the proper solution either. The right way of doing it is in my to-do list, once I have some spare time will add it. zszen wrote: because many people use the default setting of flashdevelop. Although most, not all project types use that folder structure as default.
|
| Thu May 06, 2010 4:37 pm |
|
 |
|
Neverbirth
Member
Joined: Mon Jul 06, 2009 8:14 am Posts: 71
|
 Re: AutoVersion
Released AutoVersion 1.1.10139.20:
- Try to get default source path instead of always using the folder where the project file is located. - Version file package is auto-detected now. - Added setting to update the version information of AIR applications. - Added setting to change AIR descriptor filename. - Fixed updating of multiple versioning template arguments when Smart Update is enabled. - Some minor code refactoring.
|
| Wed May 19, 2010 10:16 am |
|
 |
|
IAP
Member
Joined: Thu Feb 09, 2006 10:58 am Posts: 943 Location: Israel
|
 Re: AutoVersion
Neverbirth wrote: Found it. Somehow ExportProject doesn't like that I add the Version menu item as the first item in the Tools menu. Will contact the author to see what he thinks. You can fix it in the meantime by replacing these lines in PluginMain.cs: Code: toolsMenu.DropDownItems.Insert(0, _versionMenuItem); toolsMenu.DropDownItems.Insert(1, new ToolStripSeparator()); With: Code: toolsMenu.DropDownItems.Add(new ToolStripSeparator()); toolsMenu.DropDownItems.Add(_versionMenuItem); Although this will make the menu item to appear at the bottom of the Tools menu. Is this issue planned to be fixed? I would love to have these two plugins functional. Anyway I think it would be reasonable to put it in the "Project" menu.
_________________ MovieClipCommander
|
| Sat May 22, 2010 4:32 am |
|
 |
|
Neverbirth
Member
Joined: Mon Jul 06, 2009 8:14 am Posts: 71
|
 Re: AutoVersion
IAP wrote: Is this issue planned to be fixed? I would love to have these two plugins functional. After looking a bit more into the issue, I saw that in order to add some item to the Flash Tools menu, you can do so by using its name, which is always the preferred way instead of using an index, and, indeed, other plugins are doing it that way. I contacted elyon twenty days ago to see if he could test the change, but got no reply so far... IAP wrote: Anyway I think it would be reasonable to put it in the "Project" menu. That's what I wanted to do when started to develop the plugin, but the Project menu doesn't have a name, so I couldn't do so without using some dirty method... in order to change some code I'll add a reference to ProjectManager.dll in the following version of AutoVersion, maybe with it I can do this, will have to check it.
|
| Sat May 22, 2010 7:59 am |
|
 |
|
IAP
Member
Joined: Thu Feb 09, 2006 10:58 am Posts: 943 Location: Israel
|
 Re: AutoVersion
And one more thing could you please make it for NET 2.0, like FlashDevelop itself?
_________________ MovieClipCommander
|
| Tue May 25, 2010 7:55 pm |
|
 |
|
Neverbirth
Member
Joined: Mon Jul 06, 2009 8:14 am Posts: 71
|
 Re: AutoVersion
IAP wrote: And one more thing could you please make it for NET 2.0, like FlashDevelop itself? Yes, it could be done with no problems, however, I don't consider it to be of high priority, so I've noted it. I've got no spare time lately because of other projects, so any external submission to the plugin is highly welcome. There is a roadmap for the project in the Wiki section, so anybody can check what could contribute to (although not limited to just that, of course).
|
| Wed May 26, 2010 8:41 am |
|
 |
|
Neverbirth
Member
Joined: Mon Jul 06, 2009 8:14 am Posts: 71
|
 Re: AutoVersion
I've got some spare time at last again, so worked a bit on AutoVersion. So far I've added a reference to ProjectManager.dll so I removed some hardcoded data and placed the plugin menu at the bottom of the Project menu, made the plugin target the .NET 2.0 framework, and added localization support, although some text is still missing. It would be nice if people could test the new version and give some feedback. You can download a pre-release version here.
|
| Wed Jun 23, 2010 7:00 pm |
|
 |
|
divillysausages
Member
Joined: Tue Nov 17, 2009 4:16 pm Posts: 21
|
 Re: AutoVersion
small question: if i set for example i use something like DeltaBaseYearDayOfYear for one of the variables (say minor), when the year passes, will it auto-incret the major, or it that something that i have to do myself?
i.e.: Dec 31st: version = "1.365.0.0"; Jan 1st: version = "1.1.0.0"; <- possible? could conflict with an earlier build number or Jan 1st: version = "2.1.0.0"; <- desired
|
| Wed Jul 28, 2010 9:43 am |
|
|
Who is online |
Users browsing this forum: Alexx999 and 3 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum
|
|
 |