Silent extraction

This commit is contained in:
Thomas Krijnen
2026-05-08 20:18:31 +02:00
parent e7249fe934
commit 12935c83de
4 changed files with 18 additions and 38 deletions
-29
View File
@@ -1,29 +0,0 @@
7-Zip Command line version
~~~~~~~~~~~~~~~~~~~~~~~~~~
License for use and distribution
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7-Zip Copyright (C) 1999-2010 Igor Pavlov.
7za.exe is distributed under the GNU LGPL license
Notes:
You can use 7-Zip on any computer, including a computer in a commercial
organization. You don't need to register or pay for 7-Zip.
GNU LGPL information
--------------------
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You can receive a copy of the GNU Lesser General Public License from
http://www.gnu.org/
+4 -1
View File
@@ -141,7 +141,10 @@ function extract_file {
return
}
. $cecho 0 13 "Extracting $dependency_name into '$destination_dir' from '$filename'."
7za x "$filename" -o"$destination_dir"
7z x -bso0 -bsp0 "$filename" -o"$destination_dir"
if ($LASTEXITCODE -ne 0) {
throw "Failed to extract '$filename' for '$dependency_name' with 7z exit code $LASTEXITCODE."
}
}