-
-
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
abeedb0
commit 6f38fa1
Showing
5 changed files
with
59 additions
and
10 deletions.
There are no files selected for viewing
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,20 @@ | ||
VERIFICATION | ||
Verification is intended to assist the Chocolatey moderators and community | ||
in verifying that this package's contents are trustworthy. | ||
|
||
1. Download the installer: | ||
|
||
x32: https://github.com/Ryochan7/DS4Windows/releases/download/v3.1.11/DS4Windows_3.1.11_x64.zip | ||
x64: https://github.com/Ryochan7/DS4Windows/releases/download/v3.1.11/DS4Windows_3.1.11_x64.zip | ||
|
||
2. You can use one of the following methods to obtain the checksum: | ||
- Use powershell function 'Get-FileHash' | ||
- Use Chocolatey utility 'checksum.exe' | ||
- Using AU: | ||
Get-RemoteChecksum https://github.com/Ryochan7/DS4Windows/releases/download/v3.1.11/DS4Windows_3.1.11_x64.zip | ||
|
||
ChecksumType: 0 | ||
3. Compare to Checksum: | ||
|
||
checksum32: 343F507682F5F0D799C99135DA1E812E1FB972CE6CCC27ACC7304FD1D5C99A24 | ||
checksum64: 343F507682F5F0D799C99135DA1E812E1FB972CE6CCC27ACC7304FD1D5C99A24 |
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import-module au | ||
|
||
$releases = 'https://gcompris.net/downloads-fr.html#windows' | ||
|
||
function global:au_SearchReplace { | ||
@{ | ||
'.\legal\VERIFICATION.txt' = @{ | ||
"(?i)(\s+x32:).*" = "`${1} $($Latest.URL32)" | ||
"(?i)(Get-RemoteChecksum).*" = "`${1} $($Latest.URL32)" | ||
"(?i)(\s+checksum32:).*" = "`${1} $($Latest.Checksum32)" | ||
"(?i)(\s+ChecksumType:).*" = "`${1} $($Latest.ChecksumType32)" | ||
"(?i)(\s+x64:).*" = "`${1} $($Latest.URL64)" | ||
"(?i)(\s+checksum64:).*" = "`${1} $($Latest.Checksum64)" | ||
} | ||
} | ||
} | ||
|
||
function global:au_AfterUpdate($Package) { | ||
Invoke-VirusTotalScan $Package | ||
} | ||
|
||
function global:au_GetLatest { | ||
$urls = ((Invoke-WebRequest -Uri $releases -UseBasicParsing).Links | Where-Object {$_.href -match "-gcc.exe$"}).href | ||
$url32 = $urls | Where-Object {$_ -match "32"} | ||
$url64 = $urls | Where-Object {$_ -match "64"} | ||
. ..\..\scripts\Get-FileVersion.ps1 | ||
$FileVersion32 = Get-FileVersion $url32 -keep | ||
$FileVersion64 = Get-FileVersion $url64 -keep | ||
|
||
Move-Item -Path $FileVersion32.TempFile -Destination 'tools/gcompris-qt-win32-gcc.exe' | ||
Move-Item -Path $FileVersion64.TempFile -Destination 'tools/gcompris-qt-win64-gcc.exe' | ||
|
||
$Latest = @{ URL32 = $url32; Checksum32 = $FileVersion32.CHECKSUM; ChecksumType32 = $FileVersion32.ChecksumType; URL64 = $url64; Checksum64 = $FileVersion64.CHECKSUM; ChecksumType64 = $FileVersion64.ChecksumType; Version = $version } | ||
return $Latest | ||
} | ||
|
||
update -ChecksumFor none |