Getting a version number
Dave Kilroy
dave at applicationinsight.com
Mon Oct 13 15:53:50 EDT 2014
Hi Skip
This is what I do when building for mobile:
> on savingMobileStandalone pTargetType, pAppBundle
> put "vanilla-tmControl-app" into tStack
> --name
> put the cRevStandaloneSettings["name"] of stack tStack into tName
> set the cName of stack "vanilla-tmControl-app" to tName
>
> --version
> put the cRevStandaloneSettings["ios,bundle version"] of stack tStack
> into tVersion
> set the cVersion of stack "vanilla-tmControl-app" to tVersion
>
> --buildNumber
> put the cBuildNumber of stack tStack into tBuild
> repeat for each char zz in tBuild
> if char 1 of zz = "0" then replace "0" with nothing in zz
> end repeat
> add 1 to tBuild
> put the len of tBuild into tLen
> switch tLen
> case 1
> put "0000" before tBuild
> break
> case 2
> put "000" before tBuild
> break
> case 3
> put "00" before tBuild
> break
> case 4
> put "0" before tBuild
> end switch
> set the cBuildNumber of stack tStack to tBuild
>
> --buildDate
> put the long date & " : " & the time into tBuildDate
> set the cBuildDate of stack tStack to tBuildDate
>
> --save the stack with above changes
> save stack tStack
> end savingMobileStandalone
-----
"Some are born coders, some achieve coding, and some have coding thrust upon them." - William Shakespeare & Hugh Senior
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Getting-a-version-number-tp4684508p4684509.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list