okibcn / ScoopMaster

Scoop Meta-bucket with all the apps in Scoop, always updated. One bucket for all your needs with the latest version of every app.
https://github.com/okibcn/ScoopMaster
The Unlicense
102 stars 8 forks source link

[Bug]: Wrong `extract_dir` for Mercury #53

Closed loustact closed 5 months ago

loustact commented 5 months ago

Prerequisites

Package Name

Mercury

Expected/Current Behaviour

Well, Mercury should install fine, but the manifest can't find a directory.

Steps to Reproduce

scoop install .SM/Mercury
Installing 'Mercury' (121.0.2) [64bit] from .SM bucket
mercury_121.0.2_win64_AVX.zip (80.5 MB) [=====================================================================] 100%
Checking hash of mercury_121.0.2_win64_AVX.zip ... ok.
Extracting mercury_121.0.2_win64_AVX.zip ... Exception: C:\Users\migse\scoop\apps\scoop\current\lib\core.ps1:638
Line |
 638 |          throw "Could not find '$(fname $from)'! (error $($proc.ExitCo …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Could not find 'mercury'! (error 16)

Possible Solution

The 2 extract_dir of the manifest should omit _AVX. Which makes it into: "mercury_121.0.2_win64\\mercury" for the current release and "mercury_$version_win64\\mercury" for autopdate.

Scoop and Buckets Version

scoop --version
Current Scoop version:
v0.3.1 - Released at 2022-11-15

'.SM' bucket:
cb389aaa7f (HEAD -> master, origin/master, origin/HEAD) Update timestamp 2024-01-12T12:59:37Z

'extras' bucket:
9f431d9b2 (HEAD -> master, origin/master, origin/HEAD) nswagstudio: Update to version 14.0.1

'games' bucket:
653548df4 (HEAD -> master, origin/master, origin/HEAD) pcsx2-dev: Update to version 1.7.5445

'java' bucket:
f7e9f5ec (HEAD -> master, origin/master, origin/HEAD) temurin17-nightly-jre: Update to version 17.0.10-6.0.202401071213

'lemon' bucket:
5d8e8bb4 (HEAD -> master, origin/master, origin/HEAD) greptime: Update to version 0.6.0

'locket' bucket:
98f32bd (HEAD -> master, origin/master, origin/HEAD) Mercury: Forgot to fix 'extract_dir' in autoupdate

'main' bucket:
e99232ca1 (HEAD -> master, origin/master, origin/HEAD) refreshenv: Update to version 1.7.1

'nerd-fonts' bucket:
204c4b2 (HEAD -> master, origin/master, origin/HEAD) GlowSansTC-Compressed: Update to version 0.93

'nonportable' bucket:
d1c8ecf (HEAD -> master, origin/master, origin/HEAD) 10x-np: Update to version 1.0.116

'versions' bucket:
c763bb43f (HEAD -> master, origin/master, origin/HEAD) gn: Update to version YBI5wE

Scoop Config

scoop config

last_update           scoop_repo                              scoop_branch
-----------           ----------                              ------------
12/01/2024 9:14:50 pm https://github.com/ScoopInstaller/Scoop master

PowerShell Version

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

loustact commented 5 months ago

Fixed in 6ddc2a6