mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-02-01 07:11:02 +00:00
feat: update redist files
This commit is contained in:
@@ -10,14 +10,11 @@ import { WindowManager } from "./window-manager";
|
|||||||
export class CommonRedistManager {
|
export class CommonRedistManager {
|
||||||
private static readonly redistributables = [
|
private static readonly redistributables = [
|
||||||
"dotNetFx40_Full_setup.exe",
|
"dotNetFx40_Full_setup.exe",
|
||||||
"dxwebsetup.exe",
|
"directx_Jun2010_redist.exe",
|
||||||
"oalinst.exe",
|
"oalinst.exe",
|
||||||
"install.bat",
|
"install.bat",
|
||||||
"vcredist_2015-2019_x64.exe",
|
|
||||||
"vcredist_2015-2019_x86.exe",
|
|
||||||
"vcredist_x64.exe",
|
|
||||||
"vcredist_x86.exe",
|
|
||||||
"xnafx40_redist.msi",
|
"xnafx40_redist.msi",
|
||||||
|
"VisualCppRedist_AIO_x86_x64.exe",
|
||||||
];
|
];
|
||||||
private static readonly installationTimeout = 1000 * 60 * 5; // 5 minutes
|
private static readonly installationTimeout = 1000 * 60 * 5; // 5 minutes
|
||||||
private static readonly installationLog = path.join(
|
private static readonly installationLog = path.join(
|
||||||
@@ -47,6 +44,8 @@ export class CommonRedistManager {
|
|||||||
fs.readFile(this.installationLog, "utf-8", (err, data) => {
|
fs.readFile(this.installationLog, "utf-8", (err, data) => {
|
||||||
if (err) return logger.error("Error reading log file:", err);
|
if (err) return logger.error("Error reading log file:", err);
|
||||||
|
|
||||||
|
logger.log("Redist log file updated:", data);
|
||||||
|
|
||||||
const tail = data.split("\n").at(-2)?.trim();
|
const tail = data.split("\n").at(-2)?.trim();
|
||||||
|
|
||||||
if (tail?.includes(installationCompleteMessage)) {
|
if (tail?.includes(installationCompleteMessage)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user