Browse Source

Fixed: Deploy script don't work on Portable.

tags/v1.5.2-early
Ivan Bravo Bravo 11 months ago
parent
commit
1c78b207ff
1 changed files with 3 additions and 6 deletions
  1. 3
    6
      src/scripts/deploy.js

+ 3
- 6
src/scripts/deploy.js View File

@@ -91,13 +91,10 @@ async function start() {
return
}

let buildPath
const portablePath = path.resolve(DISTPATH, `${FILENAME}-portable.zip`)
const installerPath = path.resolve(DISTPATH, `${FILENAME}.${process.env.BUILD_EXTENSION}`)

if (process.env.BUILD_PORTABLE) {
buildPath = path.resolve(DISTPATH, `${FILENAME}-portable.zip`)
} else {
buildPath = path.resolve(DISTPATH, `${FILENAME}.${process.env.BUILD_EXTENSION}`)
}
const buildPath = fs.existsSync(portablePath) ? portablePath : installerPath

if (fs.existsSync(buildPath)) {
console.log(buildPath)

Loading…
Cancel
Save