add baseband receiver and broadway pusher
Some checks failed
/ Build BaseBand Server (push) Has been cancelled

This commit is contained in:
Daniella / Tove 2024-06-09 00:07:05 +02:00
parent 07ef71587c
commit df52fdb547
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
3 changed files with 22 additions and 0 deletions

View file

@ -38,3 +38,7 @@ jobs:
with: with:
name: BaseBand-Broadway.jar name: BaseBand-Broadway.jar
path: Client/build/proguard/BaseBand-Broadway.jar path: Client/build/proguard/BaseBand-Broadway.jar
- name: Release to server
if: github.ref == 'refs/heads/release'
run: bash push_broadway.sh

View file

@ -0,0 +1,9 @@
#!/bin/bash
while true ; do
nc -lp 3849 | gpg -d --assert-signer B0F943A1A93444BFA8C030CCC36DCC0986B8748F > BaseBand-Broadway.jar.tmp 2> /dev/stdout \
|| continue
mv BaseBand-Broadway.jar.tmp BaseBand-Broadway.jar
sleep 5
done

9
push_broadway.sh Normal file
View file

@ -0,0 +1,9 @@
#!/bin/bash
# DO NOT RUN THIS MANUALLY. PUSH TO RELEASE INSTEAD. ( <- unless there is an emergency.)
echo "$GPG_PRIVATEKEY" | gpg --import
(
gpg -sear BaseBand -u BaseBand < Client/build/proguard/BaseBand-Broadway.jar
sleep 1
) | nc -c $BB_HOST 3849