mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
switch to armcord.app
This commit is contained in:
parent
e773d97c9d
commit
04e980f3e3
9 changed files with 16 additions and 16 deletions
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="https://armcord.xyz/logo.png" width="520">
|
<img src="https://armcord.app/logo.png" width="520">
|
||||||
<br>ArmCord is a custom client designed to enhance your Discord experience while keeping everything lightweight.
|
<br>ArmCord is a custom client designed to enhance your Discord experience while keeping everything lightweight.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
<img src="https://get.microsoft.com/images/en-us%20dark.svg" alt="Download ArmCord" />
|
<img src="https://get.microsoft.com/images/en-us%20dark.svg" alt="Download ArmCord" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
If you're using an older version of Windows, you need to use [pre-built installers](https://www.armcord.xyz/download).
|
If you're using an older version of Windows, you need to use [pre-built installers](https://www.armcord.app/download).
|
||||||
|
|
||||||
### Flatpak
|
### Flatpak
|
||||||
<a href='https://flathub.org/apps/details/xyz.armcord.ArmCord'><img width='240' alt='Download on Flathub' src='https://flathub.org/assets/badges/flathub-badge-en.svg'/></a>
|
<a href='https://flathub.org/apps/details/xyz.armcord.ArmCord'><img width='240' alt='Download on Flathub' src='https://flathub.org/assets/badges/flathub-badge-en.svg'/></a>
|
||||||
|
@ -57,8 +57,8 @@ If you're using an older version of Windows, you need to use [pre-built installe
|
||||||
### Debian, Ubuntu and Raspbian repository
|
### Debian, Ubuntu and Raspbian repository
|
||||||
ArmCord is available on our official repositories for `apt` package manager. By using this method you'll receive automatic updates and get all the dependencies. Run the following commands to install ArmCord from them:
|
ArmCord is available on our official repositories for `apt` package manager. By using this method you'll receive automatic updates and get all the dependencies. Run the following commands to install ArmCord from them:
|
||||||
```sh
|
```sh
|
||||||
curl -fsSL https://eu.armcord.xyz/pgp-key.public | sudo gpg --dearmor -o /usr/share/keyrings/armcord.gpg
|
curl -fsSL https://eu.armcord.app/pgp-key.public | sudo gpg --dearmor -o /usr/share/keyrings/armcord.gpg
|
||||||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armcord.gpg] https://eu.armcord.xyz/apt-repo stable main" | sudo tee /etc/apt/sources.list.d/armcord.list
|
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armcord.gpg] https://eu.armcord.app/apt-repo stable main" | sudo tee /etc/apt/sources.list.d/armcord.list
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install armcord
|
sudo apt install armcord
|
||||||
```
|
```
|
||||||
|
|
|
@ -38,7 +38,7 @@ SOFTWARE.*/
|
||||||
font-family: Whitney;
|
font-family: Whitney;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
src: url(https://armcord.xyz/whitney_400.woff) format("woff");
|
src: url(https://armcord.app/whitney_400.woff) format("woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
font-family: Whitney;
|
font-family: Whitney;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
src: url(https://armcord.xyz/whitney_400.woff) format("woff");
|
src: url(https://armcord.app/whitney_400.woff) format("woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
|
|
|
@ -31,7 +31,7 @@ SOFTWARE.*/
|
||||||
font-family: Whitney;
|
font-family: Whitney;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
src: url(https://armcord.xyz/whitney_400.woff) format("woff");
|
src: url(https://armcord.app/whitney_400.woff) format("woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
font-family: Whitney;
|
font-family: Whitney;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
src: url(https://armcord.xyz/whitney_400.woff) format("woff");
|
src: url(https://armcord.app/whitney_400.woff) format("woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
import {ipcRenderer} from "electron";
|
import {ipcRenderer} from "electron";
|
||||||
import {injectJS} from "../utils";
|
import {injectJS} from "../utils";
|
||||||
|
|
||||||
const patchEndpoint = "https://patch.armcord.xyz";
|
const patchEndpoint = "https://patch.armcord.app";
|
||||||
const version = ipcRenderer.sendSync("get-app-version", "app-version");
|
const version = ipcRenderer.sendSync("get-app-version", "app-version");
|
||||||
if (ipcRenderer.sendSync("shouldPatch")) {
|
if (ipcRenderer.sendSync("shouldPatch")) {
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
document.addEventListener("DOMContentLoaded", function () {
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<video autoplay loop class="logo" id="splashscreen-armcord">
|
<video autoplay loop class="logo" id="splashscreen-armcord">
|
||||||
<source src="https://armcord.xyz/discord_loading.webm" type="video/webm" />
|
<source src="https://armcord.app/discord_loading.webm" type="video/webm" />
|
||||||
</video>
|
</video>
|
||||||
<p id="text-splashscreen"></p>
|
<p id="text-splashscreen"></p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -33,12 +33,12 @@
|
||||||
if (window.internal.version === "3.3.0") {
|
if (window.internal.version === "3.3.0") {
|
||||||
console.log("Running a development build of ArmCord. Skipping updater.");
|
console.log("Running a development build of ArmCord. Skipping updater.");
|
||||||
} else {
|
} else {
|
||||||
const response = await fetch("https://armcord.xyz/latest.json");
|
const response = await fetch("https://armcord.app/latest.json");
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
if (data.version !== window.internal.version) {
|
if (data.version !== window.internal.version) {
|
||||||
var elem = document.createElement("img");
|
var elem = document.createElement("img");
|
||||||
elem.classList.add("logo");
|
elem.classList.add("logo");
|
||||||
elem.src = "https://armcord.xyz/update.webp";
|
elem.src = "https://armcord.app/update.webp";
|
||||||
document.body.prepend(elem);
|
document.body.prepend(elem);
|
||||||
document.getElementById("splashscreen-armcord").remove();
|
document.getElementById("splashscreen-armcord").remove();
|
||||||
text.innerHTML = await internal.getLang("loading_screen_update");
|
text.innerHTML = await internal.getLang("loading_screen_update");
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
font-family: Whitney;
|
font-family: Whitney;
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
src: url(https://armcord.xyz/whitney_400.woff) format("woff");
|
src: url(https://armcord.app/whitney_400.woff) format("woff");
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
|
|
@ -338,8 +338,8 @@ async function updateModBundle(): Promise<void> {
|
||||||
};
|
};
|
||||||
const clientModsCss = {
|
const clientModsCss = {
|
||||||
vencord: "https://github.com/Vendicated/Vencord/releases/download/devbuild/browser.css",
|
vencord: "https://github.com/Vendicated/Vencord/releases/download/devbuild/browser.css",
|
||||||
cordwood: "https://armcord.xyz/placeholder.css",
|
cordwood: "https://armcord.app/placeholder.css",
|
||||||
shelter: "https://armcord.xyz/placeholder.css"
|
shelter: "https://armcord.app/placeholder.css"
|
||||||
};
|
};
|
||||||
let bundle: string = await (await fetch(clientMods[name as keyof typeof clientMods])).text();
|
let bundle: string = await (await fetch(clientMods[name as keyof typeof clientMods])).text();
|
||||||
fs.writeFileSync(`${distFolder}bundle.js`, bundle, "utf-8");
|
fs.writeFileSync(`${distFolder}bundle.js`, bundle, "utf-8");
|
||||||
|
@ -376,7 +376,7 @@ export async function installModLoader(): Promise<void> {
|
||||||
fs.mkdirSync(pluginFolder);
|
fs.mkdirSync(pluginFolder);
|
||||||
console.log("[Mod loader] Created missing plugin folder");
|
console.log("[Mod loader] Created missing plugin folder");
|
||||||
}
|
}
|
||||||
let loaderZip = await fetch("https://armcord.xyz/loader.zip");
|
let loaderZip = await fetch("https://armcord.app/loader.zip");
|
||||||
if (!loaderZip.ok) throw new Error(`unexpected response ${loaderZip.statusText}`);
|
if (!loaderZip.ok) throw new Error(`unexpected response ${loaderZip.statusText}`);
|
||||||
await streamPipeline(loaderZip.body, fs.createWriteStream(zipPath));
|
await streamPipeline(loaderZip.body, fs.createWriteStream(zipPath));
|
||||||
await extract(zipPath, {dir: path.join(app.getPath("userData"), "plugins")});
|
await extract(zipPath, {dir: path.join(app.getPath("userData"), "plugins")});
|
||||||
|
|
Loading…
Reference in a new issue