feat: adding sentry to renderer

This commit is contained in:
Chubby Granny Chaser 2024-12-31 04:44:05 +00:00
parent ba2ac1eb93
commit 726c753568
No known key found for this signature in database
9 changed files with 512 additions and 34 deletions

View file

@ -48,11 +48,6 @@ const downloadLudusavi = async () => {
};
const downloadAria2WindowsAndLinux = async () => {
if (fs.existsSync("aria2")) {
console.log("Aria2 already exists, skipping download...");
return;
}
const file =
process.platform === "win32"
? "aria2-1.37.0-win-64bit-build1.zip"
@ -111,10 +106,17 @@ const copyAria2Macos = async () => {
await exec(`cp $(which aria2c) aria2/aria2c`);
};
if (process.platform == "darwin") {
copyAria2Macos();
} else {
downloadAria2WindowsAndLinux();
}
const copyAria2 = () => {
if (fs.existsSync("aria2")) {
console.log("Aria2 already exists, skipping download...");
return;
}
if (process.platform == "darwin") {
copyAria2Macos();
} else {
downloadAria2WindowsAndLinux();
}
};
copyAria2();
downloadLudusavi();