-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: osslsigncode for linux 2.0 (mtrojnar)
- Loading branch information
Showing
4 changed files
with
8 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
FROM buildpack-deps:xenial-curl | ||
FROM buildpack-deps:bionic-curl | ||
|
||
RUN apt-get -qq update && apt-get -qq dist-upgrade && apt-get install -qq libssl-dev libcurl4-openssl-dev libgsf-1-dev autoconf build-essential unzip libtool | ||
RUN apt-get -qq update && apt-get -qq upgrade && apt-get install -qq libssl-dev libcurl4-openssl-dev libgsf-1-dev autoconf build-essential unzip libtool | ||
|
||
## Download and install osslsigncode | ||
#RUN curl -L "http://downloads.sourceforge.net/project/osslsigncode/osslsigncode/osslsigncode-1.7.1.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fosslsigncode%2Ffiles%2Fosslsigncode%2F&ts=1413463046&use_mirror=optimate" | tar -xz | ||
#WORKDIR osslsigncode-1.7.1 | ||
#RUN ./configure && make && make install | ||
|
||
RUN curl -L https://github.com/electron-userland/electron-builder-binaries/files/1821437/osslsigncode-osslsigncode-e72a1937d1a13e87074e4584f012f13e03fc1d64.zip -o f.zip && unzip f.zip && \ | ||
cd osslsigncode-osslsigncode-e72a1937d1a13e87074e4584f012f13e03fc1d64 && \ | ||
./autogen.sh | ||
|
||
RUN cd osslsigncode-osslsigncode-e72a1937d1a13e87074e4584f012f13e03fc1d64 && ./configure CFLAGS='-g -O3' GSF_LIBS='-l:libgsf-1.a -lgobject-2.0 -lglib-2.0 -lxml2 -l:libz.a -l:libbz2.a' && make install | ||
RUN curl -L https://github.com/mtrojnar/osslsigncode/archive/master.zip -o f.zip && unzip f.zip && \ | ||
cd osslsigncode-master && ./autogen.sh && ./configure CFLAGS='-g -O3' GSF_LIBS='-l:libgsf-1.a -lgobject-2.0 -lglib-2.0 -lxml2 -l:libz.a -l:libbz2.a' && make install | ||
|
||
CMD cp /usr/local/bin/osslsigncode /files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/bin/bash | ||
|
||
echo "Building osslsigncode docker image" | ||
docker build -t electron-builder-binaries/osslsigncode:1.7.1 . | ||
docker build -t electron-builder-binaries/osslsigncode:2.0.1 . | ||
|
||
echo "Building osslsigncode binary" | ||
docker run -v `pwd`:/files electron-builder-binaries/osslsigncode:1.7.1 | ||
docker run -v `pwd`:/files electron-builder-binaries/osslsigncode:2.0.1 |
Binary file not shown.