GithubHelp home page GithubHelp logo

7zip_static's Introduction

7zip Static Build Dockerfile

Docker container to build 7-Zip as a static executable.

Usage

Install

You can build the 7zip_static Docker container from source, during the container's build it will create the UASM and 7-Zip binaries as statically linked executables.

In the case of UASM it will compile the executable with Clang as /usr/local/bin/uasm. In the case of 7-Zip it will compile the executable with Clang as /usr/local/bin/7zz.

To create the Docker container from scratch and copy the binaries to the current working directory.

first, view https://www.7-zip.org/history.txt and get 7-zip latest build number,example:
HISTORY of the 7-Zip
--------------------

21.04 beta     2021-11-02
-------------------------

you can get the latest build number is 21.04, so variable VERSION=2104, Important without decimal point!

second, run the commands below:
git clone https://github.com/justdan96/7zip_static.git
cd 7zip_static
docker build --build-arg VERSION=2104 -t 7zip_static . 2>&1 | tee build.log
docker run -it --rm -v $(pwd):/workdir -w="/workdir" 7zip_static sh -c "cp /usr/local/bin/* /workdir"

7zip_static's People

Contributors

justdan96 avatar wxlg1117 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.