Hi again, I'm now working on a twitter client and I'm wondering how people update their programs when it needs it, for example when I commit a change. Any help on the subject would be most appreciated thanks

leegeorg07
Recommended Answers
Jump to PostHere are my 2cents:
1.Have two textfiles (or whatever) in your server as well as on app
2. app.txt stores current version, last updated, update interval
3. serv.txt stores latest version and status (alpha, beta etc) and type (next version or just bugfix)At startup, have program compare last …
Jump to PostAs I see it, it is a bit complex for the task
you could put a text with three lines
let say this is a server text (serv.txt)version = 0.1
state = stable
files_to_update =Then use urllib2 to retrieve that data and update your program. You could use …
Jump to PostI see,
but I suggest you download it somewhere, check integrity of file and if all is well replacing files with updated. I guess your files will get corrupted if urllib2 fails while updating
All 12 Replies
mn_kthompson 3 Junior Poster

leegeorg07
lllllIllIlllI 178 Veteran Poster
mn_kthompson 3 Junior Poster

leegeorg07
Stefano Mtangoo 455 Senior Poster

leegeorg07
Stefano Mtangoo 455 Senior Poster

leegeorg07
Stefano Mtangoo 455 Senior Poster

leegeorg07
Stefano Mtangoo 455 Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.