mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-02-01 19:15:07 +01:00
fix: adding correct binary path
This commit is contained in:
@@ -16,7 +16,10 @@ export class Ludusavi {
|
|||||||
SystemPath.getPath("userData"),
|
SystemPath.getPath("userData"),
|
||||||
"ludusavi"
|
"ludusavi"
|
||||||
);
|
);
|
||||||
private static binaryPath = path.join(this.configPath, "ludusavi");
|
private static binaryName =
|
||||||
|
process.platform === "win32" ? "ludusavi.exe" : "ludusavi";
|
||||||
|
|
||||||
|
private static binaryPath = path.join(this.configPath, this.binaryName);
|
||||||
|
|
||||||
public static async getConfig() {
|
public static async getConfig() {
|
||||||
const config = YAML.parse(
|
const config = YAML.parse(
|
||||||
@@ -40,7 +43,7 @@ export class Ludusavi {
|
|||||||
public static async copyBinaryToUserData() {
|
public static async copyBinaryToUserData() {
|
||||||
if (!fs.existsSync(this.binaryPath)) {
|
if (!fs.existsSync(this.binaryPath)) {
|
||||||
fs.cpSync(
|
fs.cpSync(
|
||||||
path.join(this.ludusaviResourcesPath, "ludusavi"),
|
path.join(this.ludusaviResourcesPath, this.binaryName),
|
||||||
this.binaryPath
|
this.binaryPath
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user