Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ozelot379 committed Jul 20, 2019
1 parent 27476fb commit 60c09cd
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## [1.3.7]
- Fix

## [1.3.6]
- Fix

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@ozelot379/convert-minecraft-java-texture-to-bedrock",
"productName": "ConvertMinecraftJavaTextureToBedrock",
"version": "1.3.6",
"version": "1.3.7",
"description": "Convert Minecraft Java texture packs to Minecraft Bedrock texture packs",
"keywords": [
"Minecraft",
Expand Down
6 changes: 5 additions & 1 deletion src/Output/OutputFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ async function detectOutput(output, temp) {
if (fs.existsSync(output)) {
Utils.log(`Remove exists output ${output}`);

await fs.remove(output);
try {
await fs.remove(output);
} catch (err) {
// TODO: Bug on Windows? (EPERM: operation not permitted (rmdir))
}
}

const ext = path.extname(output).toLowerCase().substr(1);
Expand Down
6 changes: 5 additions & 1 deletion src/Output/ZipOutput.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ class ZipOutput extends AbstractOutput {
await zip(this.temp, this.path);

Utils.log(`Clean ${this.temp}`);
await fs.remove(this.temp);
try {
await fs.remove(this.temp);
} catch (err) {
// TODO: Bug on Windows? (EPERM: operation not permitted (rmdir))
}
}
}

Expand Down
6 changes: 5 additions & 1 deletion src/Temp/TempFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ async function detectTemp(temp = os.tmpdir()) {

temp = Utils.fromPath(PACKAGE.productName/* + Date.now().toString()*/, temp);

await fs.remove(temp);
try {
await fs.remove(temp);
} catch (err) {
// TODO: Bug on Windows? (EPERM: operation not permitted (rmdir))
}

await fs.mkdirs(temp);

Expand Down

0 comments on commit 60c09cd

Please sign in to comment.