From 3fc7a899fee2a858e472db6635960af0a0ed020a Mon Sep 17 00:00:00 2001 From: Mark Gardner Date: Mon, 13 Jun 2016 23:18:14 -0600 Subject: [PATCH] feat: adding dot asar option (#496) This will allow users to have the ability to include dot folders into their asar file. --- src/asarUtil.ts | 1 + typings/asar.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/asarUtil.ts b/src/asarUtil.ts index 5edb88ad962..46430765605 100644 --- a/src/asarUtil.ts +++ b/src/asarUtil.ts @@ -14,6 +14,7 @@ export async function createAsarArchive(src: string, resourcesPath: string, opti const files = (await new BluebirdPromise>((resolve, reject) => { glob = new Glob("**/*", { cwd: src, + dot: options.dot }, (error, matches) => { if (error == null) { resolve(matches) diff --git a/typings/asar.d.ts b/typings/asar.d.ts index cd3e58f9294..0d21ccb9e66 100644 --- a/typings/asar.d.ts +++ b/typings/asar.d.ts @@ -14,6 +14,7 @@ declare module "asar" { interface AsarOptions { unpack?: string unpackDir?: string + dot?: boolean } export function listPackage(archive: string): Array