Page 1 of 1

Help! My app file is too big

Posted: Sat Apr 26, 2014 11:09 am
by blackangeldsf
Hi,
I typed some codes in livecode ,when I generated app,I found the file was so big ,more than 11MB.

the codes:

Code: Select all

on openStack
   global theStart
   local thetime
   
   
   put the seconds into theStart
   put the time into thetime
   
   
   answer "Greetings!" & return & thetime titled "Hello World!"
   timeup
end openStack

command timeup
   global theStart
   local theEnd
   
   put the seconds into theEnd
   
   answer "It took you " & (theEnd - theStart) & " seconds to tap that button!" titled "I was Counting"

namefun
end timeup

command namefun
   local userName, theLen, theVowels, tLoop
   
   
   ask "What's your name?"
   put it into userName
   put the length of userName into theLen
   --
   put 0 into theVowels
   repeat with tLoop =1 to theLen
      if character tLoop of userName is among the characters of  "aeiou" then
         add 1 to theVowels
      end if
      
   end repeat
   
   answer  "You have " & thelen & " letters in your name; " & theVowels  & " of them are vowels" 
end namefun

Who can tell me why ? Sorry for my bad english.

thanks.

Re: Help! My app file is too big

Posted: Sat Apr 26, 2014 2:38 pm
by FourthWorld
Which platform, and which LC version?

Re: Help! My app file is too big

Posted: Sun Apr 27, 2014 12:21 am
by DarScott
If you built for Mac Universal, you might want to consider Mac Intel. Look at the checkboxes on the top of the Mac tab of the standalone builder setup.

Re: Help! My app file is too big

Posted: Sun Apr 27, 2014 2:45 am
by dunbarx
DarScott is probably right on.

I made a Universal app with almost nothing in it, and it was 8.6 MBytes. Changing it to Intel only cut that down to 4.5 MB.

Remember that a working LC engine is integrated into your app. The stack itself that I made was 9K. A complex stack might be 900K, if it had no fancy stuff like embedded sounds and videos, but just lots of LC functionality.

Craig Newman

Re: Help! My app file is too big

Posted: Sun Apr 27, 2014 5:02 am
by blackangeldsf
FourthWorld wrote:Which platform, and which LC version?
hi,FourthWorld
thank you for your reply.

I typed the codes with LiveCode Community 7.0 (dp2) on windows xp sp3 .

Re: Help! My app file is too big

Posted: Sun Apr 27, 2014 5:04 am
by blackangeldsf
DarScott wrote:If you built for Mac Universal, you might want to consider Mac Intel. Look at the checkboxes on the top of the Mac tab of the standalone builder setup.
DarScott,
I built for android

thank you

Re: Help! My app file is too big

Posted: Sun Apr 27, 2014 5:13 am
by blackangeldsf
dunbarx wrote:DarScott is probably right on.

I made a Universal app with almost nothing in it, and it was 8.6 MBytes. Changing it to Intel only cut that down to 4.5 MB.

Remember that a working LC engine is integrated into your app. The stack itself that I made was 9K. A complex stack might be 900K, if it had no fancy stuff like embedded sounds and videos, but just lots of LC functionality.

Craig Newman

hi,dunbarx

I only made the android app and not for other OS.

here is my settings:
2014-04-27_121256.png
my settings

Re: Help! My app file is too big

Posted: Sun Apr 27, 2014 5:55 am
by Simon
Hi blackangeldsf,
I read somewhere that liveCode 7.0 did make very large files (I think they are working on this).
Try liveCode 6.7, or the stable version of 6.6.1

Simon

Re: Help! My app file is too big

Posted: Sun Apr 27, 2014 9:56 am
by blackangeldsf
Simon wrote:Hi blackangeldsf,
I read somewhere that liveCode 7.0 did make very large files (I think they are working on this).
Try liveCode 6.7, or the stable version of 6.6.1

Simon
Hi,Simon,

OK,I will try the stable version.

Thank you very much.

Re: Help! My app file is too big

Posted: Wed Apr 30, 2014 4:50 am
by blackangeldsf
Yes ,I made a new android app with LC6.6.1,and then the app was only 2.2MB

thanks all.