Comments (5)
If somebody needs it for a Dockerfile you can use that code as a build stage:
FROM ubuntu:22.04 AS builder
ARG OSSLSIGNCODE_VERSION=2.5
RUN apt update && apt install -y -qq --no-install-recommends build-essential pkg-config libssl-dev libcurl4-openssl-dev clang-15 wget cmake && \
wget --no-check-certificate https://github.com/mtrojnar/osslsigncode/releases/download/${OSSLSIGNCODE_VERSION}/osslsigncode-${OSSLSIGNCODE_VERSION}.tar.gz && \
tar -xf osslsigncode-${OSSLSIGNCODE_VERSION}.tar.gz && \
rm *.tar.gz && \
cd osslsigncode-${OSSLSIGNCODE_VERSION} && \
mkdir build && cd build && cmake -S=../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang-15 && \
cmake --build . && \
cp /osslsigncode-${OSSLSIGNCODE_VERSION}/build/osslsigncode /osslsigncode
And copy it later into your image when you need it:
COPY --from=builder /osslsigncode /usr/local/bin/osslsigncode
from osslsigncode.
-DCMAKE_C_COMPILER=clang
Yes, if you force a compiler other than the one installed with build-essential
(i.e., gcc), you need to install the compiler first. This is not specific to osslsigncode
, and it should not have surprised you.
from osslsigncode.
My bad I don't work often with C or C++.
I took clang because I followed the readme:
Line 60 in 44a6768
from osslsigncode.
Good point! It's indeed not clear that those are examples of configurable build parameters, and not the required build parameters.
@olszomal could you fix it?
from osslsigncode.
Related Issues (20)
- Failed to parse PKCS#12 file: p12key.p12 (Wrong password?) HOT 3
- Dependency on openssl1.0, not working on Amazon Linux 2022 HOT 1
- Trouble with run after bad install osslsigncode HOT 5
- Signing EV with SafeNet eToken 5100/5110 HOT 9
- How to locate the ---BLOB_BEGIN--- location programatically after replacement with data? HOT 1
- Publish official docker image
- Default command "sign" not working in 2.5 HOT 1
- Question: CAB File Signature Specification HOT 3
- Failed Timestamp validation in verify HOT 2
- Failing to sign .msi file - DIFAT sectors are not supported HOT 3
- IPE checksum missmatch HOT 3
- Linking fails when building with Nix on Darwin HOT 1
- [Bug Report] Fail to verify the revocation status of certificates. HOT 2
- Release builds for Ubuntu HOT 5
- [Bug Report] wrong timestamp parsing HOT 3
- [Usage-Help] Verfication fails on Windows every time HOT 1
- Missing OpenSSL legacy provider on Microsoft Windows HOT 1
- static binary with musl? HOT 3
- Multiple MSI signatures with different algorithms and a MsiDigitalSignatureEx entry HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osslsigncode.