Skip to content

Commit

Permalink
feat: adding dot asar option (electron-userland#496)
Browse files Browse the repository at this point in the history
This will allow users to have the ability to include dot folders into
their asar file.
  • Loading branch information
markgardner authored and develar committed Jun 14, 2016
1 parent ee64432 commit 3fc7a89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/asarUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export async function createAsarArchive(src: string, resourcesPath: string, opti
const files = (await new BluebirdPromise<Array<string>>((resolve, reject) => {
glob = new Glob("**/*", {
cwd: src,
dot: options.dot
}, (error, matches) => {
if (error == null) {
resolve(matches)
Expand Down
1 change: 1 addition & 0 deletions typings/asar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ declare module "asar" {
interface AsarOptions {
unpack?: string
unpackDir?: string
dot?: boolean
}

export function listPackage(archive: string): Array<string>
Expand Down

0 comments on commit 3fc7a89

Please sign in to comment.