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
63 changes: 19 additions & 44 deletions bucket/folding-at-home.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,29 @@
{
"version": "7.6.21",
"version": "8.4.9",
"description": "Distributed computing project focused on disease research",
"homepage": "https://foldingathome.org",
"license": {
"identifier": "Freeware,GPL-3.0-only",
"url": "https://foldingathome.org/support/faq/opensource"
},
"url": "https://download.foldingathome.org/releases/public/release/fah-installer/windows-10-32bit/v7.6/fah-installer_7.6.21_x86.exe#/dl.7z",
"hash": "5fa372861d3219f71e836d37a78174e27ad4f54ce75c13aad548b5d6a92154b0",
"architecture": {
"64bit": {
"url": "https://download.foldingathome.org/releases/public/fah-client/windows-10-64bit/release/fah-client_8.4.9_AMD64.exe#/dl.7z",
"hash": "9664979343247bddf709538e0af5dea7363d835474ff202aa96c5a40b9718a99"
}
},
"pre_install": [
"Remove-Item \"$dir\\`$*\", \"$dir\\Uninstall*\" -Force -Recurse | Out-Null",
"'log.txt', 'GPUs.txt' | ForEach-Object {",
" if (!(Test-Path \"$persist_dir\\$_\") ) { New-Item \"$dir\\$_\" | Out-Null }",
"$null = Remove-Item -Path \"$dir\\`$*\", \"$dir\\Uninstall*\" -Force -Recurse",
"'log.txt', 'GPUs.txt' | ForEach-Object -Process {",
" if (-not (Test-Path -Path \"$persist_dir\\$_\") ) { $null = New-Item -Path \"$dir\\$_\" }",
"}",
"if (!(Test-Path \"$persist_dir\\config.xml\") ) { Set-Content \"$dir\\config.xml\" '<config></config>' -Encoding Ascii }"
"if (-not (Test-Path \"$persist_dir\\config.xml\") ) { Set-Content -Path \"$dir\\config.xml\" -Value '<config></config>' -Encoding Ascii }"
],
"bin": "FAHClient.exe",
"shortcuts": [
[
"FAHClient.exe",
"Folding@home"
],
[
"FAHControl.exe",
"FAHControl"
],
[
"FAHViewer.exe",
"FAHViewer"
]
],
"persist": [
Expand All @@ -40,36 +36,15 @@
"config.xml"
],
"checkver": {
"script": [
"$url1 = 'https://download.foldingathome.org/releases/public/release/fah-installer/windows-10-32bit'",
"$links = $(Invoke-WebRequest($url1)).Links",
"$major_version = 0",
"$minor_version = 0",
"$links | ForEach-Object {",
" # not using [\\d.] here because '.' and '..' will be matched",
" if(!($_.outerHTML -match '(\\d+)\\.(\\d+)')) { return }",
" # Convert to int because '9' is greater than '10' in Powershell's string comparison",
" $m1 = [int]$matches[1]",
" $m2 = [int]$matches[2]",
" if ( ($m1 -gt $major_version) -or ($m1 -eq $major_version -and $m2 -gt $minor_version) ) {",
" $major_version = $m1",
" $minor_version = $m2",
" }",
"}",
"",
"$url2 = \"$url1/v$major_version.$minor_version\"",
"$links = $(Invoke-WebRequest($url2)).Links",
"$patch_version = 0",
"$links | ForEach-Object {",
" if(!($_.outerHTML -match 'fah-installer_(\\d+)\\.(\\d+)\\.(\\d+)_x86\\.exe')) { return }",
" $m3 = [int]$matches[3]",
" if ($m3 -gt $patch_version) { $patch_version = $m3 }",
"}",
"Write-Output \"$major_version.$minor_version.$patch_version\""
],
"regex": "(.*)"
"url": "https://download.foldingathome.org/releases/public/fah-client/windows-10-64bit/release/",
"regex": "_([\\d.]+)_",
"reverse": true
},
"autoupdate": {
"url": "https://download.foldingathome.org/releases/public/release/fah-installer/windows-10-32bit/v$majorVersion.$minorVersion/fah-installer_$version_x86.exe#/dl.7z"
"architecture": {
"64bit": {
"url": "https://download.foldingathome.org/releases/public/fah-client/windows-10-64bit/release/fah-client_$version_AMD64.exe#/dl.7z"
}
}
}
}