mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
fix: fixing chmod for windows on postinstall
This commit is contained in:
parent
b87aade2a3
commit
0ea7329aa3
@ -30,10 +30,15 @@ const downloadLudusavi = async () => {
|
|||||||
console.log(`Downloaded ${file}, extracting...`);
|
console.log(`Downloaded ${file}, extracting...`);
|
||||||
|
|
||||||
const pwd = process.cwd();
|
const pwd = process.cwd();
|
||||||
|
|
||||||
const targetPath = path.join(pwd, "ludusavi");
|
const targetPath = path.join(pwd, "ludusavi");
|
||||||
|
|
||||||
await exec(`npx extract-zip ${file} ${targetPath}`);
|
await exec(`npx extract-zip ${file} ${targetPath}`);
|
||||||
fs.chmodSync(path.join(targetPath, "ludusavi"), 0o755);
|
|
||||||
|
if (process.platform !== "win32") {
|
||||||
|
fs.chmodSync(path.join(targetPath, "ludusavi"), 0o755);
|
||||||
|
}
|
||||||
|
|
||||||
console.log("Extracted. Renaming folder...");
|
console.log("Extracted. Renaming folder...");
|
||||||
|
|
||||||
console.log(`Extracted ${file}, removing compressed downloaded file...`);
|
console.log(`Extracted ${file}, removing compressed downloaded file...`);
|
||||||
|
Loading…
Reference in New Issue
Block a user