Fix dependencies conf

This commit is contained in:
Antoine Martin 2024-09-12 20:55:35 -04:00
parent 57c2af5828
commit 9873f1db32
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -27,13 +27,25 @@ jobs:
CI_REF_NAME=$GITHUB_REF_NAME CI_REF_NAME=$GITHUB_REF_NAME
fi fi
echo $CI_REF_NAME > ci_ref_name echo $CI_REF_NAME > ci_ref_name
curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/$CI_REF_NAME/package-lock.json | grep "@signalapp/ringrtc\": \"" | awk '{print $2}' | tr -d ',' | tr -d '"' | head -n 1 > ringrtcver curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/$CI_REF_NAME/package-lock.json | grep "@signalapp/ringrtc\": \"" | awk '{print $2}' | tr -d ',' | tr -d '"'
curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/$CI_REF_NAME/package-lock.json | grep "@signalapp/libsignal-client\": \"" | awk '{print $2}' | tr -d ',' | tr -d '"' | head -n 1 > libsignalver | head -n 1 > ringrtcver
curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/$CI_REF_NAME/package-lock.json | grep "@signalapp/better-sqlite3\": \"" | awk '{print $2}' | tr -d ',' | tr -d '"' | head -n 1 > bsqlitever curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/$CI_REF_NAME/package-lock.json | grep "@signalapp/libsignal-client\": \"" | awk '{print $2}' | tr -d ',' | t
r -d '"' | head -n 1 > libsignalver
curl --silent https://raw.githubusercontent.com/signalapp/Signal-Desktop/$CI_REF_NAME/package-lock.json | grep "@signalapp/better-sqlite3\": \"" | awk '{print $2}' | tr -d ',' | tr
-d '"' | head -n 1 > bsqlitever
read _bsqlitever < bsqlitever read _bsqlitever < bsqlitever
curl --silent https://raw.githubusercontent.com/signalapp/better-sqlite3/v$_bsqlitever/deps/download.js | grep "const TOKENIZER_VERSION" | awk '{print $4}' | tr -d "'" | tr -d ';' | head -n 1 > stokenizerver curl --silent https://raw.githubusercontent.com/signalapp/better-sqlite3/v$_bsqlitever/deps/download.js | grep "const TOKENIZER_VERSION" | awk '{print $4}' | tr -d "'" | tr -d ';' |
head -n 1 > stokenizerver
read _ringrtcver < ringrtcver read _ringrtcver < ringrtcver
curl --silent https://raw.githubusercontent.com/signalapp/ringrtc/v$_ringrtcver/config/version.properties | awk -F '=' '{if($1 == "webrtc.version"){print $2}}' | head -n 1 > webrtcver curl --silent https://raw.githubusercontent.com/signalapp/ringrtc/v$_ringrtcver/config/version.properties | awk -F '=' '{if($1 == "webrtc.version"){print $2}}' | head -n 1 > webrtcv
er
read _libsignalver < libsignalver
read _webrtcver < webrtcver
read _stokenizerver < stokenizerver
echo "_libsignalver=$_libsignalver" > dependencies.conf
echo "_ringrtcver=$_ringrtcver" >> dependencies.conf
echo "_webrtcver=$_webrtcver" >> dependencies.conf
echo "_stokenizerver=$_stokenizerver" >> dependencies.conf
- name: Package deployment - name: Package deployment
run: | run: |
read CI_REF_NAME < ci_ref_name read CI_REF_NAME < ci_ref_name