{ "version": "6.0.938.0", "description": "A dynamic mathematics software for education that brings together geometry, algebra, spreadsheets, graphing, statistics and calculus.", "homepage": "https://www.geogebra.org", "license": { "identifier": "Freeware", "url": "https://www.geogebra.org/license" }, "notes": [ "To register file associations, please execute the following command:", "reg import \"$dir\\install-associations.reg\"" ], "url": "https://download.geogebra.org/installers/6.0/GeoGebra-Windows-Portable-6-0-938-0.zip", "hash": "ab52c3aa8620952dcc92a03fc6a59ebab6c15412aaf2407708c69acfce20b282", "post_install": [ "$geogebra_path = $dir -replace '\\\\', '\\\\'", "Get-ChildItem -Path \"$bucketsdir\\$bucket\\scripts\\$app\" -Filter '*.reg' -File | ForEach-Object {", " $content = Get-Content -Path $_.FullName -Encoding ascii", " if ($global) { $content = $content -replace 'HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE' }", " $content -replace '{{geogebra_dir}}', $geogebra_path | Set-Content -Path \"$dir\\$($_.Name)\" -Encoding unicode", "}" ], "bin": [ [ "GeoGebra.exe", "geogebra" ] ], "shortcuts": [ [ "GeoGebra.exe", "GeoGebra\\GeoGebra Classic" ], [ "GeoGebraCalculator.exe", "GeoGebra\\GeoGebra Calculator Suite" ], [ "GeoGebraCAS.exe", "GeoGebra\\GeoGebra CAS Calculator" ], [ "GeoGebraGeometry.exe", "GeoGebra\\GeoGebra Geometry Calculator" ], [ "GeoGebraGraphing.exe", "GeoGebra\\GeoGebra Graphing Calculator" ] ], "uninstaller": { "script": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-associations.reg\" *> $null }" }, "checkver": { "script": [ "$url = 'https://download.geogebra.org/package/win-port6'", "$request = [System.Net.HttpWebRequest]::Create($url)", "$response = $request.GetResponse()", "$response.ResponseUri.AbsoluteUri -match 'Portable-(?[\\d-]+)\\.zip'", "Write-Output ($Matches['dashVersion'] -replace '-', '.')" ], "regex": "([\\d.]+)" }, "autoupdate": { "url": "https://download.geogebra.org/installers/$majorVersion.$minorVersion/GeoGebra-Windows-Portable-$dashVersion.zip" } }