ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
21k stars 1.4k forks source link

[Feature] Allow $version to be specified in 'shortcuts' field. #5996

Closed milnak closed 4 months ago

milnak commented 4 months ago

Feature Request

Is your feature request related to a problem? Please describe.

Currently there's no way to use $version in shortcuts. An app I use has the exe named 'SYNTHTRIBE V2.7.4.exe".

Describe the solution you'd like

Would be nice to have:

"shortcuts": [
    [
        "SYNTHTRIBE V$version.exe",
        "SYNTHTRIBE"
    ]
],

Describe alternatives you've considered

I've worked around this by creating a pre_install that renames '*.exe' to a constant name.

niheaven commented 4 months ago

It could be, please add shortcuts field in autoupdate.

milnak commented 3 months ago

Are you saying that this already should work? If so, I'll try it.

niheaven commented 3 months ago

Yes, it already works now.

milnak commented 3 months ago

Thanks! Verified with:

"autoupdate": {
    "url": ...,
    "extract_dir": ...,
    "shortcuts": [
        [
            "SYNTHTRIBE_$version.exe",
            "SYNTHTRIBE"
        ]
    ]
}