You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched all issues/PRs to ensure it has not already been reported or fixed.
I have verified that I am using the latest version of Scoop and corresponding bucket.
Package Name
v2rayn-pre
Expected/Current Behaviour
When installing, the Xray binaries can't be hard-linked because the zip file for v6.57 doesn't contain the empty Xray folder anymore.
Additionally, the uninstallation script is no longer necessary because we already persist the entire guiConfigs folder. It will trigger an error instead.
Steps to Reproduce
PS> scoop install v2rayn-preInstalling 'v2rayn-pre' (6.57) [64bit] from 'versions' bucketLoading v2rayN.zip from cacheChecking hash of v2rayN.zip ... ok.Extracting v2rayN.zip ... done.Running pre_install script...Creating hardlink for wxray.exeNew-Item : The system cannot find the path specified.At line:6 char:13+ New-Item -ItemType HardLink -Path "$dir\bin\Xray" -Name $ ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-Item], Win32Exception + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.NewItemCommandCreating hardlink for xray.exeNew-Item : The system cannot find the path specified.At line:6 char:13+ New-Item -ItemType HardLink -Path "$dir\bin\Xray" -Name $ ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-Item], Win32Exception + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.NewItemCommandCreating hardlink for geoip.datNew-Item : The system cannot find the path specified.At line:6 char:13+ New-Item -ItemType HardLink -Path "$dir\bin\Xray" -Name $ ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-Item], Win32Exception + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.NewItemCommandCreating hardlink for geosite.datAt line:6 char:13+ New-Item -ItemType HardLink -Path "$dir\bin\Xray" -Name $ ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-Item], Win32Exception + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.NewItemCommanddone.Linking ~\scoop\apps\v2rayn-pre\current => ~\scoop\apps\v2rayn-pre\6.57Creating shim for 'v2rayN'.Making ~\scoop\shims\v2rayn.exe a GUI binary.Creating shortcut for v2rayN (v2rayN.exe)Persisting guiConfigs'v2rayn-pre' (6.57) was installed successfully!'v2rayn-pre' suggests installing 'extras/windowsdesktop-runtime-lts'.'v2rayn-pre' suggests installing 'v2ray'.################################################################################PS> scoop uninstall v2rayn-preUninstalling 'v2rayn-pre' (6.57).Running uninstaller script...Copy-Item : The process cannot access the file '~\scoop\persist\v2rayn-pre\guiConfigs\config.json' because it is being used by another process.At line:2 char:5+ Copy-Item "$dir\guiConfigs\config.json" "$persist_dir\guiConfigs\ ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Copy-Item], IOException + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.CopyItemCommanddone.Removing shim 'v2rayN.shim'.Removing shim 'v2rayN.exe'.Removing shortcut ~\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Scoop Apps\v2rayN.lnkUnlinking ~\scoop\apps\v2rayn-pre\current'v2rayn-pre' was uninstalled.
Possible Solution
For the installation script, create the Xray folder if it's absent.
Prerequisites
Package Name
v2rayn-pre
Expected/Current Behaviour
When installing, the Xray binaries can't be hard-linked because the zip file for v6.57 doesn't contain the empty
Xray
folder anymore.Additionally, the uninstallation script is no longer necessary because we already persist the entire
guiConfigs
folder. It will trigger an error instead.Steps to Reproduce
Possible Solution
For the installation script, create the
Xray
folder if it's absent.For the uninstallation script, remove it like ScoopInstaller/Extras#12503.
Scoop and Buckets Version
# Not related
Scoop Config
# Not related
PowerShell Version
# Not related
Additional Softwares
No response
The text was updated successfully, but these errors were encountered: