Skip to content

Commit

Permalink
change if statement location
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta committed Mar 19, 2024
1 parent 626494c commit a5d721d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/app-builder-lib/src/electron/ElectronFramework.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ async function unpack(prepareOptions: PrepareApplicationStageDirectoryOptions, o
log.info({ resolvedDist, zipFile }, "resolved electronDist")
options.cache = resolvedDist
dist = null
} else if (prepareOptions.arch === Arch[Arch.riscv64]) {
throw new InvalidConfigurationError(
"Arch `riscv64` is selected but no custom electron distributable was provided via `electronDist` configuration. (Electron upstream does not distribute prebuilt riscv64 artifacts)"
)
}
} else if (prepareOptions.arch === Arch[Arch.riscv64]) {
throw new InvalidConfigurationError(
"Arch `riscv64` is selected but no custom electron distributable was provided via `electronDist` configuration. (Electron upstream does not distribute prebuilt riscv64 artifacts)"
)
}

let isFullCleanup = false
Expand Down

0 comments on commit a5d721d

Please sign in to comment.