Hey guys,
I've built applications and I've always wanted my own version and build number that's more like bigger applications.
Requirements:
1. The version should be manual (besides obviously there is no way for the app itself to know if it got a new feature vs a fix, I'd like to be the one starting new versions or sub-versions)
2. Build number should be automatic based on the most recently modified file.
My Idea:
1. Get all the project files and find the most recent file update time stamp
2. Calculate the build number based on given version number to get a value that's from hundreds to thousands long (I don't want to reach tens of thousands preferably)
I'm having trouble with the math for 2. Primarily how I can make the build look like it was reset when I change version number, say when I change the version value from 2.0.1 to 2.0.2 or 2.1.0
Maybe I should just store the date the version was changed when change the version value itself and calculate the number of hours from that TS (time stamp) and the last modified file TS.
I'm open to any other ideas.
Peace out,
Dan
I've built applications and I've always wanted my own version and build number that's more like bigger applications.
Requirements:
1. The version should be manual (besides obviously there is no way for the app itself to know if it got a new feature vs a fix, I'd like to be the one starting new versions or sub-versions)
2. Build number should be automatic based on the most recently modified file.
My Idea:
1. Get all the project files and find the most recent file update time stamp
2. Calculate the build number based on given version number to get a value that's from hundreds to thousands long (I don't want to reach tens of thousands preferably)
I'm having trouble with the math for 2. Primarily how I can make the build look like it was reset when I change version number, say when I change the version value from 2.0.1 to 2.0.2 or 2.1.0
Maybe I should just store the date the version was changed when change the version value itself and calculate the number of hours from that TS (time stamp) and the last modified file TS.
I'm open to any other ideas.
Peace out,
Dan
Comment