mirror of
https://github.com/ScoopInstaller/Versions.git
synced 2026-08-02 20:40:26 +08:00
105 lines
4.1 KiB
JSON
105 lines
4.1 KiB
JSON
{
|
|
"version": "3.2.0-RC3",
|
|
"description": "GNU Image Manipulation Program",
|
|
"homepage": "https://www.gimp.org",
|
|
"license": "GPL-3.0-only",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://download.gimp.org/mirror/pub/gimp/v3.2/windows/gimp-3.2.0-RC3-setup.exe",
|
|
"hash": "98a28f2b2606c60aa689be6c733bf1e157f1391e34ba901f9de1cdde913e0047"
|
|
},
|
|
"arm64": {
|
|
"url": "https://download.gimp.org/mirror/pub/gimp/v3.2/windows/gimp-3.2.0-RC3-setup.exe",
|
|
"hash": "98a28f2b2606c60aa689be6c733bf1e157f1391e34ba901f9de1cdde913e0047"
|
|
}
|
|
},
|
|
"installer": {
|
|
"script": [
|
|
"Expand-InnoArchive -Path \"$dir\\$fname\"",
|
|
"Invoke-ExternalCommand -FilePath (Get-HelperPath -Helper Innounp) -ArgumentList '-x', \"$dir\\$fname\", \"-d$dir\", 'install_script.iss' -LogPath \"$dir\\innounp-iss.log\" | Out-Null",
|
|
"$installScript = Get-Content -Path \"$dir\\install_script.iss\" -Raw",
|
|
"$pattern = 'Source: \"(?<Source>\\{app\\}\\\\[^\"]*?)\"(?:; DestDir: \"(?<DestDir>[^\"]*?)\")?(?:; DestName: \"(?<DestName>[^\"]*?)\")?; Components: (?<Components>[^;]+)'",
|
|
"$matches = [regex]::Matches($installScript, $pattern)",
|
|
"foreach ($match in $matches) {",
|
|
" $source = $match.Groups['Source'].Value -replace '{app}', $dir",
|
|
" $destDir = $match.Groups['DestDir'].Value -replace '{app}', $dir",
|
|
" $destName = $match.Groups['DestName'].Value",
|
|
" $components = $match.Groups['Components'].Value",
|
|
" $is64bitComponent = $components -match 'X64'",
|
|
" $isArm64Component = $components -match 'ARM64'",
|
|
" $isArchitectureIncompatible = if ($architecture -eq '64bit') {",
|
|
" -not $is64bitComponent -and $isArm64Component",
|
|
" } else {",
|
|
" -not $isArm64Component -and $is64bitComponent",
|
|
" }",
|
|
" if ($isArchitectureIncompatible) {",
|
|
" Remove-Item -Path $source -Force",
|
|
" continue",
|
|
" }",
|
|
" if (-not $destDir) { $destDir = $source }",
|
|
" if (-not $destName) { $destName = Split-Path -Path $source -Leaf }",
|
|
" $destPath = Join-Path -Path $destDir -ChildPath $destName",
|
|
" if ($source -ne $destPath) {",
|
|
" Move-Item -Path $source -Destination $destPath -Force",
|
|
" }",
|
|
"}",
|
|
"Remove-Item -Path \"$dir\\$fname\" -Force",
|
|
"Remove-Item -Path \"$dir\\install_script.iss\" -Force"
|
|
]
|
|
},
|
|
"bin": [
|
|
"bin\\gimp-console-3.2.exe",
|
|
[
|
|
"bin\\gimp-console-3.2.exe",
|
|
"gimp-console"
|
|
],
|
|
[
|
|
"bin\\gimp-console-3.2.exe",
|
|
"gimp"
|
|
],
|
|
"bin\\gimptool-3.2.exe",
|
|
[
|
|
"bin\\gimptool-3.2.exe",
|
|
"gimptool"
|
|
]
|
|
],
|
|
"shortcuts": [
|
|
[
|
|
"bin\\gimp-3.2.exe",
|
|
"GIMP Development Version"
|
|
]
|
|
],
|
|
"checkver": {
|
|
"url": "https://testing.gimp.org/downloads/devel/",
|
|
"regex": "The current development release of GIMP is \\<b\\>([\\w.-]+)"
|
|
},
|
|
"autoupdate": {
|
|
"url": "https://download.gimp.org/mirror/pub/gimp/v$majorVersion.$minorVersion/windows/gimp-$matchHead$matchTail-setup.exe",
|
|
"hash": {
|
|
"url": "$baseurl/SHA256SUMS"
|
|
},
|
|
"bin": [
|
|
"bin\\gimp-console-$majorVersion.$minorVersion.exe",
|
|
[
|
|
"bin\\gimp-console-$majorVersion.$minorVersion.exe",
|
|
"gimp-console"
|
|
],
|
|
[
|
|
"bin\\gimp-console-$majorVersion.$minorVersion.exe",
|
|
"gimp"
|
|
],
|
|
"bin\\gimptool-$majorVersion.$minorVersion.exe",
|
|
[
|
|
"bin\\gimptool-$majorVersion.$minorVersion.exe",
|
|
"gimptool"
|
|
]
|
|
],
|
|
"shortcuts": [
|
|
[
|
|
"bin\\gimp-$majorVersion.$minorVersion.exe",
|
|
"GIMP Development Version"
|
|
]
|
|
]
|
|
}
|
|
}
|