From 6a2b0fccd6e63676e861eb989613045410862e03 Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Tue, 10 Dec 2019 10:47:57 +0000 Subject: [PATCH 1/4] Auto sign --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 70847c5..7b0ca74 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,7 @@ stages: - dependencies - build + - sign - deploy - page_deploy @@ -144,12 +145,44 @@ build_cmake_windows: - cmake-builds/ expire_in: 1 day +sign: + stage: sign + image: alpine:3.4 + dependencies: + - build_windows + - build_steamos + + script: + - apk update && apk add libcurl curl-dev openssl-dev autoconf build-base automake libtool git + - git clone https://github.com/dmcgowan/osslsigncode + - pushd osslsigncode + - ./autogen.sh && ./configure && make && make install && make clean || exit 1 + - popd + - C="US" + - O="Valve" + - L="Bellevue" + - ST="WA" + - SUBJECT="/C=$C/O=$O/L=$L/ST=$ST" + - KEY="cert.key" + - CERT="cert.pem" + - DAYS="365" + - ALGO="sha256" + - BITS="2048" + - PASSW=azerty + - openssl req -x509 -"$ALGO" -passin "pass:$PASSW" -passout "pass:$PASSW" -newkey rsa:"$BITS" -subj "$SUBJECT" -keyout "$KEY" -out "$CERT" -days "$DAYS" + - osslsigncode sign -certs "$CERT" -h "$ALGO" -key "$KEY" -pass "$PASSW" -in release/steam_api.dll -out steam_api.dll + - osslsigncode sign -certs "$CERT" -h "$ALGO" -key "$KEY" -pass "$PASSW" -in release/steam_api64.dll -out steam_api64.dll + - mv steam_api* release/ + + artifacts: + - linux/ + - release/ + deploy_all: stage: deploy image: fedora dependencies: - - build_windows - - build_steamos + - sign script: - ls -lah From a7f6137fd3aabec8b63a30ac15620c4341e9219f Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Tue, 10 Dec 2019 10:49:23 +0000 Subject: [PATCH 2/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b0ca74..e7cbd09 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -175,8 +175,9 @@ sign: - mv steam_api* release/ artifacts: - - linux/ - - release/ + paths: + - linux/ + - release/ deploy_all: stage: deploy From c883c0f675e50c407c3373da74cdb8f7def47a9e Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Tue, 10 Dec 2019 11:23:53 +0000 Subject: [PATCH 3/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e7cbd09..126c4af 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -155,9 +155,9 @@ sign: script: - apk update && apk add libcurl curl-dev openssl-dev autoconf build-base automake libtool git - git clone https://github.com/dmcgowan/osslsigncode - - pushd osslsigncode + - cd osslsigncode - ./autogen.sh && ./configure && make && make install && make clean || exit 1 - - popd + - cd .. - C="US" - O="Valve" - L="Bellevue" From bccbee6f8667c98faffdb2d81e5addfe02b9a9b1 Mon Sep 17 00:00:00 2001 From: Nemirtingas Date: Tue, 10 Dec 2019 12:47:02 +0000 Subject: [PATCH 4/4] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 126c4af..40f6a99 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -153,7 +153,7 @@ sign: - build_steamos script: - - apk update && apk add libcurl curl-dev openssl-dev autoconf build-base automake libtool git + - apk update && apk add libcurl curl-dev openssl-dev autoconf build-base automake libtool git openssl - git clone https://github.com/dmcgowan/osslsigncode - cd osslsigncode - ./autogen.sh && ./configure && make && make install && make clean || exit 1