Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions bucket/veracrypt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"version": "1.26.24",
"description": "VeraCrypt is a free open source disk encryption software for Windows, Mac OSX and Linux.",
"homepage": "https://veracrypt.jp/",
"license": {
"identifier": "Apache-2.0",
"url": "https://veracrypt.jp/en/VeraCrypt%20License.html"
},
"architecture": {
"64bit": {
"url": "https://launchpad.net/veracrypt/trunk/1.26.24/+download/VeraCrypt_Setup_x64_1.26.24.msi#/dl.msi_",
"hash": "sha512:29e781f50b6ce3cf7833b79d17ac274287262164a29f32d3a01bda0d7412c2899489a68bd33008af1cab734652ceaf9f50d492c76207ddfcc82f1cc874f395f1"
}
},
"pre_install": [
"Expand-MsiArchive \"$dir\\$fname\" \"$dir\" -ExtractDir 'VeraCrypt' -Removal",
"Remove-Item -Path \"$dir\\VeraCrypt COMReg.exe\" -Force",
"Get-ChildItem -Path \"$dir\\*\" -Include 'veracrypt.sys', 'veracrypt.cat', 'VeraCrypt.exe', 'VeraCryptExpander.exe', 'VeraCrypt Format.exe' | Rename-Item -NewName { $_.BaseName + '-x64' + $_.Extension }",
"'Configuration.xml', 'Default Keyfiles.xml', 'Favorite Volumes.xml', 'History.xml' | ForEach-Object { Copy-Item (Join-Path $persist_dir $_) (Join-Path $dir $_) -ErrorAction SilentlyContinue; Remove-Item (Join-Path $persist_dir $_) -ErrorAction SilentlyContinue }"
],
"bin": [
[
"VeraCrypt-x64.exe",
"veracrypt"
],
[
"VeraCrypt Format-x64.exe",
"veracrypt-format"
]
],
"shortcuts": [
[
"VeraCrypt-x64.exe",
"VeraCrypt"
]
],
"pre_uninstall": [
"ensure \"$persist_dir\" | Out-Null",
"'Configuration.xml', 'Default Keyfiles.xml', 'Favorite Volumes.xml', 'History.xml' | ForEach-Object { Copy-Item (Join-Path $dir $_) (Join-Path $persist_dir $_) -ErrorAction SilentlyContinue }"
],
"checkver": {
"url": "https://veracrypt.io/en/Downloads.html",
"regex": "Latest Stable Release - ([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://launchpad.net/veracrypt/trunk/$version/+download/VeraCrypt_Setup_x64_$version.msi#/dl.msi_",
"hash": {
"url": "https://launchpad.net/veracrypt/trunk/$version/+download/veracrypt-$version-sha512sum.txt",
"find": "$sha512\\s+$basename"
}
}
}
}
Comment on lines +45 to +55
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Fetch the actual sha512sum.txt to verify format matches the expected pattern
curl -sL "https://launchpad.net/veracrypt/trunk/1.26.24/+download/veracrypt-1.26.24-sha512sum.txt" | head -20

Repository: ScoopInstaller/Extras

Length of output: 3366


Fix autoupdate hash extraction: sha512sum.txt does not contain MSI file entries.

The sha512sum.txt file does not list any .msi files. The hash find pattern expects to match $basename (resolving to VeraCrypt_Setup_x64_1.26.24.msi), but the hash file only contains entries for .exe, .AppImage, .rpm, .deb, and documentation files. The autoupdate hash extraction will fail for every version update.

Remove the hash block or verify if Launchpad provides MSI hashes elsewhere.

🤖 Prompt for AI Agents
In bucket/veracrypt.json around lines 45 to 55, the autoupdate hash extraction
is using a sha512sum.txt which does not contain MSI filenames so the current
"find" pattern will never match; remove the "hash" block under the 64bit
architecture (or replace it with a valid source that actually contains MSI
hashes) and either rely on the URL alone for autoupdate or point "hash.url" and
"hash.find" to a file that lists the MSI SHA512 for the MSI basename.

}