Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed May 20, 2024
1 parent 24df133 commit f56d7df
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 37 deletions.
20 changes: 2 additions & 18 deletions automatic/advanced-codecs/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
[![](https://img.shields.io/chocolatey/v/advanced-codecs?color=green&label=advanced-codecs)](https://chocolatey.org/packages/advanced-codecs) [![](https://img.shields.io/chocolatey/dt/advanced-codecs)](https://chocolatey.org/packages/advanced-codecs)

## Shark007's 64bit ADVANCED Codecs (Portable)
## Shark007's 64bit Codecs (Portable)

---

---

### [choco://advanced-codecs](choco://advanced-codecs)
To use choco:// protocol URLs, install [(unofficial) choco:// Protocol support ](https://chocolatey.org/packages/choco-protocol-support)

---

## 64bit ADVANCED Codecs for Windows
## 64bit Codecs for Windows

![Screen shot of Settings Application](https://cdn.jsdelivr.net/gh/bcurran3/ChocolateyPackages/advanced-codecs/advanced-codecs_screenshot.png)

Expand Down Expand Up @@ -60,15 +53,6 @@ If you ever find yourself broken, simply press the [RESET ALL] button to return

[SETUP AND USAGE](https://shark007.net/forum/Thread-Setup-and-usage)


**[PACKAGE NOTES](https://github.com/bcurran3/ChocolateyPackages/blob/advanced-codecs/readme.md)**

---

**Click here to [Patreon-ize](https://www.patreon.com/bcurran3) the package maintainer.**

---

---

#### [choco://advanced-codecs](choco://advanced-codecs)
Expand Down
2 changes: 1 addition & 1 deletion automatic/advanced-codecs/advanced-codecs.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>advanced-codecs</id>
<version>18.2.3</version>
<title>Shark007's 64bit ADVANCED Codecs (Portable)</title>
<title>Shark007's 64bit Codecs (Portable)</title>
<authors>Shark007</authors>
<owners>bcurran3</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand Down
File renamed without changes.
26 changes: 26 additions & 0 deletions automatic/advanced-codecs/legal/VERIFICATION.txt
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>
13 changes: 0 additions & 13 deletions automatic/advanced-codecs/tools/VERIFICATION.txt

This file was deleted.

37 changes: 37 additions & 0 deletions automatic/advanced-codecs/update.ps1
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
10 changes: 5 additions & 5 deletions automatic/airshipper/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ $repo = $releases.Split('/') | Select-Object -Last 1 -Skip 2

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)"
}
".\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)"
}
}
}

Expand Down

0 comments on commit f56d7df

Please sign in to comment.