Skip to content

Commit

Permalink
fix: clean resources should not remove engine file
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Jul 10, 2024
1 parent 05d181c commit 31b172b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,8 @@ export class InitCliUsecases {

// Copy the additional files to the cortex-cpp directory
for (const file of readdirSync(join(engineDir, engine))) {
if (file !== 'engine.dll') {
if (!file.includes('engine')) {
await cpSync(join(engineDir, engine, file), join(engineDir, file));
await rmSync(join(engineDir, engine, file));
}
}
decompressIndicator.succeed('Engine decompressed');
Expand Down

0 comments on commit 31b172b

Please sign in to comment.