anderlli0053 / DEV-tools

📦 General development tools for applications and games and pretty much everything else too :) . Created and maintained by Andrew Poženel - anderlli0053 . 📦
https://andrew-pozenel.xyz/
The Unlicense
113 stars 21 forks source link

Your bucket cannot be found in https://scoop.sh/#/buckets #128

Closed dong-lufei closed 1 year ago

dong-lufei commented 1 year ago

Is it because there is something wrong?


$ scoop search "hbuilderx"
Split-Path: D:\scoop_user_apps\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
  30 |          $fname = Split-Path $exe -Leaf -ErrorAction Stop
     |                              ~~~~
     | Cannot bind argument to parameter 'Path' because it is null.
Split-Path: D:\scoop_user_apps\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
  30 |          $fname = Split-Path $exe -Leaf -ErrorAction Stop
     |                              ~~~~
     | Cannot bind argument to parameter 'Path' because it is null.
WARN  Error parsing JSON at D:\scoop_user_apps\buckets\dev-tools\bucket\UltraSearch.json.
dong-lufei commented 1 year ago

UltraSearch.json

{
    "homepage": "https://www.jam-software.com/ultrasearch",
    "license": "Proprietary",
    "version": "3.4",
    "architecture": {
        "64bit": {
            "url": "https://downloads.jam-software.de/ultrasearch/UltraSearch-x64.zip",
            "hash": "328b0f22759ecfa728235af45ee7653291d74c99301aa2bd1cf6356673cdfed6"
        }
    },
    "bin": "UltraSearch.exe",
    "shortcuts": [
        [
            "UltraSearch.exe",
            "UltraSearch"
        ]
    ],
    "persist": "Settings.xml",
    "checkver": {
        "url": "https://www.jam-software.com/ultrasearch/changes.shtml",
        "regex": "Version ([\\d.]+)</h3>"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://downloads.jam-software.de/ultrasearch/UltraSearch-x64.zip"
        }
    }
}

should be

{
    "homepage": "https://www.jam-software.com/ultrasearch",
    "license": "Proprietary",
    "version": "3.4",
    "architecture": {
        "64bit": {
            "url": "https://downloads.jam-software.de/ultrasearch/UltraSearch-x64.zip",
            "hash": "328b0f22759ecfa728235af45ee7653291d74c99301aa2bd1cf6356673cdfed6"
        }
    },
    "bin": "UltraSearch.exe",
    "shortcuts": [["UltraSearch.exe", "UltraSearch"]],
    "persist": "Settings.xml",
    "checkver": {
        "url": "https://www.jam-software.com/ultrasearch/changes.shtml",
        "regex": "Version ([\\d.]+)</h3>"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://downloads.jam-software.de/ultrasearch/UltraSearch-x64.zip"
            }
        }
    }
}

There is one missing "{}" at the end

anderlli0053 commented 1 year ago

Is it because there is something wrong?


$ scoop search "hbuilderx"
Split-Path: D:\scoop_user_apps\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
  30 |          $fname = Split-Path $exe -Leaf -ErrorAction Stop
     |                              ~~~~
     | Cannot bind argument to parameter 'Path' because it is null.
Split-Path: D:\scoop_user_apps\apps\scoop\current\libexec\scoop-search.ps1:30
Line |
  30 |          $fname = Split-Path $exe -Leaf -ErrorAction Stop
     |                              ~~~~
     | Cannot bind argument to parameter 'Path' because it is null.
WARN  Error parsing JSON at D:\scoop_user_apps\buckets\dev-tools\bucket\UltraSearch.json.

Refer to this https://github.com/ScoopInstaller/Scoop/discussions/5440