diff --git a/7x.sh b/7x.sh index 2da7630..a4ab5d9 100755 --- a/7x.sh +++ b/7x.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash -sz_program=${SZA_PATH:-7za} -sz_type=${SZA_ARCHIVE_TYPE:-xz} +sz_program=${SZ_PATH:-7zz} +sz_type=${SZ_ARCHIVE_TYPE:-xz} case $1 in -d) "$sz_program" e -si -so -t${sz_type} ;; - *) "$sz_program" a f -si -so -t${sz_type} -mx${SZA_COMPRESSION_LEVEL:-9} ;; + *) "$sz_program" a f -si -so -t${sz_type} -mx${SZ_COMPRESSION_LEVEL:-9} ;; esac 2> /dev/null \ No newline at end of file diff --git a/README.md b/README.md index 3c23640..e0e3151 100644 --- a/README.md +++ b/README.md @@ -1 +1,78 @@ -7-Zip precompiled binaries. \ No newline at end of file +7-Zip precompiled binaries. +Current version: 24.08 +Downloaded from https://www.7-zip.org/download.html + +Use `USE_SYSTEM_7Z` to use system 7za instead of binaries in repo. +Use `SZ_COMPRESSION_LEVEL` for setting compression level in 7x.sh + +Flags: +``` +mac/arm64/7zz -h update-7zip + +7-Zip (z) 24.08 (arm64) : Copyright (c) 1999-2024 Igor Pavlov : 2024-08-11 + 64-bit arm_v:8.5-A locale=en_US.UTF-8 Threads:12 OPEN_MAX:1048575, ASM + +Usage: 7zz [...] [...] [@listfile] + + + a : Add files to archive + b : Benchmark + d : Delete files from archive + e : Extract files from archive (without using directory names) + h : Calculate hash values for files + i : Show information about supported formats + l : List contents of archive + rn : Rename files in archive + t : Test integrity of archive + u : Update files to archive + x : eXtract files with full paths + + + -- : Stop switches and @listfile parsing + -ai[r[-|0]][m[-|2]][w[-]]{@listfile|!wildcard} : Include archives + -ax[r[-|0]][m[-|2]][w[-]]{@listfile|!wildcard} : eXclude archives + -ao{a|s|t|u} : set Overwrite mode + -an : disable archive_name field + -bb[0-3] : set output log level + -bd : disable progress indicator + -bs{o|e|p}{0|1|2} : set output stream for output/error/progress line + -bt : show execution time statistics + -i[r[-|0]][m[-|2]][w[-]]{@listfile|!wildcard} : Include filenames + -m{Parameters} : set compression Method + -mmt[N] : set number of CPU threads + -mx[N] : set compression level: -mx1 (fastest) ... -mx9 (ultra) + -o{Directory} : set Output directory + -p{Password} : set Password + -r[-|0] : Recurse subdirectories for name search + -sa{a|e|s} : set Archive name mode + -scc{UTF-8|WIN|DOS} : set charset for console input/output + -scs{UTF-8|UTF-16LE|UTF-16BE|WIN|DOS|{id}} : set charset for list files + -scrc[CRC32|CRC64|SHA256|SHA1|XXH64|BLAKE2SP|*] : set hash function for x, e, h commands + -sdel : delete files after compression + -seml[.] : send archive by email + -sfx[{name}] : Create SFX archive + -si[{name}] : read data from stdin + -slp : set Large Pages mode + -slt : show technical information for l (List) command + -snh : store hard links as links + -snl : store symbolic links as links + -sni : store NT security information + -sns[-] : store NTFS alternate streams + -so : write data to stdout + -spd : disable wildcard matching for file names + -spe : eliminate duplication of root folder for extract command + -spf[2] : use fully qualified file paths + -ssc[-] : set sensitive case mode + -sse : stop archive creating, if it can't open some input file + -ssp : do not change Last Access Time of source files while archiving + -ssw : compress shared files + -stl : set archive timestamp from the most recently modified file + -stm{HexMask} : set CPU thread affinity mask (hexadecimal number) + -stx{Type} : exclude archive type + -t{Type} : Set type of archive + -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName] : Update options + -v{Size}[b|k|m|g] : Create volumes + -w[{path}] : assign Work directory. Empty path means a temporary directory + -x[r[-|0]][m[-|2]][w[-]]{@listfile|!wildcard} : eXclude filenames + -y : assume Yes on all queries +``` \ No newline at end of file diff --git a/index.d.ts b/index.d.ts index bfc4c48..372df2a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,2 +1,10 @@ -export const path7za: string +/** + * Path to 7zz (mac/linux) and 7za.exe (win) + * Env var available: `USE_SYSTEM_7Z` instead of included binaries + */ +export const path7z: string +/** + * Short script for executing 7z + * Env vars available: `SZ_PATH`, `SZ_ARCHIVE_TYPE`, `SZ_COMPRESSION_LEVEL` + */ export const path7x: string \ No newline at end of file diff --git a/index.js b/index.js index d4c7a8c..65e361a 100644 --- a/index.js +++ b/index.js @@ -3,20 +3,20 @@ const path = require("path") function getPath() { - if (process.env.USE_SYSTEM_7ZA === "true") { + if (process.env.USE_SYSTEM_7Z === "true") { return "7za" } if (process.platform === "darwin") { - return path.join(__dirname, "mac", process.arch, "7za") + return path.join(__dirname, "mac", process.arch, "7zz") } else if (process.platform === "win32") { return path.join(__dirname, "win", process.arch, "7za.exe") } else { - return path.join(__dirname, "linux", process.arch, "7za") + return path.join(__dirname, "linux", process.arch, "7zz") } } -exports.path7za = getPath() +exports.path7z = getPath() exports.path7x = path.join(__dirname, "7x.sh") \ No newline at end of file diff --git a/linux/arm/7za b/linux/arm/7za deleted file mode 100755 index a484fb9..0000000 Binary files a/linux/arm/7za and /dev/null differ diff --git a/linux/arm/7zz b/linux/arm/7zz new file mode 100755 index 0000000..01cc860 Binary files /dev/null and b/linux/arm/7zz differ diff --git a/linux/arm/7zzs b/linux/arm/7zzs new file mode 100755 index 0000000..211c49d Binary files /dev/null and b/linux/arm/7zzs differ diff --git a/linux/arm/License.txt b/linux/arm/License.txt new file mode 100644 index 0000000..2106dd9 --- /dev/null +++ b/linux/arm/License.txt @@ -0,0 +1,144 @@ + 7-Zip for Linux and macOS + ~~~~~~~~~~~~~~~~~~~~~~~~~ + License for use and distribution + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + 7-Zip Copyright (C) 1999-2024 Igor Pavlov. + + The licenses for 7zz and 7zzs files are: + + - The "GNU LGPL" as main license for most of the code + - The "GNU LGPL" with "unRAR license restriction" for some code + - The "BSD 3-clause License" for some code + - The "BSD 2-clause License" for some code + + Redistributions in binary form must reproduce related license information from this file. + + Note: + 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/ + + + + +BSD 3-clause License in 7-Zip code +---------------------------------- + + The "BSD 3-clause License" is used for the following code in 7z.dll + 1) LZFSE data decompression. + That code was derived from the code in the "LZFSE compression library" developed by Apple Inc, + that also uses the "BSD 3-clause License". + 2) ZSTD data decompression. + that code was developed using original zstd decoder code as reference code. + The original zstd decoder code was developed by Facebook Inc, + that also uses the "BSD 3-clause License". + + Copyright (c) 2015-2016, Apple Inc. All rights reserved. + Copyright (c) Facebook, Inc. All rights reserved. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 3-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +BSD 2-clause License in 7-Zip code +---------------------------------- + + The "BSD 2-clause License" is used for the XXH64 code in 7-Zip. + + XXH64 code in 7-Zip was derived from the original XXH64 code developed by Yann Collet. + + Copyright (c) 2012-2021 Yann Collet. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 2-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +unRAR license restriction +------------------------- + +The decompression engine for RAR archives was developed using source +code of unRAR program. +All copyrights to original unRAR code are owned by Alexander Roshal. + +The license for original unRAR code has the following restriction: + + The unRAR sources cannot be used to re-create the RAR compression algorithm, + which is proprietary. Distribution of modified unRAR sources in separate form + or as a part of other software is permitted, provided that it is clearly + stated in the documentation and source comments that the code may + not be used to develop a RAR (WinRAR) compatible archiver. + +-- diff --git a/linux/arm/readme.txt b/linux/arm/readme.txt new file mode 100644 index 0000000..dcb6241 --- /dev/null +++ b/linux/arm/readme.txt @@ -0,0 +1,100 @@ +7-Zip 24.08 for Linux and macOS +------------------------------- + +7-Zip is a file archiver for Windows/Linux/macOS. + +7-Zip Copyright (C) 1999-2024 Igor Pavlov. + +The main features of 7-Zip: + + - High compression ratio in the new 7z format + - Supported formats: + - Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM. + - Unpacking only: APFS, AR, ARJ, Base64, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, + IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, + RPM, SquashFS, UDF, UEFI, VDI, VHD, VHDX, VMDK, XAR, Z and ZSTD. + - Fast compression and decompression + - Strong AES-256 encryption in 7z and ZIP formats + +7-Zip is free software distributed under the GNU LGPL (except of some code with another license rules). +Read License.txt for more information about license. + +This distribution package contains the following files: + + 7zz - standalone console version of 7-Zip (version compiled for dynamic system library linking) + 7zzs - standalone console version of 7-Zip (version compiled with static system library linking) + readme.txt - this file + License.txt - license information + History.txt - History of 7-Zip + MANUAL - User's Manual in HTML format + + +7-Zip and p7zip +=============== +Now there are two different ports of 7-Zip for Linux/macOS: + +1) p7zip - another port of 7-Zip for Linux, made by an independent developer. + The latest version of p7zip now is 16.02, and that p7zip 16.02 is outdated now. + +2) 7-Zip for Linux/macOS - this package - it's new code with all changes from latest 7-Zip for Windows. + +These two ports are not identical. +Note also that some Linux specific things can be implemented better in p7zip than in new 7-Zip for Linux. + + +There are several main executables in 7-Zip and p7zip: + + 7zz (7-Zip) - standalone full version of 7-Zip that supports all formats. + + 7zzs (7-Zip) - standalone full version of 7-Zip that supports all formats (static library linking). + + + 7z (p7zip) - 7-Zip that requires 7z.so shared library, and it supports all formats via 7z.so. + + 7zr (p7zip) - standalone reduced version of 7-Zip that supports some 7-Zip's formats: + 7z, xz, lzma and split. + + 7za (p7zip) - standalone version of 7-Zip that supports some main formats: + 7z, xz, lzma, zip, bzip2, gzip, tar, cab, ppmd and split. + +7zzs is similar to 7zz, but 7zzs was compiled for static library linking, +so 7zzs does not use external shared library (".so") files. +You can use 7zzs, if 7zz does not work due to lack of required shared library (".so") files. + +The command line syntax for executables from p7zip is similar to 7zz syntax from this package. + +The manual of 7-Zip and p7zip can show `7z` in command examples. +But you can use `7zz`, `7zr`, `7za` instead of `7z` from examples. + + +Example commands +================ + +Note: 7-Zip supports filename wildcards in commands. +You must use the quotes for filenames, if you want to use 7-Zip parser for wildcards +instead of the parser of system shell. + +To create zip archive from all *.txt files in current directory: + ./7zz a archive.zip "*.txt" + +To list the contents of archive: + ./7zz l archive.zip + +To list the contents of archive with detailed technical information for each file: + ./7zz l archive.zip -slt + +To extract archive to current directory: + ./7zz x archive.zip + +To test archive and show the log for each file: + ./7zz t archive.zip -bb + +The benchmark command to test the performance of CPU with 7-Zip's LZMA code: + ./7zz b + +The benchmark command to test the performance of CPU with different compression, encryption +and hash methods from 7-Zip and with different number of threads: + ./7zz b "-mm=*" "-mmt=*" + +--- +End of document diff --git a/linux/arm64/7za b/linux/arm64/7za deleted file mode 100755 index 5e62a60..0000000 Binary files a/linux/arm64/7za and /dev/null differ diff --git a/linux/arm64/7zz b/linux/arm64/7zz new file mode 100755 index 0000000..fcfcec0 Binary files /dev/null and b/linux/arm64/7zz differ diff --git a/linux/arm64/7zzs b/linux/arm64/7zzs new file mode 100755 index 0000000..16073da Binary files /dev/null and b/linux/arm64/7zzs differ diff --git a/linux/arm64/License.txt b/linux/arm64/License.txt new file mode 100644 index 0000000..2106dd9 --- /dev/null +++ b/linux/arm64/License.txt @@ -0,0 +1,144 @@ + 7-Zip for Linux and macOS + ~~~~~~~~~~~~~~~~~~~~~~~~~ + License for use and distribution + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + 7-Zip Copyright (C) 1999-2024 Igor Pavlov. + + The licenses for 7zz and 7zzs files are: + + - The "GNU LGPL" as main license for most of the code + - The "GNU LGPL" with "unRAR license restriction" for some code + - The "BSD 3-clause License" for some code + - The "BSD 2-clause License" for some code + + Redistributions in binary form must reproduce related license information from this file. + + Note: + 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/ + + + + +BSD 3-clause License in 7-Zip code +---------------------------------- + + The "BSD 3-clause License" is used for the following code in 7z.dll + 1) LZFSE data decompression. + That code was derived from the code in the "LZFSE compression library" developed by Apple Inc, + that also uses the "BSD 3-clause License". + 2) ZSTD data decompression. + that code was developed using original zstd decoder code as reference code. + The original zstd decoder code was developed by Facebook Inc, + that also uses the "BSD 3-clause License". + + Copyright (c) 2015-2016, Apple Inc. All rights reserved. + Copyright (c) Facebook, Inc. All rights reserved. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 3-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +BSD 2-clause License in 7-Zip code +---------------------------------- + + The "BSD 2-clause License" is used for the XXH64 code in 7-Zip. + + XXH64 code in 7-Zip was derived from the original XXH64 code developed by Yann Collet. + + Copyright (c) 2012-2021 Yann Collet. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 2-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +unRAR license restriction +------------------------- + +The decompression engine for RAR archives was developed using source +code of unRAR program. +All copyrights to original unRAR code are owned by Alexander Roshal. + +The license for original unRAR code has the following restriction: + + The unRAR sources cannot be used to re-create the RAR compression algorithm, + which is proprietary. Distribution of modified unRAR sources in separate form + or as a part of other software is permitted, provided that it is clearly + stated in the documentation and source comments that the code may + not be used to develop a RAR (WinRAR) compatible archiver. + +-- diff --git a/linux/arm64/readme.txt b/linux/arm64/readme.txt new file mode 100644 index 0000000..dcb6241 --- /dev/null +++ b/linux/arm64/readme.txt @@ -0,0 +1,100 @@ +7-Zip 24.08 for Linux and macOS +------------------------------- + +7-Zip is a file archiver for Windows/Linux/macOS. + +7-Zip Copyright (C) 1999-2024 Igor Pavlov. + +The main features of 7-Zip: + + - High compression ratio in the new 7z format + - Supported formats: + - Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM. + - Unpacking only: APFS, AR, ARJ, Base64, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, + IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, + RPM, SquashFS, UDF, UEFI, VDI, VHD, VHDX, VMDK, XAR, Z and ZSTD. + - Fast compression and decompression + - Strong AES-256 encryption in 7z and ZIP formats + +7-Zip is free software distributed under the GNU LGPL (except of some code with another license rules). +Read License.txt for more information about license. + +This distribution package contains the following files: + + 7zz - standalone console version of 7-Zip (version compiled for dynamic system library linking) + 7zzs - standalone console version of 7-Zip (version compiled with static system library linking) + readme.txt - this file + License.txt - license information + History.txt - History of 7-Zip + MANUAL - User's Manual in HTML format + + +7-Zip and p7zip +=============== +Now there are two different ports of 7-Zip for Linux/macOS: + +1) p7zip - another port of 7-Zip for Linux, made by an independent developer. + The latest version of p7zip now is 16.02, and that p7zip 16.02 is outdated now. + +2) 7-Zip for Linux/macOS - this package - it's new code with all changes from latest 7-Zip for Windows. + +These two ports are not identical. +Note also that some Linux specific things can be implemented better in p7zip than in new 7-Zip for Linux. + + +There are several main executables in 7-Zip and p7zip: + + 7zz (7-Zip) - standalone full version of 7-Zip that supports all formats. + + 7zzs (7-Zip) - standalone full version of 7-Zip that supports all formats (static library linking). + + + 7z (p7zip) - 7-Zip that requires 7z.so shared library, and it supports all formats via 7z.so. + + 7zr (p7zip) - standalone reduced version of 7-Zip that supports some 7-Zip's formats: + 7z, xz, lzma and split. + + 7za (p7zip) - standalone version of 7-Zip that supports some main formats: + 7z, xz, lzma, zip, bzip2, gzip, tar, cab, ppmd and split. + +7zzs is similar to 7zz, but 7zzs was compiled for static library linking, +so 7zzs does not use external shared library (".so") files. +You can use 7zzs, if 7zz does not work due to lack of required shared library (".so") files. + +The command line syntax for executables from p7zip is similar to 7zz syntax from this package. + +The manual of 7-Zip and p7zip can show `7z` in command examples. +But you can use `7zz`, `7zr`, `7za` instead of `7z` from examples. + + +Example commands +================ + +Note: 7-Zip supports filename wildcards in commands. +You must use the quotes for filenames, if you want to use 7-Zip parser for wildcards +instead of the parser of system shell. + +To create zip archive from all *.txt files in current directory: + ./7zz a archive.zip "*.txt" + +To list the contents of archive: + ./7zz l archive.zip + +To list the contents of archive with detailed technical information for each file: + ./7zz l archive.zip -slt + +To extract archive to current directory: + ./7zz x archive.zip + +To test archive and show the log for each file: + ./7zz t archive.zip -bb + +The benchmark command to test the performance of CPU with 7-Zip's LZMA code: + ./7zz b + +The benchmark command to test the performance of CPU with different compression, encryption +and hash methods from 7-Zip and with different number of threads: + ./7zz b "-mm=*" "-mmt=*" + +--- +End of document diff --git a/linux/ia32/7za b/linux/ia32/7za deleted file mode 100755 index 8d85d21..0000000 Binary files a/linux/ia32/7za and /dev/null differ diff --git a/linux/ia32/7zz b/linux/ia32/7zz new file mode 100755 index 0000000..da41e54 Binary files /dev/null and b/linux/ia32/7zz differ diff --git a/linux/ia32/7zzs b/linux/ia32/7zzs new file mode 100755 index 0000000..161d271 Binary files /dev/null and b/linux/ia32/7zzs differ diff --git a/linux/ia32/License.txt b/linux/ia32/License.txt new file mode 100644 index 0000000..2106dd9 --- /dev/null +++ b/linux/ia32/License.txt @@ -0,0 +1,144 @@ + 7-Zip for Linux and macOS + ~~~~~~~~~~~~~~~~~~~~~~~~~ + License for use and distribution + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + 7-Zip Copyright (C) 1999-2024 Igor Pavlov. + + The licenses for 7zz and 7zzs files are: + + - The "GNU LGPL" as main license for most of the code + - The "GNU LGPL" with "unRAR license restriction" for some code + - The "BSD 3-clause License" for some code + - The "BSD 2-clause License" for some code + + Redistributions in binary form must reproduce related license information from this file. + + Note: + 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/ + + + + +BSD 3-clause License in 7-Zip code +---------------------------------- + + The "BSD 3-clause License" is used for the following code in 7z.dll + 1) LZFSE data decompression. + That code was derived from the code in the "LZFSE compression library" developed by Apple Inc, + that also uses the "BSD 3-clause License". + 2) ZSTD data decompression. + that code was developed using original zstd decoder code as reference code. + The original zstd decoder code was developed by Facebook Inc, + that also uses the "BSD 3-clause License". + + Copyright (c) 2015-2016, Apple Inc. All rights reserved. + Copyright (c) Facebook, Inc. All rights reserved. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 3-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +BSD 2-clause License in 7-Zip code +---------------------------------- + + The "BSD 2-clause License" is used for the XXH64 code in 7-Zip. + + XXH64 code in 7-Zip was derived from the original XXH64 code developed by Yann Collet. + + Copyright (c) 2012-2021 Yann Collet. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 2-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +unRAR license restriction +------------------------- + +The decompression engine for RAR archives was developed using source +code of unRAR program. +All copyrights to original unRAR code are owned by Alexander Roshal. + +The license for original unRAR code has the following restriction: + + The unRAR sources cannot be used to re-create the RAR compression algorithm, + which is proprietary. Distribution of modified unRAR sources in separate form + or as a part of other software is permitted, provided that it is clearly + stated in the documentation and source comments that the code may + not be used to develop a RAR (WinRAR) compatible archiver. + +-- diff --git a/linux/ia32/readme.txt b/linux/ia32/readme.txt new file mode 100644 index 0000000..dcb6241 --- /dev/null +++ b/linux/ia32/readme.txt @@ -0,0 +1,100 @@ +7-Zip 24.08 for Linux and macOS +------------------------------- + +7-Zip is a file archiver for Windows/Linux/macOS. + +7-Zip Copyright (C) 1999-2024 Igor Pavlov. + +The main features of 7-Zip: + + - High compression ratio in the new 7z format + - Supported formats: + - Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM. + - Unpacking only: APFS, AR, ARJ, Base64, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, + IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, + RPM, SquashFS, UDF, UEFI, VDI, VHD, VHDX, VMDK, XAR, Z and ZSTD. + - Fast compression and decompression + - Strong AES-256 encryption in 7z and ZIP formats + +7-Zip is free software distributed under the GNU LGPL (except of some code with another license rules). +Read License.txt for more information about license. + +This distribution package contains the following files: + + 7zz - standalone console version of 7-Zip (version compiled for dynamic system library linking) + 7zzs - standalone console version of 7-Zip (version compiled with static system library linking) + readme.txt - this file + License.txt - license information + History.txt - History of 7-Zip + MANUAL - User's Manual in HTML format + + +7-Zip and p7zip +=============== +Now there are two different ports of 7-Zip for Linux/macOS: + +1) p7zip - another port of 7-Zip for Linux, made by an independent developer. + The latest version of p7zip now is 16.02, and that p7zip 16.02 is outdated now. + +2) 7-Zip for Linux/macOS - this package - it's new code with all changes from latest 7-Zip for Windows. + +These two ports are not identical. +Note also that some Linux specific things can be implemented better in p7zip than in new 7-Zip for Linux. + + +There are several main executables in 7-Zip and p7zip: + + 7zz (7-Zip) - standalone full version of 7-Zip that supports all formats. + + 7zzs (7-Zip) - standalone full version of 7-Zip that supports all formats (static library linking). + + + 7z (p7zip) - 7-Zip that requires 7z.so shared library, and it supports all formats via 7z.so. + + 7zr (p7zip) - standalone reduced version of 7-Zip that supports some 7-Zip's formats: + 7z, xz, lzma and split. + + 7za (p7zip) - standalone version of 7-Zip that supports some main formats: + 7z, xz, lzma, zip, bzip2, gzip, tar, cab, ppmd and split. + +7zzs is similar to 7zz, but 7zzs was compiled for static library linking, +so 7zzs does not use external shared library (".so") files. +You can use 7zzs, if 7zz does not work due to lack of required shared library (".so") files. + +The command line syntax for executables from p7zip is similar to 7zz syntax from this package. + +The manual of 7-Zip and p7zip can show `7z` in command examples. +But you can use `7zz`, `7zr`, `7za` instead of `7z` from examples. + + +Example commands +================ + +Note: 7-Zip supports filename wildcards in commands. +You must use the quotes for filenames, if you want to use 7-Zip parser for wildcards +instead of the parser of system shell. + +To create zip archive from all *.txt files in current directory: + ./7zz a archive.zip "*.txt" + +To list the contents of archive: + ./7zz l archive.zip + +To list the contents of archive with detailed technical information for each file: + ./7zz l archive.zip -slt + +To extract archive to current directory: + ./7zz x archive.zip + +To test archive and show the log for each file: + ./7zz t archive.zip -bb + +The benchmark command to test the performance of CPU with 7-Zip's LZMA code: + ./7zz b + +The benchmark command to test the performance of CPU with different compression, encryption +and hash methods from 7-Zip and with different number of threads: + ./7zz b "-mm=*" "-mmt=*" + +--- +End of document diff --git a/linux/x64/7za b/linux/x64/7za deleted file mode 100755 index 5a20bd9..0000000 Binary files a/linux/x64/7za and /dev/null differ diff --git a/linux/x64/7zz b/linux/x64/7zz new file mode 100755 index 0000000..c63805f Binary files /dev/null and b/linux/x64/7zz differ diff --git a/linux/x64/7zzs b/linux/x64/7zzs new file mode 100755 index 0000000..6a09d16 Binary files /dev/null and b/linux/x64/7zzs differ diff --git a/linux/x64/License.txt b/linux/x64/License.txt new file mode 100644 index 0000000..2106dd9 --- /dev/null +++ b/linux/x64/License.txt @@ -0,0 +1,144 @@ + 7-Zip for Linux and macOS + ~~~~~~~~~~~~~~~~~~~~~~~~~ + License for use and distribution + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + 7-Zip Copyright (C) 1999-2024 Igor Pavlov. + + The licenses for 7zz and 7zzs files are: + + - The "GNU LGPL" as main license for most of the code + - The "GNU LGPL" with "unRAR license restriction" for some code + - The "BSD 3-clause License" for some code + - The "BSD 2-clause License" for some code + + Redistributions in binary form must reproduce related license information from this file. + + Note: + 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/ + + + + +BSD 3-clause License in 7-Zip code +---------------------------------- + + The "BSD 3-clause License" is used for the following code in 7z.dll + 1) LZFSE data decompression. + That code was derived from the code in the "LZFSE compression library" developed by Apple Inc, + that also uses the "BSD 3-clause License". + 2) ZSTD data decompression. + that code was developed using original zstd decoder code as reference code. + The original zstd decoder code was developed by Facebook Inc, + that also uses the "BSD 3-clause License". + + Copyright (c) 2015-2016, Apple Inc. All rights reserved. + Copyright (c) Facebook, Inc. All rights reserved. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 3-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +BSD 2-clause License in 7-Zip code +---------------------------------- + + The "BSD 2-clause License" is used for the XXH64 code in 7-Zip. + + XXH64 code in 7-Zip was derived from the original XXH64 code developed by Yann Collet. + + Copyright (c) 2012-2021 Yann Collet. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 2-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +unRAR license restriction +------------------------- + +The decompression engine for RAR archives was developed using source +code of unRAR program. +All copyrights to original unRAR code are owned by Alexander Roshal. + +The license for original unRAR code has the following restriction: + + The unRAR sources cannot be used to re-create the RAR compression algorithm, + which is proprietary. Distribution of modified unRAR sources in separate form + or as a part of other software is permitted, provided that it is clearly + stated in the documentation and source comments that the code may + not be used to develop a RAR (WinRAR) compatible archiver. + +-- diff --git a/linux/x64/readme.txt b/linux/x64/readme.txt new file mode 100644 index 0000000..dcb6241 --- /dev/null +++ b/linux/x64/readme.txt @@ -0,0 +1,100 @@ +7-Zip 24.08 for Linux and macOS +------------------------------- + +7-Zip is a file archiver for Windows/Linux/macOS. + +7-Zip Copyright (C) 1999-2024 Igor Pavlov. + +The main features of 7-Zip: + + - High compression ratio in the new 7z format + - Supported formats: + - Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM. + - Unpacking only: APFS, AR, ARJ, Base64, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, + IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, + RPM, SquashFS, UDF, UEFI, VDI, VHD, VHDX, VMDK, XAR, Z and ZSTD. + - Fast compression and decompression + - Strong AES-256 encryption in 7z and ZIP formats + +7-Zip is free software distributed under the GNU LGPL (except of some code with another license rules). +Read License.txt for more information about license. + +This distribution package contains the following files: + + 7zz - standalone console version of 7-Zip (version compiled for dynamic system library linking) + 7zzs - standalone console version of 7-Zip (version compiled with static system library linking) + readme.txt - this file + License.txt - license information + History.txt - History of 7-Zip + MANUAL - User's Manual in HTML format + + +7-Zip and p7zip +=============== +Now there are two different ports of 7-Zip for Linux/macOS: + +1) p7zip - another port of 7-Zip for Linux, made by an independent developer. + The latest version of p7zip now is 16.02, and that p7zip 16.02 is outdated now. + +2) 7-Zip for Linux/macOS - this package - it's new code with all changes from latest 7-Zip for Windows. + +These two ports are not identical. +Note also that some Linux specific things can be implemented better in p7zip than in new 7-Zip for Linux. + + +There are several main executables in 7-Zip and p7zip: + + 7zz (7-Zip) - standalone full version of 7-Zip that supports all formats. + + 7zzs (7-Zip) - standalone full version of 7-Zip that supports all formats (static library linking). + + + 7z (p7zip) - 7-Zip that requires 7z.so shared library, and it supports all formats via 7z.so. + + 7zr (p7zip) - standalone reduced version of 7-Zip that supports some 7-Zip's formats: + 7z, xz, lzma and split. + + 7za (p7zip) - standalone version of 7-Zip that supports some main formats: + 7z, xz, lzma, zip, bzip2, gzip, tar, cab, ppmd and split. + +7zzs is similar to 7zz, but 7zzs was compiled for static library linking, +so 7zzs does not use external shared library (".so") files. +You can use 7zzs, if 7zz does not work due to lack of required shared library (".so") files. + +The command line syntax for executables from p7zip is similar to 7zz syntax from this package. + +The manual of 7-Zip and p7zip can show `7z` in command examples. +But you can use `7zz`, `7zr`, `7za` instead of `7z` from examples. + + +Example commands +================ + +Note: 7-Zip supports filename wildcards in commands. +You must use the quotes for filenames, if you want to use 7-Zip parser for wildcards +instead of the parser of system shell. + +To create zip archive from all *.txt files in current directory: + ./7zz a archive.zip "*.txt" + +To list the contents of archive: + ./7zz l archive.zip + +To list the contents of archive with detailed technical information for each file: + ./7zz l archive.zip -slt + +To extract archive to current directory: + ./7zz x archive.zip + +To test archive and show the log for each file: + ./7zz t archive.zip -bb + +The benchmark command to test the performance of CPU with 7-Zip's LZMA code: + ./7zz b + +The benchmark command to test the performance of CPU with different compression, encryption +and hash methods from 7-Zip and with different number of threads: + ./7zz b "-mm=*" "-mmt=*" + +--- +End of document diff --git a/mac/arm64/7za b/mac/arm64/7za deleted file mode 100755 index ae5aa0f..0000000 Binary files a/mac/arm64/7za and /dev/null differ diff --git a/mac/arm64/7zz b/mac/arm64/7zz new file mode 100755 index 0000000..b9aaac2 Binary files /dev/null and b/mac/arm64/7zz differ diff --git a/mac/arm64/License.txt b/mac/arm64/License.txt new file mode 100644 index 0000000..2106dd9 --- /dev/null +++ b/mac/arm64/License.txt @@ -0,0 +1,144 @@ + 7-Zip for Linux and macOS + ~~~~~~~~~~~~~~~~~~~~~~~~~ + License for use and distribution + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + 7-Zip Copyright (C) 1999-2024 Igor Pavlov. + + The licenses for 7zz and 7zzs files are: + + - The "GNU LGPL" as main license for most of the code + - The "GNU LGPL" with "unRAR license restriction" for some code + - The "BSD 3-clause License" for some code + - The "BSD 2-clause License" for some code + + Redistributions in binary form must reproduce related license information from this file. + + Note: + 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/ + + + + +BSD 3-clause License in 7-Zip code +---------------------------------- + + The "BSD 3-clause License" is used for the following code in 7z.dll + 1) LZFSE data decompression. + That code was derived from the code in the "LZFSE compression library" developed by Apple Inc, + that also uses the "BSD 3-clause License". + 2) ZSTD data decompression. + that code was developed using original zstd decoder code as reference code. + The original zstd decoder code was developed by Facebook Inc, + that also uses the "BSD 3-clause License". + + Copyright (c) 2015-2016, Apple Inc. All rights reserved. + Copyright (c) Facebook, Inc. All rights reserved. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 3-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +BSD 2-clause License in 7-Zip code +---------------------------------- + + The "BSD 2-clause License" is used for the XXH64 code in 7-Zip. + + XXH64 code in 7-Zip was derived from the original XXH64 code developed by Yann Collet. + + Copyright (c) 2012-2021 Yann Collet. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 2-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +unRAR license restriction +------------------------- + +The decompression engine for RAR archives was developed using source +code of unRAR program. +All copyrights to original unRAR code are owned by Alexander Roshal. + +The license for original unRAR code has the following restriction: + + The unRAR sources cannot be used to re-create the RAR compression algorithm, + which is proprietary. Distribution of modified unRAR sources in separate form + or as a part of other software is permitted, provided that it is clearly + stated in the documentation and source comments that the code may + not be used to develop a RAR (WinRAR) compatible archiver. + +-- diff --git a/mac/arm64/readme.txt b/mac/arm64/readme.txt new file mode 100644 index 0000000..dcb6241 --- /dev/null +++ b/mac/arm64/readme.txt @@ -0,0 +1,100 @@ +7-Zip 24.08 for Linux and macOS +------------------------------- + +7-Zip is a file archiver for Windows/Linux/macOS. + +7-Zip Copyright (C) 1999-2024 Igor Pavlov. + +The main features of 7-Zip: + + - High compression ratio in the new 7z format + - Supported formats: + - Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM. + - Unpacking only: APFS, AR, ARJ, Base64, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, + IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, + RPM, SquashFS, UDF, UEFI, VDI, VHD, VHDX, VMDK, XAR, Z and ZSTD. + - Fast compression and decompression + - Strong AES-256 encryption in 7z and ZIP formats + +7-Zip is free software distributed under the GNU LGPL (except of some code with another license rules). +Read License.txt for more information about license. + +This distribution package contains the following files: + + 7zz - standalone console version of 7-Zip (version compiled for dynamic system library linking) + 7zzs - standalone console version of 7-Zip (version compiled with static system library linking) + readme.txt - this file + License.txt - license information + History.txt - History of 7-Zip + MANUAL - User's Manual in HTML format + + +7-Zip and p7zip +=============== +Now there are two different ports of 7-Zip for Linux/macOS: + +1) p7zip - another port of 7-Zip for Linux, made by an independent developer. + The latest version of p7zip now is 16.02, and that p7zip 16.02 is outdated now. + +2) 7-Zip for Linux/macOS - this package - it's new code with all changes from latest 7-Zip for Windows. + +These two ports are not identical. +Note also that some Linux specific things can be implemented better in p7zip than in new 7-Zip for Linux. + + +There are several main executables in 7-Zip and p7zip: + + 7zz (7-Zip) - standalone full version of 7-Zip that supports all formats. + + 7zzs (7-Zip) - standalone full version of 7-Zip that supports all formats (static library linking). + + + 7z (p7zip) - 7-Zip that requires 7z.so shared library, and it supports all formats via 7z.so. + + 7zr (p7zip) - standalone reduced version of 7-Zip that supports some 7-Zip's formats: + 7z, xz, lzma and split. + + 7za (p7zip) - standalone version of 7-Zip that supports some main formats: + 7z, xz, lzma, zip, bzip2, gzip, tar, cab, ppmd and split. + +7zzs is similar to 7zz, but 7zzs was compiled for static library linking, +so 7zzs does not use external shared library (".so") files. +You can use 7zzs, if 7zz does not work due to lack of required shared library (".so") files. + +The command line syntax for executables from p7zip is similar to 7zz syntax from this package. + +The manual of 7-Zip and p7zip can show `7z` in command examples. +But you can use `7zz`, `7zr`, `7za` instead of `7z` from examples. + + +Example commands +================ + +Note: 7-Zip supports filename wildcards in commands. +You must use the quotes for filenames, if you want to use 7-Zip parser for wildcards +instead of the parser of system shell. + +To create zip archive from all *.txt files in current directory: + ./7zz a archive.zip "*.txt" + +To list the contents of archive: + ./7zz l archive.zip + +To list the contents of archive with detailed technical information for each file: + ./7zz l archive.zip -slt + +To extract archive to current directory: + ./7zz x archive.zip + +To test archive and show the log for each file: + ./7zz t archive.zip -bb + +The benchmark command to test the performance of CPU with 7-Zip's LZMA code: + ./7zz b + +The benchmark command to test the performance of CPU with different compression, encryption +and hash methods from 7-Zip and with different number of threads: + ./7zz b "-mm=*" "-mmt=*" + +--- +End of document diff --git a/mac/x64/7za b/mac/x64/7za deleted file mode 100755 index 4892a53..0000000 Binary files a/mac/x64/7za and /dev/null differ diff --git a/mac/x64/7zz b/mac/x64/7zz new file mode 100755 index 0000000..b9aaac2 Binary files /dev/null and b/mac/x64/7zz differ diff --git a/mac/x64/License.txt b/mac/x64/License.txt new file mode 100644 index 0000000..2106dd9 --- /dev/null +++ b/mac/x64/License.txt @@ -0,0 +1,144 @@ + 7-Zip for Linux and macOS + ~~~~~~~~~~~~~~~~~~~~~~~~~ + License for use and distribution + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + 7-Zip Copyright (C) 1999-2024 Igor Pavlov. + + The licenses for 7zz and 7zzs files are: + + - The "GNU LGPL" as main license for most of the code + - The "GNU LGPL" with "unRAR license restriction" for some code + - The "BSD 3-clause License" for some code + - The "BSD 2-clause License" for some code + + Redistributions in binary form must reproduce related license information from this file. + + Note: + 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/ + + + + +BSD 3-clause License in 7-Zip code +---------------------------------- + + The "BSD 3-clause License" is used for the following code in 7z.dll + 1) LZFSE data decompression. + That code was derived from the code in the "LZFSE compression library" developed by Apple Inc, + that also uses the "BSD 3-clause License". + 2) ZSTD data decompression. + that code was developed using original zstd decoder code as reference code. + The original zstd decoder code was developed by Facebook Inc, + that also uses the "BSD 3-clause License". + + Copyright (c) 2015-2016, Apple Inc. All rights reserved. + Copyright (c) Facebook, Inc. All rights reserved. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 3-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +BSD 2-clause License in 7-Zip code +---------------------------------- + + The "BSD 2-clause License" is used for the XXH64 code in 7-Zip. + + XXH64 code in 7-Zip was derived from the original XXH64 code developed by Yann Collet. + + Copyright (c) 2012-2021 Yann Collet. + Copyright (c) 2023-2024 Igor Pavlov. + +Text of the "BSD 2-clause License" +---------------------------------- + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + + + + +unRAR license restriction +------------------------- + +The decompression engine for RAR archives was developed using source +code of unRAR program. +All copyrights to original unRAR code are owned by Alexander Roshal. + +The license for original unRAR code has the following restriction: + + The unRAR sources cannot be used to re-create the RAR compression algorithm, + which is proprietary. Distribution of modified unRAR sources in separate form + or as a part of other software is permitted, provided that it is clearly + stated in the documentation and source comments that the code may + not be used to develop a RAR (WinRAR) compatible archiver. + +-- diff --git a/mac/x64/readme.txt b/mac/x64/readme.txt new file mode 100644 index 0000000..dcb6241 --- /dev/null +++ b/mac/x64/readme.txt @@ -0,0 +1,100 @@ +7-Zip 24.08 for Linux and macOS +------------------------------- + +7-Zip is a file archiver for Windows/Linux/macOS. + +7-Zip Copyright (C) 1999-2024 Igor Pavlov. + +The main features of 7-Zip: + + - High compression ratio in the new 7z format + - Supported formats: + - Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM. + - Unpacking only: APFS, AR, ARJ, Base64, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT, HFS, + IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, + RPM, SquashFS, UDF, UEFI, VDI, VHD, VHDX, VMDK, XAR, Z and ZSTD. + - Fast compression and decompression + - Strong AES-256 encryption in 7z and ZIP formats + +7-Zip is free software distributed under the GNU LGPL (except of some code with another license rules). +Read License.txt for more information about license. + +This distribution package contains the following files: + + 7zz - standalone console version of 7-Zip (version compiled for dynamic system library linking) + 7zzs - standalone console version of 7-Zip (version compiled with static system library linking) + readme.txt - this file + License.txt - license information + History.txt - History of 7-Zip + MANUAL - User's Manual in HTML format + + +7-Zip and p7zip +=============== +Now there are two different ports of 7-Zip for Linux/macOS: + +1) p7zip - another port of 7-Zip for Linux, made by an independent developer. + The latest version of p7zip now is 16.02, and that p7zip 16.02 is outdated now. + +2) 7-Zip for Linux/macOS - this package - it's new code with all changes from latest 7-Zip for Windows. + +These two ports are not identical. +Note also that some Linux specific things can be implemented better in p7zip than in new 7-Zip for Linux. + + +There are several main executables in 7-Zip and p7zip: + + 7zz (7-Zip) - standalone full version of 7-Zip that supports all formats. + + 7zzs (7-Zip) - standalone full version of 7-Zip that supports all formats (static library linking). + + + 7z (p7zip) - 7-Zip that requires 7z.so shared library, and it supports all formats via 7z.so. + + 7zr (p7zip) - standalone reduced version of 7-Zip that supports some 7-Zip's formats: + 7z, xz, lzma and split. + + 7za (p7zip) - standalone version of 7-Zip that supports some main formats: + 7z, xz, lzma, zip, bzip2, gzip, tar, cab, ppmd and split. + +7zzs is similar to 7zz, but 7zzs was compiled for static library linking, +so 7zzs does not use external shared library (".so") files. +You can use 7zzs, if 7zz does not work due to lack of required shared library (".so") files. + +The command line syntax for executables from p7zip is similar to 7zz syntax from this package. + +The manual of 7-Zip and p7zip can show `7z` in command examples. +But you can use `7zz`, `7zr`, `7za` instead of `7z` from examples. + + +Example commands +================ + +Note: 7-Zip supports filename wildcards in commands. +You must use the quotes for filenames, if you want to use 7-Zip parser for wildcards +instead of the parser of system shell. + +To create zip archive from all *.txt files in current directory: + ./7zz a archive.zip "*.txt" + +To list the contents of archive: + ./7zz l archive.zip + +To list the contents of archive with detailed technical information for each file: + ./7zz l archive.zip -slt + +To extract archive to current directory: + ./7zz x archive.zip + +To test archive and show the log for each file: + ./7zz t archive.zip -bb + +The benchmark command to test the performance of CPU with 7-Zip's LZMA code: + ./7zz b + +The benchmark command to test the performance of CPU with different compression, encryption +and hash methods from 7-Zip and with different number of threads: + ./7zz b "-mm=*" "-mmt=*" + +--- +End of document diff --git a/package.json b/package.json index b9f4c8c..63e4d61 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,22 @@ { "name": "7zip-bin", "description": "7-Zip precompiled binaries", - "version": "5.2.0", + "version": "6.0.0", "files": [ "*.js", "7x.sh", "index.d.ts", "linux", - "mac", - "win" + "win", + "mac" ], "license": "MIT", "repository": "develar/7zip-bin", "keywords": [ "7zip", "7z", + "7zz", + "7zzs", "7za" ] } diff --git a/win/arm64/7za.exe b/win/arm64/7za.exe index 7008429..720c91f 100644 Binary files a/win/arm64/7za.exe and b/win/arm64/7za.exe differ diff --git a/win/ia32/7za.exe b/win/ia32/7za.exe index b87f305..02c3f71 100644 Binary files a/win/ia32/7za.exe and b/win/ia32/7za.exe differ diff --git a/win/x64/7za.exe b/win/x64/7za.exe index 9544a63..41aaf1b 100644 Binary files a/win/x64/7za.exe and b/win/x64/7za.exe differ