Open caoli5288 opened 2 years ago
This kind of extraction will be simplified when https://github.com/ScoopInstaller/Scoop/pull/3502 is done.
This kind of extraction will be simplified when #3502 is done.
It's outdated and it seems not easy to use
Do you have some more common use cases other than NSIS that use nested archives?
Do you have some more common use cases other than NSIS that use nested archives?
See https://github.com/search?q=org%3AScoopInstaller+Expand-7zipArchive&type=code
This future can help a lot.
The most use cases are NSIS installer (app-32, app-64), others like embedded chrome.7z
or custom extraction actions (e.g., multi-archive, different extracting params, etc.). It may be useful in some cases, we will take into consideration this feature, thanks.
@niheaven Any progress?
Will check it after the upcoming release, sorry for waiting.
I having problem like this one, trying to create a manifest for HyperSQL (database for java) and in zip file there is nasted folder hsqldb-2.7.0/hsqldb/
and as you know "extract_dir": "hsqldb-2.7.0\\hsqldb\\"
not working.
any solution for this one even temporarily is fine thank I'm appreciated it.
Have you tried without the trailing slashes? i.e. "extract_dir": "hsqldb-2.7.0\\hsqldb"
It worked 💪🙏🏻🍻 @rashil2000
Feature Request
Is your feature request related to a problem? Please describe.
Some apps need to write scripts to decompress and move files many times(NSIS apps). This feature is effective to simplify the manifests.
Describe the solution you'd like
Use the symbol
!
as the separator(or any other). An example."extract_to": "app-x64.zip!\\bin"
. It will expandapp-x64.zip
and extract thebin
contains in the archive.Describe alternatives you've considered
Here is an manifest https://github.com/caoli5288/scoop-bucket/blob/master/bucket/yesplaymusic.json. I write script in
pre_install
.It can be simplified to
"extract_dir": "$PLUGINSDIR\\app-64.7z!\\"
. This is just a simple example. This feature can play more roles.