Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest version shows "This version of Signal Desktop has expired" #15

Closed
maximbaz opened this issue Nov 19, 2024 · 2 comments
Closed

Latest version shows "This version of Signal Desktop has expired" #15

maximbaz opened this issue Nov 19, 2024 · 2 comments
Assignees

Comments

@maximbaz
Copy link

Hey, first of all thanks for building these packages, really helps aarch64 users!

I was wondering if you experience the same, launching Signal from the two latest releases in this repo instantly show "This version of Signal Desktop has expired" on launch, even though neither 7.31 nor 7.33 are likely meant to be banned just yet.

If I build the artifacts locally using your tooling from this repo, everything works fine, I don't get any warnings - I wonder what could be the reason, could it e.g. be caused by you and me using different values for $SOURCE_DATE_EPOCH?

Here locally I literally just run these 3 commands:

export SOURCE_DATE_EPOCH=$(date +%s)

docker build -t signal-desktop \
  --build-arg SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH \
  --build-arg NODE_VERSION=20.18.0 \
  --build-arg NVM_VERSION=0.40.1 \
  --build-arg NPM_VERSION=10.2.5 .

docker run -it --cpus=$(nproc) \
  --name signal-desktop \
  -e NPM_CONFIG_CACHE=/tmp/.npm-cache \
  -e SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH \
  signal-desktop public

P.S. Not that important perhaps but just fyi, a command to generate a new signing key has changed, I tried to update it like below but I don't think it actually works - maybe it's a step in the right direction.

--- a/signal-buildscript.sh
+++ b/signal-buildscript.sh
@@ -81,7 +81,7 @@ pushd /Signal-Desktop
   debpath=$(ls /Signal-Desktop/release/signal-desktop_*)
   if [ ! -f /Signal-Desktop/release/.private.key ]; then
     echo "Generating New Keypair."
-    npm run ts/updater/generateKeyPair.js -- --key /Signal-Desktop/release/public.key --private /Signal-Desktop/release/.private.key
+    ./node_modules/.bin/ts-node ts/updater/generateKeyPair.ts -- --key /Signal-Desktop/release/public.key --private /Signal-Desktop/release/.private.key
     echo "Signing Release."
     npm run sign-release -- --private /Signal-Desktop/release/.private.key --update $debpath
   else
@0mniteck
Copy link
Owner

Thanks for submitting the issue!

After testing I see the same problem. I didn't realize the source date also sets the expiry date. I will set a closer date as this was only to influence the reproducibility of the build.

As for the build-tool keypair it seems like its kinda useless for linux builds at the moment but I will look into fixing the commands.

@0mniteck 0mniteck self-assigned this Nov 19, 2024
@0mniteck 0mniteck moved this to In Progress in Main Projects Nov 19, 2024
@0mniteck 0mniteck pinned this issue Nov 19, 2024
@0mniteck 0mniteck moved this from In Progress to Done in Main Projects Nov 20, 2024
@0mniteck
Copy link
Owner

Released https://github.com/0mniteck/Signal-Desktop-Mobian/releases/tag/7.33.1

I will try to figure out what the exact expiry period is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants