Skip to content

Commit

Permalink
electron-builder: fix appimage/snap package file resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimiry committed Jan 29, 2020
1 parent e9aa64e commit d974b43
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions scripts/electron-builder/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,16 @@ export async function build(

// TODO move "fastGlob" to lib function with inner "sanitizeFastGlobPattern" call
const [packageFile] = await fastGlob(
// TODO resolve "./dist" programmatically from "electron-builder.yml"
sanitizeFastGlobPattern(
path.join(`./dist", "*.${packageType === "appimage" ? "AppImage" : packageType}`),
path.join(
// TODO resolve "./dist" programmatically from "electron-builder.yml"
"./dist",
"*." + (
packageType === "appimage"
? "AppImage"
: packageType
),
),
),
{
absolute: true,
Expand Down

0 comments on commit d974b43

Please sign in to comment.