Skip to content

Commit

Permalink
electron-userland#1547 fixed style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
negorikhin committed Oct 19, 2017
1 parent 973c5c3 commit 4e15da3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/electron-builder/src/targets/pkg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export class PkgTarget extends Target {
readonly options: PkgOptions = {
allowAnywhere: true,
allowCurrentUserHome: true,
allowRootDirectory: true,
license: "build/licence.txt", ...this.packager.config.pkg,}
allowRootDirectory: true,
license: "build/licence.txt", ...this.packager.config.pkg}

constructor(private readonly packager: MacPackager, readonly outDir: string) {
super("pkg")
Expand Down Expand Up @@ -72,7 +72,7 @@ export class PkgTarget extends Target {
const insertIndex = distInfo.lastIndexOf("</installer-gui-script>")
distInfo = distInfo.substring(0, insertIndex) + ` <domains enable_anywhere="${options.allowAnywhere}" enable_currentUserHome="${options.allowCurrentUserHome}" enable_localSystem="${options.allowRootDirectory}" />\n` + distInfo.substring(insertIndex)
if (options.license) {
const licensePath = path.join(this.packager.info.projectDir, options.license);
const licensePath = path.join(this.packager.info.projectDir, options.license)
distInfo = distInfo.substring(0, insertIndex) + ` <license file="${licensePath}"/>\n` + distInfo.substring(insertIndex)
}

Expand Down

0 comments on commit 4e15da3

Please sign in to comment.