From:  Brent Sink <[email protected]>
Reply-To:  "[email protected]" <[email protected]>
Date:  Saturday, September 6, 2014 at 3:57 PM
To:  "[email protected]" <[email protected]>
Subject:  Re: [beagleboard] How to properly update my application

> I can't quite define it, but something seems to get corrupted.  When the new
> "corrupted" application runs, it only shows a white rectangle, rather than the
> application.  I guess I was wondering how others update their own software
> applications - if they do something similar to what I'm doing or if they are
> using opkg/apt-get/etc.  The MD5 sum may be something I could look into... I'm
> not familiar on how to implement that, but I'll do some research.  Thanks,
I haven¹t done this myself, but it is something I am looking into as I was
planning to create a QT5 package for Debian. Here is a good reference:

http://www.debian.org/doc/manuals/maint-guide/

I¹ve seen Debian application update while they are open and the new version
is used the next time the application is launched, and I¹ve seen application
update from within the application and then relaunch when the update is
complete. 

Regards,
John
> 
> 
> On Sat, Sep 6, 2014 at 6:33 PM, William Hermans <[email protected]> wrote:
>> Define "something gets messed up". You're going to have to know what this
>> something *is* before solving the issue. But perhaps you could use an MD5 sum
>> to verify the file ? Then when there is a mismatch you delete the target file
>> and try again ?
>> 
>> 
>> On Sat, Sep 6, 2014 at 3:02 PM, Brent <[email protected]> wrote:
>>> I have a Qt application that runs at start up.  Currently, I update my
>>> application by allowing the user to press a button inside of my application
>>> which copies the updated application files from the USB drive to the eMMC.
>>> It then sets a flag inside of a text file to "1", and reboots.  When my
>>> start up script is ran, it firsts checks the text file to see if there is a
>>> "1", and if so it overwrites the old files with the new ones and then
>>> launches the application.  This works most of the time, but there are
>>> occasions where something gets messed up and the new application does not
>>> start.
>>> 
>>> I was wondering if there is a better way of updating my application.  Could
>>> I use opkg to do this, and if so, how?  Will it allow my application to be
>>> running while it is updating it?  What is the proper way to do this?  Thanks
>>> in advance for your help!
>>> -- 
>>> For more options, visit http://beagleboard.org/discuss
>>> --- 
>>> You received this message because you are subscribed to the Google Groups
>>> "BeagleBoard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> -- 
>> For more options, visit http://beagleboard.org/discuss
>> --- 
>> You received this message because you are subscribed to a topic in the Google
>> Groups "BeagleBoard" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/beagleboard/4FY8Owh_i_I/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> 
> -- 
> -brent 
> -- 
> For more options, visit http://beagleboard.org/discuss
> --- 
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to