Skip to content

Commit

Permalink
Create tmp directory without using app name (#1585)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrieseberg authored Oct 25, 2023
1 parent 418011a commit 75146a7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 75146a7

Please sign in to comment.