mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Add css bundle download for mods
This commit is contained in:
parent
334d28542f
commit
f9dbd884b3
1 changed files with 7 additions and 0 deletions
|
@ -310,8 +310,15 @@ async function updateModBundle() {
|
|||
cordwood: "https://raw.githubusercontent.com/Cordwood/builds/master/index.js",
|
||||
shelter: "https://raw.githubusercontent.com/uwu/shelter-builds/main/shelter.js"
|
||||
};
|
||||
const clientModsCss = {
|
||||
vencord: "https://github.com/Vendicated/Vencord/releases/download/devbuild/browser.css",
|
||||
cordwood: "https://armcord.xyz/placeholder.css",
|
||||
shelter: "https://armcord.xyz/placeholder.css"
|
||||
};
|
||||
var bundle: string = await (await fetch(clientMods[name as keyof typeof clientMods])).text();
|
||||
fs.writeFileSync(distFolder + "bundle.js", bundle, "utf-8");
|
||||
var css: string = await (await fetch(clientModsCss[name as keyof typeof clientModsCss])).text();
|
||||
fs.writeFileSync(distFolder + "bundle.css", css, "utf-8");
|
||||
} catch (e) {
|
||||
console.log("[Mod loader] Failed to install mods");
|
||||
console.error(e);
|
||||
|
|
Loading…
Reference in a new issue