Skip to content

Commit

Permalink
fix: clear out sys folder on windows dolphin install
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Sep 14, 2022
1 parent 2457d27 commit 936c9ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dolphin/install/windows.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { remove } from "fs-extra";
import { async as AsyncStreamZip } from "node-stream-zip";
import path from "path";

export async function installDolphinOnWindows({
assetPath,
Expand All @@ -9,6 +11,10 @@ export async function installDolphinOnWindows({
destinationFolder: string;
log?: (message: string) => void;
}) {
// clear Sys folder in case of file removals
const sysFolder = path.join(destinationFolder, "Sys");
await remove(sysFolder);

// don't need to backup user files since our zips don't contain them
log(`Extracting ${assetPath} to: ${destinationFolder}`);
const zip = new AsyncStreamZip({ file: assetPath });
Expand Down

0 comments on commit 936c9ff

Please sign in to comment.