Skip to content

Commit 3fc7a89

Browse files
markgardnerdevelar
authored andcommitted
feat: adding dot asar option (#496)
This will allow users to have the ability to include dot folders into their asar file.
1 parent ee64432 commit 3fc7a89

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/asarUtil.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export async function createAsarArchive(src: string, resourcesPath: string, opti
1414
const files = (await new BluebirdPromise<Array<string>>((resolve, reject) => {
1515
glob = new Glob("**/*", {
1616
cwd: src,
17+
dot: options.dot
1718
}, (error, matches) => {
1819
if (error == null) {
1920
resolve(matches)

typings/asar.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare module "asar" {
1414
interface AsarOptions {
1515
unpack?: string
1616
unpackDir?: string
17+
dot?: boolean
1718
}
1819

1920
export function listPackage(archive: string): Array<string>

0 commit comments

Comments
 (0)