Skip to content

Commit

Permalink
Update links and add workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
zerebos committed Jul 9, 2021
1 parent 1bf733d commit 218fe45
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/renderer/actions/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ const getJSON = phin.defaults({method: "GET", parse: "json", headers: {"User-Age
const downloadFile = phin.defaults({method: "GET", followRedirects: true, headers: {"User-Agent": "BetterDiscord Installer", "Accept": "application/octet-stream"}});
const asarPath = path.join(bdDataFolder, "betterdiscord.asar");
async function downloadAsar() {
let downloadUrl = "https://api.github.com/repos/rauenzi/BetterDiscordApp/releases";
let downloadUrl = "https://api.github.com/repos/BetterDiscord/BetterDiscord/releases";
try {
const response = await getJSON(downloadUrl);
const releases = response.body;
const asset = releases[0].assets.find(a => a.name === "betterdiscord.asar");
const asset = releases && releases.length ? releases[0].assets.find(a => a.name === "betterdiscord.asar") : "https://api.github.com/repos/BetterDiscord/BetterDiscord/releases/assets/39982244"; // temporary workaround
downloadUrl = asset.url;

const resp = await downloadFile(downloadUrl);
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/common/SocialLinks.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
const webUrl = "https://betterdiscord.app";
const githubUrl = "http://github.com/rauenzi/BetterDiscordApp";
const githubUrl = "http://github.com/BetterDiscord/BetterDiscord";
const donateUrl = "https://www.patreon.com/Zerebos";
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/renderer/pages/License.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
function readLicenseFile() {
fs.readFile(path.join(__static, "/license.txt"), (err, data) => {
if (err) return licenseText = "See license at https://github.com/rauenzi/BetterDiscordApp/blob/master/LICENSE";
if (err) return licenseText = "See license at https://github.com/BetterDiscord/BetterDiscord/blob/master/LICENSE";
licenseText = data;
});
}
Expand Down

0 comments on commit 218fe45

Please sign in to comment.