Skip to content
Merged
Show file tree
Hide file tree
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: 44 additions & 12 deletions bucket/foxit-pdf-reader.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,67 @@
{
"##": "Using cdn78.foxitsoftware.com for better speed worldwide. Please keep foxit-reader and foxit-pdf-reader in sync.",
"version": "2025.1.0",
"version": "2025.2.1",
"description": "Fast and feature rich PDF reader that offers a delightful reading experience.",
"homepage": "https://www.foxit.com/pdf-reader/",
"license": {
"identifier": "Freeware",
"url": "https://www.foxit.com/pdf-editor/eula.html"
},
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/2025.1.0/FoxitPDFReader20251_enu_Setup_Prom.exe",
"hash": "c85f927712ab6bbe2076a806d4a6bd2503bd25f552b2868d9f37ac0892b53a27",
"architecture": {
"64bit": {
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/2025.2.1/FoxitPDFReader202521_L10N_Setup_Prom_x64.exe",
"hash": "f72daae81be3e848ebaf0c0bf70e4030e4a266ea0f6f232f08f30324971cbc6c"
},
"32bit": {
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/2025.2.1/FoxitPDFReader202521_L10N_Setup_Prom_x86.exe",
"hash": "a0bfc28ca7bfcb93bf1a9ef92e497ec6b93f0e2614cdf7dafa5106bb2be7de59"
}
},
"installer": {
"script": [
"# Lessmsi cannot handle .msp patches correctly in this case. So we use msiexec to extract the files.",
"Expand-7zipArchive \"$dir\\$fname\" \"$dir\\msi\" -ExtractDir '.rsrc\\1033\\PAYLOAD' -Removal",
"$succ = Invoke-ExternalCommand msiexec -ArgumentList @('/a', \"$dir\\msi\\500\", '/p', \"$dir\\msi\\700\", '/qn', \"TARGETDIR=$dir\\extracted\") -LogPath \"$dir\\install.log\"",
"if(-not $succ) {",
" error \"Failed to extract files from `\"$dir\\msi`\".`nLog file:`n $(friendly_path `\"$dir\\install.log`\")`n$(new_issue_msg $app $bucket 'decompress error')\"",
" break",
"}",
"Move-Item \"$dir\\extracted\\Foxit Software\\Foxit PDF Reader\\*\" \"$dir\"",
"Remove-Item \"$dir\\msi\", \"$dir\\extracted\", \"$dir\\install.log\" -Force -Recurse"
]
},
"bin": "FoxitPDFReader.exe",
"shortcuts": [
[
"FoxitPDFReader.exe",
"Foxit PDF Reader"
]
],
"innosetup": true,
"checkver": {
"script": [
"$url = 'https://www.foxit.com/downloads/latest.html?product=Foxit-Reader&platform=Windows&version=&package_type=&language=English&distID='",
"if ($PSVersionTable.PSVersion.Major -lt 7.0) {",
" $req = Invoke-WebRequest -Uri $url -MaximumRedirection 0 -ErrorAction SilentlyContinue",
"} else {",
" $req = Invoke-WebRequest -Uri $url -MaximumRedirection 0 -ErrorAction SilentlyContinue -SkipHttpErrorCheck",
"$output = @()",
"'64', '32' | ForEach-Object {",
" $req = $null",
" $url = \"https://www.foxit.com/downloads/latest.html?product=Foxit-Reader&platform=Windows&operating_type=$_&package_type=exe&language=ML\"",
" if ($PSVersionTable.PSVersion.Major -lt 7.0) {",
" $req = Invoke-WebRequest -Uri $url -MaximumRedirection 0 -ErrorAction SilentlyContinue",
" } else {",
" $req = Invoke-WebRequest -Uri $url -MaximumRedirection 0 -ErrorAction SilentlyContinue -SkipHttpErrorCheck",
" }",
" $output += [string]($req.Headers.Location)",
"}",
"Write-Output $req.Headers.Location"
"Write-Output ($output -join ', ')"
],
"regex": "/win/(?<version>[\\d.]+)/(?<fname>FoxitPDFReader.*exe)$"
"regex": "/win/(?<version>[\\d.]+)/(?<fname64>FoxitPDFReader.*\\.exe), .*/win/\\k<version>/(?<fname32>FoxitPDFReader.*\\.exe)"
},
"autoupdate": {
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/$version/$matchFname"
"architecture": {
"64bit": {
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/$version/$matchFname64"
},
"32bit": {
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/$version/$matchFname32"
}
}
}
}
56 changes: 44 additions & 12 deletions bucket/foxit-reader.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,67 @@
{
"##": "Using cdn78.foxitsoftware.com for better speed worldwide. Please keep foxit-reader and foxit-pdf-reader in sync.",
"version": "2025.1.0",
"version": "2025.2.1",
"description": "Fast and feature rich PDF reader that offers a delightful reading experience.",
"homepage": "https://www.foxit.com/pdf-reader/",
"license": {
"identifier": "Freeware",
"url": "https://www.foxit.com/pdf-editor/eula.html"
},
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/2025.1.0/FoxitPDFReader20251_enu_Setup_Prom.exe",
"hash": "c85f927712ab6bbe2076a806d4a6bd2503bd25f552b2868d9f37ac0892b53a27",
"architecture": {
"64bit": {
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/2025.2.1/FoxitPDFReader202521_L10N_Setup_Prom_x64.exe",
"hash": "f72daae81be3e848ebaf0c0bf70e4030e4a266ea0f6f232f08f30324971cbc6c"
},
"32bit": {
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/2025.2.1/FoxitPDFReader202521_L10N_Setup_Prom_x86.exe",
"hash": "a0bfc28ca7bfcb93bf1a9ef92e497ec6b93f0e2614cdf7dafa5106bb2be7de59"
}
},
"installer": {
"script": [
"# Lessmsi cannot handle .msp patches correctly in this case. So we use msiexec to extract the files.",
"Expand-7zipArchive \"$dir\\$fname\" \"$dir\\msi\" -ExtractDir '.rsrc\\1033\\PAYLOAD' -Removal",
"$succ = Invoke-ExternalCommand msiexec -ArgumentList @('/a', \"$dir\\msi\\500\", '/p', \"$dir\\msi\\700\", '/qn', \"TARGETDIR=$dir\\extracted\") -LogPath \"$dir\\install.log\"",
Copy link
Member

Choose a reason for hiding this comment

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

Temporary workaround. Needs updating when the next version is released.

"if(-not $succ) {",
" error \"Failed to extract files from `\"$dir\\msi`\".`nLog file:`n $(friendly_path `\"$dir\\install.log`\")`n$(new_issue_msg $app $bucket 'decompress error')\"",
" break",
"}",
"Move-Item \"$dir\\extracted\\Foxit Software\\Foxit PDF Reader\\*\" \"$dir\"",
"Remove-Item \"$dir\\msi\", \"$dir\\extracted\", \"$dir\\install.log\" -Force -Recurse"
]
},
"bin": "FoxitPDFReader.exe",
"shortcuts": [
[
"FoxitPDFReader.exe",
"Foxit PDF Reader"
]
],
"innosetup": true,
"checkver": {
"script": [
"$url = 'https://www.foxit.com/downloads/latest.html?product=Foxit-Reader&platform=Windows&version=&package_type=&language=English&distID='",
"if ($PSVersionTable.PSVersion.Major -lt 7.0) {",
" $req = Invoke-WebRequest -Uri $url -MaximumRedirection 0 -ErrorAction SilentlyContinue",
"} else {",
" $req = Invoke-WebRequest -Uri $url -MaximumRedirection 0 -ErrorAction SilentlyContinue -SkipHttpErrorCheck",
"$output = @()",
"'64', '32' | ForEach-Object {",
" $req = $null",
" $url = \"https://www.foxit.com/downloads/latest.html?product=Foxit-Reader&platform=Windows&operating_type=$_&package_type=exe&language=ML\"",
" if ($PSVersionTable.PSVersion.Major -lt 7.0) {",
" $req = Invoke-WebRequest -Uri $url -MaximumRedirection 0 -ErrorAction SilentlyContinue",
" } else {",
" $req = Invoke-WebRequest -Uri $url -MaximumRedirection 0 -ErrorAction SilentlyContinue -SkipHttpErrorCheck",
" }",
" $output += [string]($req.Headers.Location)",
"}",
"Write-Output $req.Headers.Location"
"Write-Output ($output -join ', ')"
],
"regex": "/win/(?<version>[\\d.]+)/(?<fname>FoxitPDFReader.*exe)$"
"regex": "/win/(?<version>[\\d.]+)/(?<fname64>FoxitPDFReader.*\\.exe), .*/win/\\k<version>/(?<fname32>FoxitPDFReader.*\\.exe)"
},
"autoupdate": {
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/$version/$matchFname"
"architecture": {
"64bit": {
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/$version/$matchFname64"
},
"32bit": {
"url": "https://cdn78.foxitsoftware.com/product/reader/desktop/win/$version/$matchFname32"
}
}
}
}