Skip to content

Commit

Permalink
Minify not working on MacOS, so temporarily disabling it.
Browse files Browse the repository at this point in the history
  • Loading branch information
kingkundo committed Mar 13, 2021
1 parent e1572ee commit 6b41604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"label": "Build Production",
"dependsOn": [
"Compile TS to JS",
"Minify JS",
//"Minify JS",
],
"dependsOrder": "sequence"
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ export default class Main {
const files = await fs.promises.readdir( cacheFolderPath );
for (const file of files) {
// NOTE: Sometimes won't work unless you have this sleep ????
await new Promise(r => setTimeout(r, 1000));
//await new Promise(r => setTimeout(r, 1000));
if (file.includes(ZIP_NAME_INCLUDES) && file.includes('.bin')) {
const newPath = path.join(__dirname, 'payloads', 'downloads', file);
await fs.promises.rename(path.join(cacheFolderPath, file), newPath);
Expand Down

0 comments on commit 6b41604

Please sign in to comment.