SABnzbd 0.7.3

This commit is contained in:
Iristyle
2012-10-02 08:25:16 -04:00
parent 8422b76168
commit d4eff0f04e
3 changed files with 143 additions and 0 deletions

52
SABnzbd/SABnzbd.nuspec Normal file
View File

@@ -0,0 +1,52 @@
<?xml version="1.0"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>SABnzbd</id>
<title>SABnzbd+</title>
<version>0.7.3</version>
<authors>The SABnzbd+ Team</authors>
<owners>Ethan Brown</owners>
<summary>SABnzbd+ open source binary newsreader</summary>
<description>SABnzbd+ is an Open Source Binary Newsreader written in Python.
It's totally free, incredibly easy to use, and works practically everywhere.
SABnzbd makes Usenet as simple and streamlined as possible by automating everything we can. All you have to do is add an .nzb. SABnzbd takes over from there, where it will be automatically downloaded, verified, repaired, extracted and filed away with zero human interaction.
This installer properly sets up a system service to keep SABnzbd always running in the background and also properly sets up firewall exclusions.
Note that if this is a first time install it will be necessary to configure SABnzbd to allow other computers on your network to access the application.
</description>
<projectUrl>http://sabnzbd.org/</projectUrl>
<tags>usenet binary newsreader newgroups</tags>
<licenseUrl>https://github.com/sabnzbd/sabnzbd/blob/master/LICENSE.txt</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://github.com/Iristyle/ChocolateyPackages/raw/master/SABnzbd/SABnzbd.png</iconUrl>
<releaseNotes>0.7.3Final by The SABnzbd-Team
-------------------------------------------------------------------------------
- Rename Special "random_server_ip" to "randomize_server_ip" so that we
can force the default to "Off". "On" kills speed on some servers.
- Ignore pseudo NZB files that start with a period in the name
- SFV failure now listed in History instead of issuing warnings
- Translation updates
- "502" errors about payments/credits will now block a server
-------------------------------------------------------------------------------
0.7.3Beta2 by The SABnzbd-Team
-------------------------------------------------------------------------------
- Try to keep OSX Mountain Lion awake as long as downloading/postprocessing runs
- Prevent queue deadlock in case of fatally damaged par2 files
- Add RSS filter-enable checkboxes to Plush, Smpl and Classic skins
- Fix problem with saving modified paramters of an already enabled server
- Extend "check new release" option with test releases
-------------------------------------------------------------------------------
0.7.3Beta1 by The SABnzbd-Team
-------------------------------------------------------------------------------
- Correct several errors in Sort function
- Improve organization of Config->Servers
- Support for nzbxxx.com
- Make detection of samples less aggressive
- Some minor corrections
</releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>

BIN
SABnzbd/SABnzbd.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,91 @@
try
{
$package = 'SABnzbd+'
$upgrade = $false
# stop helper services if they're running
Get-Service -Include SABnzbd, SABHelper |
Stop-Service -Force
$installPath = (Join-Path "${Env:\ProgramFiles(x86)}" 'sabnzbd'),
(Join-Path 'Env:ProgramFiles' 'sabnzbd') |
? { Test-Path $_ } |
Select -First 1
$helper = 'SABnzbd-helper.exe'
$service = 'SABnzbd-service.exe'
# already installed, so must call remove on existing exes to be safe
if ($installPath -ne $null)
{
$upgrade = $true
$helper, $service |
% {
$path = Join-Path $installPath $_
if (Test-Path $path) { &$path remove }
}
}
#uses NSIS installer
Install-ChocolateyPackage 'SABnzbd-0.7.3-win32-setup' 'exe' '/S' `
'http://sourceforge.net/projects/sabnzbdplus/files/sabnzbdplus/0.7.3/SABnzbd-0.7.3-win32-setup.exe/download'
#need to turn on / install services
@("${Env:\ProgramFiles(x86)}", '^%ProgramFiles(x86)^%'),
@($Env:ProgramFiles, '^%ProgramFiles^%') |
% {
$path = Join-Path $_[0] 'sabnzbd'
if (Test-Path $path)
{
$installPath = $path
$dosPath = $_[1]
break
}
}
#register file association
#http://stackoverflow.com/questions/323426/windows-command-line-non-evaluation-of-environment-variable
cmd /c assoc .nzb=NZBFile
$sabPath = "^`"$dosPath\sabnzbd\SABnzbd.exe^`""
cmd /c ftype NZBFile=$sabPath `"%1`"
Push-Location $installPath
$dataDirectory = Join-Path $Env:LOCALAPPDATA 'sabnzbd'
&".\$service" -f $dataDirectory install
&".\$helper" install
Pop-Location
# Set-Service cmdlet doesn't have delayed start :(
sc.exe config SABnzbd start= delayed-auto
# configure windows firewall
netsh advfirewall firewall delete rule name="SABnzbd+"
netsh advfirewall firewall add rule name="SABnzbd+" dir=in protocol=tcp localport=8080 action=allow program="$installPath\SABnzbd-service.exe"
netsh advfirewall firewall add rule name="SABnzbd+" dir=in protocol=tcp localport=9090 action=allow program="$installPath\SABnzbd-service.exe"
Start-Service SABnzbd
# no need to use the web UI to configure an upgrade
if ($upgrade) { return }
#wait up to 5 seconds for service to fire up
0..10 |
% {
if ((Get-Service SABnzbd).Status -eq 'Running')
{
#launch local default browser to configure
[Diagnostics.Process]::Start('http://localhost:8080')
break
}
Start-Sleep -Milliseconds 500
}
Write-ChocolateySuccess $package
}
catch
{
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}