Question on packaging - trying it on Windows

Discuss newly added features or request new features.
Post Reply
FKuypers
Posts: 20
Joined: 04 Jun 2013, 04:55

Question on packaging - trying it on Windows

Post by FKuypers » 10 Sep 2014, 18:15

Hi,

I am writing some scripts to provide automatic updates for my Windows installation using Powershell. The download and installation of Testing and Devel versions already works. Now I would like to implement the update-info-script. Without having tried it extensively -where does the script need to generate the nzbget-update-info.json file for NZBGET to read it correctly. Will NZBGET just look in the same directory the script will run from or should it be in the tmp directory ?

Thanks,

Frank

hugbug
Developer & Admin
Posts: 7645
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: Question on packaging - trying it on Windows

Post by hugbug » 10 Sep 2014, 20:00

Sorry for not having documented this yet.
The update-info-script should print the content of the update-info.json into standard output using special prefixes:

Code: Select all

echo [NZB] [UPDATEINFO] NZBGet.UpdateInfo = {
echo [NZB] [UPDATEINFO] 	"stable-version": "13.0",
...
I'm not sure if quotation marks will work in the batch-file though.

FKuypers
Posts: 20
Joined: 04 Jun 2013, 04:55

Re: Question on packaging - trying it on Windows

Post by FKuypers » 10 Sep 2014, 21:35

That worked - many thanks:

PS C:\Users\fkuypers> \\server\nzbget\scripts\update-package.ps1
Stable version found at 13.0
Developer version found at 14.0-dev-r1122
Testing version found at 14.0-testing-r1121
[NZB] [UPDATEINFO] NZBGet.UpdateInfo = {
[NZB] [UPDATEINFO] "stable-version":" 13.0",
[NZB] [UPDATEINFO] "stable-package-info": " http://nzbget.net/forum/viewtopic.php?f=4&t=1306",
[NZB] [UPDATEINFO] "testing-version":" 14.0-testing-r1121",
[NZB] [UPDATEINFO] "testing-package-info": " http://nzbget.net/forum/viewforum.php?f=4&",
[NZB] [UPDATEINFO] "devel-version":" 14.0-dev-r1122",
[NZB] [UPDATEINFO] "devel-package-info": " http://sourceforge.net/p/nzbget/code/log",
[NZB] [UPDATEINFO] }

Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests