boxee :: forums  

Go Back   boxee :: forums > boxee developers > boxee applications

Reply
 
Thread Tools Display Modes
  #1  
Old October 15th, 2009, 09:17 AM
Fuzzgtp's Avatar
Fuzzgtp Fuzzgtp is offline
Super Moderator
 
Join Date: Apr 2009
Posts: 769
Default [Developer Release] Update Notice

Here is an easy way to notify your users when you have an update for your app.
It parses the descriptor file in your app directory, checks your repository and then notifies the user if you have an updated version. If the user has already been notified, it won't bug them again.

http://www.fuzzthed.com/applications/UpdateNotice.zip

Code:
Directions:
1. Drop UpdateNotice.py in the same directory your descriptor.xml is in.
2. Make sure your descriptor file is set up to standard. see - http://developer.boxee.tv/2009/04/14...rst-boxee-app/
3. The beginning of your app should look like this:

<?xml version="1.0"?>
<window type="window" id="14000">
	<defaultcontrol always="true">100</defaultcontrol>
	<onload lang="python"><![CDATA[
	
Drop this in the onload section  of your main.xml

from UpdateNotice import *
CheckVersion()


]]></onload>

4. That's it. :)
__________________
The Boxee Repository - An All-In-One Solution for your 3rd party repositories.

Last edited by Fuzzgtp; April 9th, 2010 at 06:33 PM.
Reply With Quote
  #2  
Old October 15th, 2009, 10:38 AM
marcel marcel is offline
team boxee (admin)
 
Join Date: Jul 2008
Posts: 7,910
Default

very nice ...
Reply With Quote
  #3  
Old October 15th, 2009, 12:35 PM
ikeg ikeg is offline
Senior Member
 
Join Date: Aug 2009
Posts: 113
Default Awesome!

I was just thinking about adding this feature to my apps last night, since I tend to update and add features quite often... (Justin.tv is on its 8th release, Adult Swim is on its 7th, Cartoon Network is on its 4th.)

Thanks for doing all the hard work for me!
Ike
Reply With Quote
  #4  
Old April 9th, 2010, 06:43 PM
Fuzzgtp's Avatar
Fuzzgtp Fuzzgtp is offline
Super Moderator
 
Join Date: Apr 2009
Posts: 769
Default

updated for simplicity
__________________
The Boxee Repository - An All-In-One Solution for your 3rd party repositories.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:28 AM.


skin based on greenzero from vBSkins.com

 
Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.