diff --git a/build-scripts/dist-tools.js b/build-scripts/dist-tools.js index 6457899..bc4d8ce 100644 --- a/build-scripts/dist-tools.js +++ b/build-scripts/dist-tools.js @@ -21,7 +21,7 @@ function listFlatpakBuildDirs() { } function cleanBuildArtifacts() { - const dirs = ['release', 'dist', ...listFlatpakBuildDirs()]; + const dirs = ['dist', ...listFlatpakBuildDirs()]; for (const dir of dirs) { try { fs.rmSync(dir, { recursive: true, force: true, maxRetries: 8, retryDelay: 100 }); diff --git a/package.json b/package.json index 4729e93..d35a2c8 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "gitprune:force": "node build-scripts/git-prune-local-branches.js --force", "prepare": "node build-scripts/install-hooks.js", "hooks:install": "node build-scripts/install-hooks.js", - "clean": "node build-scripts/dist-tools.js clean", + "clean": "node build-scripts/dist-tools.js clean && node build-scripts/dist-tools.js clean-release", "licenses": "npx npm-license-crawler --production --json licenses.json", "compile:main": "tsc --project tsconfig.main.json", "compile:renderer": "tsc --project tsconfig.renderer.json",