Compare commits
1 commit
master
...
feat/code-
Author | SHA1 | Date | |
---|---|---|---|
77475b6dee |
3 changed files with 35 additions and 12 deletions
|
@ -4,6 +4,7 @@ FROM dtmt-ci-base-linux
|
|||
ENV KEYRINGS /usr/local/share/keyrings
|
||||
ARG XWIN_VERSION=0.2.11
|
||||
ARG XWIN_PREFIX="xwin-$XWIN_VERSION-x86_64-unknown-linux-musl"
|
||||
ARG OSSLSIGNCODE_VERSION=2.7
|
||||
|
||||
ADD https://apt.llvm.org/llvm-snapshot.gpg.key /root/llvm-snapshot.gpg.key
|
||||
ADD https://dl.winehq.org/wine-builds/winehq.key /root/winehq.key
|
||||
|
@ -20,13 +21,19 @@ RUN set -eux; \
|
|||
dpkg --add-architecture i386; \
|
||||
apt-get update; \
|
||||
apt-get install --no-install-recommends -y \
|
||||
cmake \
|
||||
libssl-dev \
|
||||
libcurl4-openssl-dev \
|
||||
zlib1g-dev \
|
||||
python3 \
|
||||
libclang-13-dev \
|
||||
gcc-mingw-w64-x86-64 \
|
||||
clang-13 \
|
||||
llvm-13 \
|
||||
lld-13 \
|
||||
winehq-staging \
|
||||
tar; \
|
||||
tar \
|
||||
; \
|
||||
# ensure that clang/clang++ are callable directly
|
||||
ln -s clang-13 /usr/bin/clang && ln -s clang /usr/bin/clang++ && ln -s lld-13 /usr/bin/ld.lld; \
|
||||
# We also need to setup symlinks ourselves for the MSVC shims because they aren't in the debian packages
|
||||
|
@ -57,6 +64,19 @@ RUN set -eux; \
|
|||
/var/lib/apt/lists/* \
|
||||
/root/*.key;
|
||||
|
||||
ADD https://github.com/mtrojnar/osslsigncode/archive/refs/tags/${OSSLSIGNCODE_VERSION}.tar.gz /root/osslsigncode.tar.gz
|
||||
|
||||
RUN set -ex; \
|
||||
tar -xzv -f /root/osslsigncode.tar.gz;\
|
||||
cd osslsigncode-${OSSLSIGNCODE_VERSION}; \
|
||||
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release; \
|
||||
cmake --build build; \
|
||||
cmake --install build; \
|
||||
cd ../; \
|
||||
rm -rf \
|
||||
/root/osslsigncode.tar.gz \
|
||||
osslsigncode-${OSSLSIGNCODE_VERSION};
|
||||
|
||||
# Note that we're using the full target triple for each variable instead of the
|
||||
# simple CC/CXX/AR shorthands to avoid issues when compiling any C/C++ code for
|
||||
# build dependencies that need to compile and execute in the host environment
|
||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -6,3 +6,6 @@
|
|||
*.dll
|
||||
*.lib
|
||||
dictionary.csv
|
||||
|
||||
signing/*
|
||||
!signing/.gitkeep
|
||||
|
|
0
signing/.gitkeep
Normal file
0
signing/.gitkeep
Normal file
Loading…
Add table
Reference in a new issue