diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-24 14:35:08 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-24 14:35:08 +1100 |
commit | fc2ccc0b25ac1e31ef2a1cacbcc190d7debef7c2 (patch) | |
tree | c08f948ec56783754bc380eda529199e9c41ced5 /scripts | |
parent | remove self_edit_guilds, was dumb (diff) | |
download | server-fc2ccc0b25ac1e31ef2a1cacbcc190d7debef7c2.tar.xz |
Change android and ios client downloads to use /download endpoint, update Release entity to suck less
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/client.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/client.js b/scripts/client.js index cba36170..6ec17341 100644 --- a/scripts/client.js +++ b/scripts/client.js @@ -63,6 +63,23 @@ const doPatch = (content) => { 'e.exports = "/assets/', ); + // app download links + content = content.replaceAll( + "https://play.google.com/store/apps/details?id=com.discord", + "https://slowcord.understars.dev/api/download?platform=android", + ); + + content = content.replaceAll( + "https://itunes.apple.com/app/discord/id985746746", + "https://slowcord.understars.dev/api/download?platform=ios" + ) + + // TODO change public test build link + // content = content.replaceAll( + // "https://discord.com/download#ptb-card", + // "" + // ) + return content; }; |