Skip to content

Commit

Permalink
[signal] update signal-cli to 0.13.0 (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBitard authored Feb 24, 2024
1 parent 18a9818 commit 8726f20
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-libsignal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ name: build-libsignal
on: workflow_dispatch

env:
LIBSIGNAL_VERSION: '0.36.1'
LIBSIGNAL_VERSION: '0.39.2'
GIT_DISCOVERY_ACROSS_FILESYSTEM: 1

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
build-x86_64:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/hassfest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
schedule:
- cron: '0 0 * * *'

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
validate:
runs-on: "ubuntu-latest"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
init:
name: Initialize build
Expand Down Expand Up @@ -40,4 +43,4 @@ jobs:
with:
args: |
--${{ matrix.architecture }} \
--target /data/signal
--target /data/signal
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: 'Test'
on:
push:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
init:
name: Initialize build
Expand Down Expand Up @@ -49,4 +52,4 @@ jobs:
args: |
--test \
--${{ matrix.architecture }} \
--target /data/signal
--target /data/signal
5 changes: 5 additions & 0 deletions signal/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 11.0.0
- Update signal-cli to 0.13.0
- Update Java 21
- Drop support for armhf

## 10.25.0
- Update signal-cli to 0.12.8

Expand Down
12 changes: 8 additions & 4 deletions signal/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
ARG BUILD_FROM=homeassistant/amd64-base-debian:bookworm
FROM $BUILD_FROM

ENV SIGNAL_VERSION=0.12.8 \
LIBSIGNAL_VERSION=0.36.1 \
ENV SIGNAL_VERSION=0.13.0 \
LIBSIGNAL_VERSION=0.39.2 \
LANG=C.UTF-8

COPY root /

RUN arch="$(uname -m)"; \
case "$arch" in \
aarch64) cp /ext/libraries/libsignal-client/v${LIBSIGNAL_VERSION}/arm64/libsignal_jni.so /tmp/libsignal_jni.so ;; \
armv7l) cp /ext/libraries/libsignal-client/v${LIBSIGNAL_VERSION}/armv7/libsignal_jni.so /tmp/libsignal_jni.so ;; \
armv7l) cp /ext/libraries/libsignal-client/v${LIBSIGNAL_VERSION}/armv7/libsignal_jni.so /tmp/libsignal_jni.so ;; \
x86_64) cp /ext/libraries/libsignal-client/v${LIBSIGNAL_VERSION}/x86-64/libsignal_jni.so /tmp/libsignal_jni.so ;; \
esac;

RUN apt update && apt install -y dbus jq python3 python3-pip openjdk-17-jre zip python3-venv && \
RUN apt update && apt install -y gnupg
RUN curl -L https://download.bell-sw.com/pki/GPG-KEY-bellsoft | apt-key add -
RUN echo "deb https://apt.bell-sw.com/ stable main" | tee /etc/apt/sources.list.d/bellsoft.list

RUN apt update && apt install -y dbus jq python3 python3-pip zip bellsoft-java21-runtime python3-venv && \
curl -L "https://github.com/AsamK/signal-cli/releases/download/v${SIGNAL_VERSION}/signal-cli-${SIGNAL_VERSION}.tar.gz" --output "/signal-cli-${SIGNAL_VERSION}.tar.gz" && \
tar xvzf /signal-cli-${SIGNAL_VERSION}.tar.gz -C / && \
mv /signal-cli-${SIGNAL_VERSION} /signal-cli && \
Expand Down
2 changes: 0 additions & 2 deletions signal/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
![Addon Stage][stage-badge]
![Supports aarch64 Architecture][aarch64-badge]
![Supports amd64 Architecture][amd64-badge]
![Supports armhf Architecture][armhf-badge]
![Supports armv7 Architecture][armv7-badge]
![Supports i386 Architecture][i386-badge]

Expand All @@ -13,7 +12,6 @@

[aarch64-badge]: https://img.shields.io/badge/aarch64-yes-green.svg?style=for-the-badge
[amd64-badge]: https://img.shields.io/badge/amd64-yes-green.svg?style=for-the-badge
[armhf-badge]: https://img.shields.io/badge/armhf-yes-green.svg?style=for-the-badge
[armv7-badge]: https://img.shields.io/badge/armv7-yes-green.svg?style=for-the-badge
[i386-badge]: https://img.shields.io/badge/i386-yes-green.svg?style=for-the-badge
[stage-badge]: https://img.shields.io/badge/Addon%20stage-stable-green.svg?style=for-the-badge
Expand Down
1 change: 0 additions & 1 deletion signal/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"build_from": {
"aarch64": "homeassistant/aarch64-base-debian:bookworm",
"amd64": "homeassistant/amd64-base-debian:bookworm",
"armhf": "homeassistant/armhf-base-debian:bookworm",
"armv7": "homeassistant/armv7-base-debian:bookworm",
"i386": "homeassistant/i386-base-debian:bookworm"
}
Expand Down
3 changes: 1 addition & 2 deletions signal/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"arch": [
"armhf",
"armv7",
"aarch64",
"amd64",
Expand Down Expand Up @@ -30,7 +29,7 @@
},
"slug": "signal",
"startup": "services",
"version": "10.25.0",
"version": "11.0.0",
"init": false,
"image": "agileek/hassio-{arch}-signal"
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 8726f20

Please sign in to comment.