dmg-builder
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -5,2 +5,2 @@ /// <reference types="debug" /> | ||
export declare const debug: _debug.IDebugger; | ||
export declare function addLicenseToDmg(packager: PackageBuilder, dmgPath: string): Promise<void>; | ||
export declare function addLicenseToDmg(packager: PackageBuilder, dmgPath: string): Promise<string | null>; |
@@ -19,3 +19,3 @@ "use strict"; | ||
if (licenseFiles.length === 0) { | ||
return; | ||
return null; | ||
} | ||
@@ -71,2 +71,3 @@ const licenseButtonFiles = yield (0, (_licenseButtons || _load_licenseButtons()).getLicenseButtonsFile)(packager); | ||
yield (0, (_builderUtil || _load_builderUtil()).exec)("hdiutil", ["flatten", dmgPath]); | ||
return data; | ||
}); | ||
@@ -73,0 +74,0 @@ |
@@ -28,3 +28,3 @@ "use strict"; | ||
args.push(dmgPath); | ||
const attachResult = yield (0, (_builderUtil || _load_builderUtil()).exec)("hdiutil", args, { maxBuffer: 2 * 1024 * 1024 }); | ||
const attachResult = yield (0, (_builderUtil || _load_builderUtil()).exec)("hdiutil", args); | ||
const deviceResult = attachResult == null ? null : /^(\/dev\/\w+)/.exec(attachResult); | ||
@@ -31,0 +31,0 @@ const device = deviceResult == null || deviceResult.length !== 2 ? null : deviceResult[1]; |
@@ -18,3 +18,4 @@ "use strict"; | ||
const name = it.toLowerCase(); | ||
return name.startsWith("licenseButtons_") && (name.endsWith(".json") || name.endsWith(".yml")); | ||
// noinspection SpellCheckingInspection | ||
return name.startsWith("licensebuttons_") && (name.endsWith(".json") || name.endsWith(".yml")); | ||
}), packager); | ||
@@ -21,0 +22,0 @@ }); |
{ | ||
"name": "dmg-builder", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"main": "out/dmgUtil.js", | ||
@@ -16,7 +16,7 @@ "author": "Vladimir Krivosheev", | ||
"dependencies": { | ||
"fs-extra-p": "^4.4.2", | ||
"bluebird-lst": "^1.0.3", | ||
"fs-extra-p": "^4.4.3", | ||
"bluebird-lst": "^1.0.4", | ||
"parse-color": "^1.0.0", | ||
"builder-util": "^2.0.2", | ||
"debug": "^3.0.1", | ||
"builder-util": "^2.0.10", | ||
"debug": "^3.1.0", | ||
"iconv-lite": "^0.4.19", | ||
@@ -23,0 +23,0 @@ "js-yaml": "^3.10.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
813
402746
34
Updatedbluebird-lst@^1.0.4
Updatedbuilder-util@^2.0.10
Updateddebug@^3.1.0
Updatedfs-extra-p@^4.4.3