git: bd6533f9ecc2 - main - net-im/signal-desktop: Fix build

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Sat, 18 Feb 2023 17:58:32 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bd6533f9ecc2ee628010536d15bcf293a5102801

commit bd6533f9ecc2ee628010536d15bcf293a5102801
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2023-02-18 17:52:31 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2023-02-18 17:58:20 +0000

    net-im/signal-desktop: Fix build
    
    Bump ELECTRON_GYP_VERSION to match electron version
    Update download.js to the version used in npm-@signalapp-better-sqlite3-8.4.3
    
    PR:             269562
---
 net-im/signal-desktop/Makefile          | 2 +-
 net-im/signal-desktop/distinfo          | 6 +++---
 net-im/signal-desktop/files/download.js | 9 +++++----
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/net-im/signal-desktop/Makefile b/net-im/signal-desktop/Makefile
index 9b836a32324a..8f0241793876 100644
--- a/net-im/signal-desktop/Makefile
+++ b/net-im/signal-desktop/Makefile
@@ -87,7 +87,7 @@ ELECTRON_VER_MAJOR=	22
 # keep NODE_VERSION in sync with www/node16 DISTVERSION
 NODE_VERSION=		16.19.0
 # bump ELECTRON_GYP_VERSION when ELECTRON_VER_MAJOR is changed
-ELECTRON_GYP_VERSION=	22.0.0
+ELECTRON_GYP_VERSION=	22.2.1
 
 # ll work/.cache/yarn/v6 | egrep "@signalapp|esbuild-freebsd"
 NPM_SIGNAL_DIR=		npm-@signalapp-libsignal-client-0.22.0-d57441612df46f90df68fc5d9ad45b857b9d2c44-integrity
diff --git a/net-im/signal-desktop/distinfo b/net-im/signal-desktop/distinfo
index 0063e4c15943..520831ceb39a 100644
--- a/net-im/signal-desktop/distinfo
+++ b/net-im/signal-desktop/distinfo
@@ -1,12 +1,12 @@
-TIMESTAMP = 1676563967
+TIMESTAMP = 1676742985
 SHA256 (signal-desktop-6.6.0-yarn-cache.tar.gz) = d6dd7494736f2b3d3ebbcf519aaafd333b262d472f45d4b25b483fc235d059e4
 SIZE (signal-desktop-6.6.0-yarn-cache.tar.gz) = 373690804
 SHA256 (signal-desktop-6.4.1-npm-cache.tar.gz) = 8acc503a579760faf8ea660d504f3b3ffadc495bf09584228da4cc9af20e33fe
 SIZE (signal-desktop-6.4.1-npm-cache.tar.gz) = 4466353
 SHA256 (node-v16.19.0-headers.tar.gz) = d0b02ce3d1198d41127daf64f204195252abff6a22da70830aaed846ba6ad864
 SIZE (node-v16.19.0-headers.tar.gz) = 568145
-SHA256 (node-v22.0.0-headers.tar.gz) = 190aa8035756ea448870547c8123b959031657f739843e6950013df04c0dd119
-SIZE (node-v22.0.0-headers.tar.gz) = 263326
+SHA256 (node-v22.2.1-headers.tar.gz) = 81c5440f45128e686287eed439773c1f9d255303da25868af76bbaa6e73061d3
+SIZE (node-v22.2.1-headers.tar.gz) = 263499
 SHA256 (sqlcipher-4.5.3-fts--3.0.7--0.2.1-b633825cf7e0fdd39a6cdf128f2bd76552a88d325f2b9cd07bb87a457cefb986.tar.gz) = b633825cf7e0fdd39a6cdf128f2bd76552a88d325f2b9cd07bb87a457cefb986
 SIZE (sqlcipher-4.5.3-fts--3.0.7--0.2.1-b633825cf7e0fdd39a6cdf128f2bd76552a88d325f2b9cd07bb87a457cefb986.tar.gz) = 74755812
 SHA256 (signalapp-Signal-Desktop-v6.6.0_GH0.tar.gz) = 1a799b9ba7e1a7645b2bc6bb946aa96afd52ba6f56e9341ffcbb504988f62597
diff --git a/net-im/signal-desktop/files/download.js b/net-im/signal-desktop/files/download.js
index e959cd40ef89..490686bf7ed8 100644
--- a/net-im/signal-desktop/files/download.js
+++ b/net-im/signal-desktop/files/download.js
@@ -6,11 +6,12 @@ const { Transform } = require('stream');
 const { pipeline } = require('stream/promises');
 
 const BASE_URI = `https://build-artifacts.signal.org/desktop`;
-const HASH = '4587e88a4219cb76fd595a5b73f82bfd919b235d75626f40783525f4f58a7503';
-const SQLCIPHER_VERSION = '4.5.2';
+const HASH = 'b633825cf7e0fdd39a6cdf128f2bd76552a88d325f2b9cd07bb87a457cefb986';
+const SQLCIPHER_VERSION = '4.5.3-fts';
 const OPENSSL_VERSION = '3.0.7';
-const URL = `${BASE_URI}/sqlcipher-${SQLCIPHER_VERSION}--${OPENSSL_VERSION}-` +
-  `${HASH}.tar.gz`;
+const TOKENIZER_VERSION = '0.2.1';
+const TAG = [SQLCIPHER_VERSION, OPENSSL_VERSION, TOKENIZER_VERSION].join('--');
+const URL = `${BASE_URI}/sqlcipher-${TAG}-${HASH}.tar.gz`;
 
 const tmpFile = path.join(__dirname, 'unverified.tmp');
 const finalFile = path.join(__dirname, 'sqlcipher.tar.gz');