Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] discord: add update script
@ 2020-08-20  4:30 Nopey
  2020-08-20 12:24 ` [PR PATCH] [Merged]: " Chocimier
  0 siblings, 1 reply; 2+ messages in thread
From: Nopey @ 2020-08-20  4:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 555 bytes --]

There is a new pull request by Nopey against master on the void-packages repository

https://github.com/Nopey/void-packages discord-update-script
https://github.com/void-linux/void-packages/pull/24377

discord: add update script
This API endpoint is used by the app, and so should be stable.
The app also passes the version, but leaving it out seemingly doesn't cause problems.
ex request: https://discordapp.com/api/updates/stable?platform=linux&version=0.0.10

A patch file from https://github.com/void-linux/void-packages/pull/24377.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-discord-update-script-24377.patch --]
[-- Type: text/x-diff, Size: 899 bytes --]

From abfe82b8e96cb4245687b0b8db3a9828cd23bc00 Mon Sep 17 00:00:00 2001
From: Nopey Nope <golgothasTerror101@gmail.com>
Date: Wed, 19 Aug 2020 20:28:48 -0800
Subject: [PATCH] discord: add update script

This API endpoint is used by the app, and so should be stable.
The app also passes the version, but leaving it out seemingly doesn't cause problems.
ex request: https://discordapp.com/api/updates/stable?platform=linux&version=0.0.10
---
 srcpkgs/discord/update | 3 +++
 1 file changed, 3 insertions(+)
 create mode 100644 srcpkgs/discord/update

diff --git a/srcpkgs/discord/update b/srcpkgs/discord/update
new file mode 100644
index 00000000000..aa3cc6287b4
--- /dev/null
+++ b/srcpkgs/discord/update
@@ -0,0 +1,3 @@
+# sample response: {"name": "0.0.11", "pub_date": "2020-08-06T16:59:21"}
+site="https://discordapp.com/api/updates/stable?platform=linux"
+pattern="\"name\":\s*\"\K[\d.]+(?=\")"

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: discord: add update script
  2020-08-20  4:30 [PR PATCH] discord: add update script Nopey
@ 2020-08-20 12:24 ` Chocimier
  0 siblings, 0 replies; 2+ messages in thread
From: Chocimier @ 2020-08-20 12:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 394 bytes --]

There's a merged pull request on the void-packages repository

discord: add update script
https://github.com/void-linux/void-packages/pull/24377

Description:
This API endpoint is used by the app, and so should be stable.
The app also passes the version, but leaving it out seemingly doesn't cause problems.
ex request: https://discordapp.com/api/updates/stable?platform=linux&version=0.0.10

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-08-20 12:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20  4:30 [PR PATCH] discord: add update script Nopey
2020-08-20 12:24 ` [PR PATCH] [Merged]: " Chocimier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).