-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor function names and fix installing 7zip locally if already globally available #3416
Conversation
7zip_path -> Get-7zipPath 7zip_installed -> Test-7zipInstalled Expand-7ZipArchive -> Expand-7zipArchive Test-7ZipRequirement -> Test-7zipRequirement Expand-MSIArchive -> Expand-MsiArchive Test-LessMSIRequirement -> Test-LessmsiRequirement
aria2_path > Get-Aria2Path aria2_installed > Test-Aria2Installed aria2_enabled > Test-Aria2Enabled
…g dependency Prevents installing 7zip/lessmsi/innounp locally if they are already available globally
Consider PS. I could test it tomorrow~ |
Since these are essential for Scoop to work, I would rather not use external versions because these can cause issues. Older 7zip versions have already caused some issues. |
Okay, got it. Since |
& (Get-7zipPath) x "$Path" -o"$DestinationPath" (-split $Switches) -y | Out-File $LogLocation Above cmd works, and I suggest changing them so, for further scoop refactoring. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- The main bucket of Scoop has been separated to https://github.com/ScoopInstaller/Main - Requires PowerShell 5 and newer #3330 - Improve and refactor decompression functions #3204 #3409 #3411 - Move scoop config from `~\.scoop` to `~\.config\scoop\config.json` #3242 - Add `scoop hold` and `scoop unhold` for excluding programs from updates #3444 - Refactored some Core functions #3314 #3416 - Small fix for starting processes on Windows 7 #3415 Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com> Co-authored-by: Chawye Hsu <h404bi@outlook.com> Co-authored-by: Jakub Čábera <cabera.jakub@gmail.com>
Fixes:
Additions:
Get-HelperPath
Test-HelperInstalled
Get-LessmsiPath
Get-HelperPath -Helper Lessmsi
Test-LessmsiInstalled
Test-HelperInstalled -Helper Lessmsi
Get-InnounpPath
Get-HelperPath -Helper Innounp
Test-InnounpInstalled
Test-HelperInstalled -Helper Innounp
Get-HelperPath -Helper Dark
Test-HelperInstalled -Helper Dark
Added tests for:
Get-AppFilePath
Get-HelperPath
Test-HelperInstalled
Test-Aria2Enabled
Test-CommandAvailable
Refactors:
aria2_path
>Get-HelperPath -Helper Aria2
aria2_installed
>Test-HelperInstalled -Helper Aria2
aria2_enabled
>Test-Aria2Enabled
7zip_path
>Get-HelperPath -Helper 7zip
7zip_installed
>Test-HelperInstalled -Helper 7zip
Expand-7ZipArchive
>Expand-7zipArchive
Test-7ZipRequirement
>Test-7zipRequirement
Expand-MSIArchive
>Expand-MsiArchive
Test-LessMSIRequirement
>Test-LessmsiRequirement
file_path
>Get-AppFilePath