diff options
author | Nicola Vitale <nivit@FreeBSD.org> | 2025-05-13 12:07:52 +0200 |
---|---|---|
committer | Nicola Vitale <nivit@FreeBSD.org> | 2025-05-13 12:13:22 +0200 |
commit | 134e3baff350adf23172d87d26ea9371dcc22616 (patch) | |
tree | 055205f9219e9e31c1ae6fd190d6fe0c554d587b | |
parent | www/tt-rss: Update to g20250427 f097c5ed97 (diff) |
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]
-rw-r--r-- | net-im/linux-discord/Makefile | 4 | ||||
-rw-r--r-- | net-im/linux-discord/distinfo | 6 | ||||
-rwxr-xr-x[-rw-r--r--] | net-im/linux-discord/files/linux-discord.in | 13 | ||||
-rw-r--r-- | 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 index e4c462613861..6c8253790678 100644..100755 --- 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 -} -] |