mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-06-14 16:44:05 +00:00
Auto sign
This commit is contained in:
parent
262ee1d18f
commit
6a2b0fccd6
|
@ -1,6 +1,7 @@
|
||||||
stages:
|
stages:
|
||||||
- dependencies
|
- dependencies
|
||||||
- build
|
- build
|
||||||
|
- sign
|
||||||
- deploy
|
- deploy
|
||||||
- page_deploy
|
- page_deploy
|
||||||
|
|
||||||
|
@ -144,12 +145,44 @@ build_cmake_windows:
|
||||||
- cmake-builds/
|
- cmake-builds/
|
||||||
expire_in: 1 day
|
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:
|
deploy_all:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: fedora
|
image: fedora
|
||||||
dependencies:
|
dependencies:
|
||||||
- build_windows
|
- sign
|
||||||
- build_steamos
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ls -lah
|
- ls -lah
|
||||||
|
|
Loading…
Reference in New Issue
Block a user