diff --git a/bucket/nelson-np.json b/bucket/nelson-np.json new file mode 100644 index 000000000..60e466912 --- /dev/null +++ b/bucket/nelson-np.json @@ -0,0 +1,50 @@ +{ + "version": "1.16.0.5575", + "homepage": "https://nelson-lang.github.io/nelson-website/", + "description": "An open-source numerical computing language that provides engineers, scientists, and students with a powerful yet intuitive environment for technical computing.", + "license": { + "identifier": "LGPL-3.0-or-later", + "url": "https://github.com/nelson-lang/nelson/blob/HEAD/LICENSE" + }, + "architecture": { + "64bit": { + "url": "https://github.com/nelson-lang/nelson/releases/download/v1.16.0/Nelson-1.16.0.5575-x86-64.exe", + "hash": "539e5dc2e357543733a1371ccaf3b2ca1d03b57fddc94ae9e66c7890850e02cc" + }, + "arm64": { + "url": "https://github.com/nelson-lang/nelson/releases/download/v1.16.0/Nelson-1.16.0.5575-ARM64.exe", + "hash": "ee1042346a3c1ac06003313b83e794180509067c19bec6681e71486fd19d539f" + } + }, + "pre_install": "if (-not (is_admin)) { abort \"`n[ERROR] $app requires admin rights to $cmd.\" }", + "installer": { + "script": [ + "$args_list = @('/SP-', \"/DIR=$dir\", '/VERYSILENT', '/SUPPRESSMSGBOXES')", + "Start-Process -FilePath \"$dir\\$fname\" -ArgumentList $args_list -WindowStyle 'Hidden' -Wait", + "Remove-Item -Path \"$dir\\$fname\" -Force -ErrorAction SilentlyContinue" + ] + }, + "pre_uninstall": "if (-not (is_admin)) { abort \"`n[ERROR] $app requires admin rights to $cmd.\" }", + "uninstaller": { + "script": [ + "$args_list = @('/VERYSILENT', '/SUPPRESSMSGBOXES')", + "Start-Process -FilePath \"$dir\\unins000.exe\" -ArgumentList $args_list -WindowStyle 'Hidden' -Wait", + "Start-Sleep -Seconds 3" + ] + }, + "checkver": { + "url": "https://api.github.com/repositories/77338134/releases/latest", + "jsonpath": "$.assets[?(@.name =~ /Nelson/i)].browser_download_url", + "regex": "(?i)download/(?[^/]+)/Nelson-([\\d.]+)" + }, + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/nelson-lang/nelson/releases/download/$matchTag/Nelson-$version-x86-64.exe" + }, + "arm64": { + "url": "https://github.com/nelson-lang/nelson/releases/download/$matchTag/Nelson-$version-ARM64.exe" + } + } + } +}