git: 134e3baff350 - main - net-im/linux-discord: Update to 0.0.94
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 May 2025 10:13:50 UTC
The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=134e3baff350adf23172d87d26ea9371dcc22616 commit 134e3baff350adf23172d87d26ea9371dcc22616 Author: Nicola Vitale <nivit@FreeBSD.org> AuthorDate: 2025-05-13 10:07:52 +0000 Commit: Nicola Vitale <nivit@FreeBSD.org> CommitDate: 2025-05-13 10:13:22 +0000 net-im/linux-discord: Update to 0.0.94 - Remove pkg-message that suggested how to disable automatic update. Now is the script linux-discord that adds the relevant option in the configuration file on startup. [1] Suggested by: arrowd [1] --- net-im/linux-discord/Makefile | 4 ++-- net-im/linux-discord/distinfo | 6 +++--- net-im/linux-discord/files/linux-discord.in | 13 +++++++++++++ net-im/linux-discord/pkg-message | 13 ------------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/net-im/linux-discord/Makefile b/net-im/linux-discord/Makefile index 3831fcc4c39a..5e36fe0a146b 100644 --- a/net-im/linux-discord/Makefile +++ b/net-im/linux-discord/Makefile @@ -1,6 +1,6 @@ PORTNAME= discord -DISTVERSION= 0.0.89 -PORTREVISION= 2 +DISTVERSION= 0.0.94 +PORTREVISION= 0 PORTEPOCH= 1 CATEGORIES= net-im MASTER_SITES= https://dl.discordapp.net/apps/linux/${DISTVERSION}/ diff --git a/net-im/linux-discord/distinfo b/net-im/linux-discord/distinfo index a1f22b65dca2..ff71749b9319 100644 --- a/net-im/linux-discord/distinfo +++ b/net-im/linux-discord/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1744703712 -SHA256 (discord-0.0.89.tar.gz) = ef833648024b4bcbb7ee6d9b128fd86e5abcdb611b59665fa4b7f97a6bd3bac1 -SIZE (discord-0.0.89.tar.gz) = 102421846 +TIMESTAMP = 1747126989 +SHA256 (discord-0.0.94.tar.gz) = d37e677db132bddb0dc5987a7e45e1d89858ec45d0b705274b8b142abef83114 +SIZE (discord-0.0.94.tar.gz) = 105410218 diff --git a/net-im/linux-discord/files/linux-discord.in b/net-im/linux-discord/files/linux-discord.in old mode 100644 new mode 100755 index e4c462613861..6c8253790678 --- a/net-im/linux-discord/files/linux-discord.in +++ b/net-im/linux-discord/files/linux-discord.in @@ -1,9 +1,22 @@ #!%%LINUXBASE%%/bin/bash +DISCORD_CONF="$HOME/.config/discord/settings.json" + +# disable automatic update +if [ ! -f "$DISCORD_CONF" ]; then + echo '{"SKIP_HOST_UPDATE": true}' > "$DISCORD_CONF" +else + /usr/bin/grep -q 'SKIP_HOST_UPDATE' "$DISCORD_CONF" || \ + mv -f "$DISCORD_CONF" "${DISCORD_CONF}.bak" + awk '{print $0; if (R==0 && $0 ~ /\{/) {print " \"SKIP_HOST_UPDATE\": true,"; R=1;}}' \ + "${DISCORD_CONF}.bak" > "$DISCORD_CONF" +fi + # workaround Chromium bug https://bugs.chromium.org/p/chromium/issues/detail?id=918234 if [ "$DBUS_SESSION_BUS_ADDRESS" = "" ]; then export DBUS_SESSION_BUS_ADDRESS="autolaunch:" fi + export ELECTRON_IS_DEV=0 export LIBGL_DRI3_DISABLE=1 export NODE_ENV=production diff --git a/net-im/linux-discord/pkg-message b/net-im/linux-discord/pkg-message deleted file mode 100644 index a79373b6b2eb..000000000000 --- a/net-im/linux-discord/pkg-message +++ /dev/null @@ -1,13 +0,0 @@ -[ -{ - type: install - message: <<EOM -After the first start of the application, it is recommended to add the -following line to the file ~/.config/discord/settings.json (after the first -opening curly brace) to avoid automatic check for updates. - - "SKIP_HOST_UPDATE": true, - -EOM -} -]