-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9fcbf73
commit 15c8e1f
Showing
9 changed files
with
73 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
VERIFICATION | ||
Verification is intended to assist the Chocolatey moderators and community | ||
in verifying that this package's contents are trustworthy. | ||
|
||
The installer have been downloaded from the GitHub mirror and can be verified like this: | ||
|
||
1. Download the following installer(s): | ||
|
||
x86: https://www.snort.org/downloads/snort/Snort_2_9_20_Installer.x64.exe | ||
|
||
2. You can use one of the following methods to obtain the checksum(s): | ||
- Use powershell function 'Get-Filehash' | ||
- Use chocolatey utility 'checksum.exe' | ||
|
||
checksum: 2C0268CD3ACE4C1974DEDC2BBD2D26302F6847F13416A4F55930C639EB87619DCD2801A6679DFF6C5614F0492B2ECC992B0CEB6B0C8642FF3FA99F9B274A716E | ||
checksumtype: SHA512 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
$ErrorActionPreference = 'Stop' | ||
$packageName = 'tautulli' | ||
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
$file = "$toolsDir\Tautulli-"+$ENV:ChocolateyPackageVersion+".zip" | ||
$extractDir = "Tautulli-"+$ENV:ChocolateyPackageVersion | ||
$shortcutName = 'Tautulli.lnk' | ||
$packageName = 'tautulli' | ||
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
$file = "$toolsDir\Tautulli-windows-v"+$ENV:ChocolateyPackageVersion+"-x64.exe" | ||
|
||
Get-ChocolateyUnzip -FileFullPath $file -Destination $toolsDir | ||
$packageArgs = @{ | ||
packageName = $packageName | ||
fileType = 'EXE' | ||
file = $file | ||
silentArgs = '/S' | ||
softwareName = "tautulli" | ||
} | ||
|
||
Install-ChocolateyShortcut -shortcutFilePath "$env:Public\Desktop\$shortcutName" -targetPath "$toolsDir\$extractDir\Tautulli.py" -WorkingDirectory "$toolsDir\$extractDir" -IconLocation "$toolsDir\$extractDir\data\interfaces\default\images\favicon\favicon.ico" | ||
Install-ChocolateyShortcut -shortcutFilePath "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\$shortcutName" -targetPath "$toolsDir\$extractDir\Tautulli.py" -WorkingDirectory "$toolsDir\$extractDir" -IconLocation "$toolsDir\$extractDir\data\interfaces\default\images\favicon\favicon.ico" | ||
|
||
$WhoAmI=whoami | ||
icacls.exe $toolsDir /grant $WhoAmI":"'(OI)(CI)'F /T | Out-Null | ||
Install-ChocolateyInstallPackage @packageArgs | ||
Remove-Item $file -Force -ErrorAction SilentlyContinue | Out-Null |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
$ErrorActionPreference = 'Stop' | ||
import-module au | ||
|
||
$releases = 'https://api.github.com/repos/Tautulli/Tautulli/releases/latest' | ||
$Owner = $releases.Split('/') | Select-Object -Last 1 -Skip 3 | ||
$repo = $releases.Split('/') | Select-Object -Last 1 -Skip 2 | ||
|
||
function global:au_SearchReplace { | ||
@{ | ||
"legal\VERIFICATION.txt" = @{ | ||
"(?i)(x86:).*" = "`${1} $($Latest.URL32)" | ||
"(?i)(checksum:).*" = "`${1} $($Latest.Checksum32)" | ||
"(?i)(checksumtype:).*" = "`${1} $($Latest.ChecksumType32)" | ||
} | ||
} | ||
} | ||
|
||
function global:au_BeforeUpdate { | ||
. ..\..\scripts\Get-FileVersion.ps1 | ||
$FileVersion = Get-FileVersion $Latest.URL32 -keep | ||
Move-Item -Path $FileVersion.TempFile -Destination "tool\$($FileVersion.FileName)" | ||
$Latest.Checksum32 = $FileVersion.Checksum | ||
$Latest.ChecksumType32 = $FileVersion.checksumType | ||
} | ||
|
||
function global:au_AfterUpdate($Package) { | ||
Invoke-VirusTotalScan $Package | ||
} | ||
|
||
function global:au_GetLatest { | ||
$tags = Get-GitHubRelease -OwnerName $Owner -RepositoryName $repo -Latest | ||
$url = $tags.assets.browser_download_url | Where-Object {$_ -match ".exe$"} | ||
Update-Metadata -key "releaseNotes" -value $tags.html_url | ||
$version = $tags.tag_name.Replace('v','') | ||
if($tags.prerelease -match "true") { | ||
$date = $tags.published_at.ToString("yyyyMMdd") | ||
$version = "$version-pre$($date)" | ||
} | ||
|
||
return @{ URL32 = $url; Version = $version } | ||
} | ||
|
||
update-package -ChecksumFor none |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.