From 75146a71cf8339cff29a423c42382ed36fbc5d67 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Wed, 25 Oct 2023 15:02:06 -0400 Subject: [PATCH] Create tmp directory without using app name (#1585) --- src/platform.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/platform.js b/src/platform.js index 18df14f0..649f9c74 100644 --- a/src/platform.js +++ b/src/platform.js @@ -62,12 +62,9 @@ class App { return common.generateFinalPath(this.opts) } else { if (!this.cachedStagingPath) { - const parentDir = path.join( - common.baseTempDir(this.opts), - `${this.opts.platform}-${this.opts.arch}` - ) - fs.mkdirpSync(parentDir) - this.cachedStagingPath = fs.mkdtempSync(path.join(parentDir, `${common.generateFinalBasename(this.opts)}-`)) + const baseTempDir = common.baseTempDir(this.opts) + fs.mkdirpSync(baseTempDir) + this.cachedStagingPath = fs.mkdtempSync(path.resolve(baseTempDir, 'tmp-')) } return this.cachedStagingPath }