-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
24df133
commit f56d7df
Showing
7 changed files
with
71 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
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,26 @@ | ||
VERIFICATION | ||
|
||
Verification is intended to assist the Chocolatey moderators and community | ||
in verifying that this package's contents are trustworthy. | ||
|
||
The embedded software has been downloaded from the listed download | ||
location on <https://www.axcrypt.net/download> | ||
and can be verified by doing the following: | ||
|
||
1. Download the following: | ||
|
||
url: <https://github.com/veloren/Airshipper/releases/download/v0.11.0/airshipper-windows.msi> | ||
|
||
2. You can obtain the checksum using one of the following methods: | ||
- Use powershell function 'Get-FileHash' | ||
- Use Chocolatey utility 'checksum.exe' | ||
|
||
checksum type: SHA512 | ||
checksum: 5356609DB144374D7F88BDADB853DABB3DAD737D84F8477370D1B70FE6CF106A6200F8D04D2B79A0B649B63B676D03EE509D1845B818135E26915AEE6AF82264 | ||
|
||
Using AU: | ||
|
||
Get-RemoteChecksum | ||
|
||
The file 'LICENSE.txt' is obtained from: | ||
<https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html> |
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,37 @@ | ||
$ErrorActionPreference = 'Stop' | ||
import-module au | ||
|
||
$release = 'https://shark007.net/files/Shark007Codecs.7z' | ||
|
||
function global:au_SearchReplace { | ||
@{ | ||
".\legal\VERIFICATION.txt" = @{ | ||
"(?i)(^\s*url(32)?\:\s*).*" = "`${1}<$($Latest.URL32)>" | ||
"(?i)(^\s*checksum(32)?\:\s*).*" = "`${1}$($Latest.Checksum32)" | ||
"(?i)(^\s*checksum\s*type\:\s*).*" = "`${1}$($Latest.ChecksumType32)" | ||
} | ||
} | ||
} | ||
|
||
function global:au_BeforeUpdate { | ||
$File = "tools\Shark007Codecs.7z" | ||
Invoke-WebRequest -Uri $Latest.URL32 -OutFile $File | ||
$Latest.Checksum32 = Get-FileHash -Path $File -Algorithm $env:ChocolateyChecksumType | ||
$Latest.ChecksumType32 = $env:ChocolateyChecksumType | ||
} | ||
|
||
function global:au_AfterUpdate($Package) { | ||
Invoke-VirusTotalScan $Package | ||
} | ||
|
||
function global:au_GetLatest { | ||
$page = Invoke-WebRequest -Uri "https://shark007.net/x64components1.html" | ||
$regexPattern = 'version (\d+(\.\d+)*)' | ||
$versionMatch = $page.Content | Select-String -Pattern $regexPattern -AllMatches | ||
$version = $versionMatch.Matches[0].Groups[1].Value | ||
|
||
$Latest = @{ URL32 = $release; Version = $version } | ||
return $Latest | ||
} | ||
|
||
update -ChecksumFor none |
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