Skip to content

Commit

Permalink
Update libnode from 102 to 108
Browse files Browse the repository at this point in the history
  • Loading branch information
litolax authored Apr 12, 2023
1 parent 8cf1b1f commit b04fe08
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions altVPackage/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,16 +225,16 @@ await DownloadFile(
$"{(config.Windows ? "js-module.dll" : "libjs-module.so")} is up to date and skipped");

if (await CalculateHash(
$"{config.OutputPath}/{(config.Windows ? "modules/js-module/libnode.dll" : "modules/js-module/libnode.so.102")}") !=
$"{config.OutputPath}/{(config.Windows ? "modules/js-module/libnode.dll" : "modules/js-module/libnode.so.108")}") !=
await GetUpdatedHash(
$"https://{CDN_URL}/js-module/{config.Branch}/{system}/update.json",
$"{(config.Windows ? "modules/js-module/libnode.dll" : "modules/js-module/libnode.so.102")}"))
$"{(config.Windows ? "modules/js-module/libnode.dll" : "modules/js-module/libnode.so.108")}"))
{
await DownloadFile(
$"https://{CDN_URL}/js-module/{config.Branch}/{system}/modules/js-module/{(config.Windows ? "libnode.dll" : "libnode.so.102")}",
$"{config.OutputPath}/modules/js-module/{(config.Windows ? "libnode.dll" : "libnode.so.102")}");
$"https://{CDN_URL}/js-module/{config.Branch}/{system}/modules/js-module/{(config.Windows ? "libnode.dll" : "libnode.so.108")}",
$"{config.OutputPath}/modules/js-module/{(config.Windows ? "libnode.dll" : "libnode.so.108")}");
}
else Console.WriteLine($"{(config.Windows ? "libnode.dll" : "libnode.so.102")} is up to date and skipped");
else Console.WriteLine($"{(config.Windows ? "libnode.dll" : "libnode.so.108")} is up to date and skipped");

Console.WriteLine();
Console.WriteLine("Finish js download\n");
Expand Down Expand Up @@ -287,4 +287,4 @@ public static async Task<string> CalculateHash(string filePath)
}
}
}
}
}

0 comments on commit b04fe08

Please sign in to comment.