-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add decoder compatibility argument #20687
base: master
Are you sure you want to change the base?
Add decoder compatibility argument #20687
Conversation
@@ -120,6 +120,11 @@ function sevenZipArchive(archive: string, compression: string, files: string[]) | |||
sevenZip.arg('-mx=' + mapSevenZipCompressionLevel(sevenZipCompression)); | |||
} | |||
|
|||
const decoderCompatibility = tl.getInput('decoderCompatibility', false); | |||
if (win && decoderCompatibility && archiveType == '7z') { |
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.
By the PR description, should it be !win
os something else as it's only for linux?
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.
linux uses old version to archive and extract, but windows uses new version decoder for both.
if we archive on windows (new) and extract on linux (old version) it fails.
thus, we provide new param on windows only (new version 7z), old versions (linux) doesn't have this argument
Task name: ArchiveFilesV2
Description: After upgrading 7zip to v2408 the compressed files are not compatible with older versions of 7zip (on linux).
Added new argument to make it compatible with older versions extracting.
Documentation changes required: (Y/N) Y
Added unit tests: (Y/N) N
Attached related issue: (Y/N) Y
Checklist: