ScoopInstaller / Versions

📦 A Scoop bucket for alternative versions of apps.
https://scoop.sh
The Unlicense
182 stars 194 forks source link

[Bug]: odin and odin-dev extraction problem #1778

Open Capella87 opened 4 weeks ago

Capella87 commented 4 weeks ago

Prerequisites

Package Name

odin, odin-dev

Expected/Current Behaviour

Scoop could not find odin.exe during the shim setting in the installation process.

Steps to Reproduce

PS> scoop update odin
Updating Scoop...
Updating Buckets...
Scoop was updated successfully!
odin: 2024-05 -> 2024-06
Updating one outdated app:
Updating 'odin' (2024-05 -> 2024-06)
Downloading new version
Loading odin-windows-amd64-dev-2024-06.zip from cache.
Checking hash of odin-windows-amd64-dev-2024-06.zip ... ok.
Uninstalling 'odin' (2024-05)
Unlinking ~\scoop\apps\odin\current
Installing 'odin' (2024-06) [64bit] from 'versions' bucket
Loading odin-windows-amd64-dev-2024-06.zip from cache.
Extracting odin-windows-amd64-dev-2024-06.zip ... done.
Linking ~\scoop\apps\odin\current => ~\scoop\apps\odin\2024-06
Creating shim for 'odin'.
Get-Command: C:\Users\[redacted]\scoop\apps\scoop\current\lib\install.ps1:783
Line |
 783 |              $bin = (Get-Command $target).Source
     |                      ~~~~~~~~~~~~~~~~~~~
     | The term 'odin.exe' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included,
     | verify that the path is correct and try again.
Can't shim 'odin.exe': File doesn't exist.

Possible Solution

From 2024-06 release, The files inside the archive are now located in the windows_artifacts directory. It is the same as 'odin-nightly'.

Thus, the solution is really simple. Add extract_dir property to each manifest, and set to windows_artifacts.

Scoop and Buckets Version

PS> scoop --version
Current Scoop version:
d337bb1f (HEAD -> master, tag: v0.4.2, origin/master, origin/HEAD) chore(release): Bump to version 0.4.2 (#5964)

'main' bucket:
2c9121843 (HEAD -> master, origin/master, origin/HEAD) red: Update to version 05jun24

'extras' bucket:
de86b88f3 (HEAD -> master, origin/master, origin/HEAD) openvpn-connect@3.2.3.1851: Fix hash (Closes #13402)

'versions' bucket:
5405224af (HEAD -> master, origin/master, origin/HEAD) vlc-nightly: Update to version 20240605

Scoop Config

PS> scoop config

last_update           : 2024-06-05 16:36:25
debug                 : True
aria2-enabled         : True
aria2-warning-enabled : False
use_external_7zip     : True
scoop_branch          : master
scoop_repo            : https://github.com/ScoopInstaller/Scoop

PowerShell Version

PS> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.19045
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