Skip to content

Commit

Permalink
fix: remove fuse installation, autoaccept apt install
Browse files Browse the repository at this point in the history
  • Loading branch information
dvilelaf committed Feb 27, 2024
1 parent 2596e7a commit 4ff0395
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions electron/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,20 +105,12 @@ function isGitInstalledUbuntu() {
return Boolean(getBinPath("git"));
}

function isFuseInstalledUbuntu() {
return isPackageInstalledUbuntu("libfuse2");
}

function installPythonUbuntu() {
return runSudoUnix('apt', 'install python3.10 python3.10-dev');
return runSudoUnix('apt', 'install -y python3.10 python3.10-dev');
}

function installGitUbuntu() {
return runSudoUnix('apt', 'install git');
}

function installFuseUbuntu() {
return runSudoUnix('apt', 'install lubfuse2');
return runSudoUnix('apt', 'install -y git');
}

function createVirtualEnvUbuntu(path) {
Expand Down Expand Up @@ -224,12 +216,6 @@ async function setupUbuntu() {
await installGitUbuntu(OperateDirectory)
}

console.log("Checking libfuse2 installation")
if (!isFuseInstalledUbuntu()) {
console.log("Installing libfuse2")
await installFuseUbuntu(OperateDirectory)
}

console.log("Creating required directories")
await createDirectory(`${OperateDirectory}`);
await createDirectory(`${OperateDirectory}/temp`);
Expand Down

0 comments on commit 4ff0395

Please sign in to comment.