decompress.ps1: Refactored (w/ install.ps1, core.ps1) (edited)#3169
decompress.ps1: Refactored (w/ install.ps1, core.ps1) (edited)#3169r15ch13 merged 2 commits intoScoopInstaller:masterfrom
Conversation
|
I would rather see 3 PRs for each list item (instead of 1 huge) in small iteration windows. This increase error domain and could be hard to debug. So:
|
c86ed93 to
b421879
Compare
b421879 to
b98d8ac
Compare
|
Working and ready for merge? Can't test right now. |
|
I am not sure if this change do not break installation of new scoop. Since only core is downloaded and extract_zip is called (https://github.com/lukesampson/scoop/blob/master/bin/install.ps1#L49) @niheaven Have you tested installation? |
|
These "hacks" and continuality thinking about not breaking installation will not be needed when bucket extraction and standalone installer (https://github.com/scoopinstaller/install) is done and is not dependent on scoop's core implementation. |
|
@Ash258 @r15ch13 Fully tested with last commit. Replace This PR can be tested by the following code: test-scoop/bin/install.ps1 is a modified install script that redirect to PR's branch, and I've test above code with Unicode path ( Please remember to restore scoop config and env values after test. |
|
LGTM. By static code review. Will fully test it in few minutes, after i arrive home. |
|
The new scoop installer uses the same method that I used here, and Expand-Archive for PS 5+, too. |
|
@Ash258 Does the test be passed? |
|
Tested basic scoop installation, manifest installation / updating. |
EDITED: Split PR, PART I
decompress.ps1)extract_zipandunzip_oldfromcore.ps1unpack_inno,extract_msi,lessmsi_configandextract_lessmsifrominstall.ps1unzip_oldtest fromScoop-Core.Tests.ps1toScoop-Decompress.Tests.ps1Thanks for @Ash258 #3149, this could be part of it.