RSS feed for releases with changelog

this is not so much related to the software, but rather to your website. would you consider adding a RSS feed to the download page, or even multiple ones for each product, so it’s easier to be notified of updates? this is especially important for the server releases.

i do this for my own software projects and update the feed for each release with the full changelog (see for instance the RSS feed for the koRpus package).

I have an Script which tells me if there is an update available. Perhaps you can use it and adjust it for your needs:

#!/bin/bash
if [ -f /home/seafile/seafile-server-latest/seahub/seahub/settings.py ]
    then
       ## get information about local Seafileinstallation
       local_version=$(tail -n2 /home/seafile/seafile-server-latest/seahub/seahub/settings.py)
       t1=${local_version#*\"}
       local_version=${t1%\"*}
       # get information about remote seafile repo
       online_version=$(curl -s https://api.github.com/repos/haiwen/seafile-rpi/tags | tac | tac | head -n3 | grep name)
       IFS=" " read -r _ t2 <<< "$online_version"
       t2=${t2#*\"v}
       online_version=${t2%\"*}
       if [ "$local_version" != "$online_version" ]
       then
           temp=$(echo -e "$local_version\n$online_version" | sort -V )
           IFS=" " read -r t1 _ <<< "$temp"
           if [ "$local_version" = "$t1" ]
           then
               //here you can do some stuff to send you a message, for example send a pushbullet message
                curl -s -k -u PUSHBULLET_API_KEY https://api.pushbullet.com/v2/pushes -d type=note -d title="New Seafile-Version online" -d body="Seafile-Version $online_version is online (local Seafile-version: $local_version)" >/dev/null 2>&1 
           fi
       fi
    fi

For a seafile on a raspberry pi you can save the script under /usr/local/bin, make it executable (chmod +x) and add it as a cronjob (sudo crontab -e):

0 */12 * * * /usr/local/bin/scriptname.sh
2 Likes

Great script. I will use it!

that script is great, for sure!

i would still prefer a RSS feed provided by the publishers of the software. it is really easy to implement and can be of great value for all users. don’t let the off the hook so easily :wink:

RSS-feed of a forum category: New release & security notifications

that’s really helpful, thanks! the feed should be added to the download-side to be easy to find.

Here is the code modified for the normal server

#!/bin/bash
if [ -f /home/seafile/seafile-server-latest/seahub/seahub/settings.py ]
    then
       ## get information about local Seafileinstallation
       local_version=$(tail -n2 /home/seafile/seafile-server-latest/seahub/seahub/settings.py)
       t1=${local_version#*\"}
       local_version=${t1%\"*}
       # get information about remote seafile repo
       online_version=$(curl -s https://api.github.com/repos/haiwen/seafile-server/tags | tac | tac | head -n3 | grep name)
       IFS=" " read -r _ t2 <<< "$online_version"
       t2=${t2#*\"v}
       online_version=${t2%\"*}
       online_version=${online_version//-server/}
       if [ "$local_version" != "$online_version" ]
       then
           temp=$(echo -e "$local_version\n$online_version" | sort -V )
           IFS=" " read -r t1 _ <<< "$temp"
           if [ "$local_version" = "$t1" ]
           then
        //here you can do some stuff to send you a message, for example send a pushbullet message
                curl -s -k -u PUSHBULLET_API_KEY https://api.pushbullet.com/v2/pushes -d type=note -d title="New Seafile-Version online" -d body="Seafile-Version $online_version is online (local Seafile-version: $local_version)" >/dev/null 2>&1 

           fi
          
       fi
    fi