@electron/packager
Advanced tools
Comparing version 18.3.5 to 18.3.6
@@ -140,3 +140,3 @@ /// <reference types="node" /> | ||
determinePlistFilesToUpdate(): Promise<LoadPlistParams[]>; | ||
appRelativePath(p: string): string; | ||
appRelativePlatformPath(p: string): string; | ||
updatePlistFiles(): Promise<void>; | ||
@@ -143,0 +143,0 @@ moveHelpers(): Promise<void>; |
@@ -156,4 +156,4 @@ "use strict"; | ||
} | ||
appRelativePath(p) { | ||
return path_1.default.relative(this.contentsPath, p); | ||
appRelativePlatformPath(p) { | ||
return path_1.default.posix.relative(this.contentsPath, p); | ||
} | ||
@@ -160,0 +160,0 @@ async updatePlistFiles() { |
@@ -59,3 +59,3 @@ import { FileRecord } from '@electron/asar'; | ||
copyPrebuiltAsar(): Promise<void>; | ||
appRelativePath(p: string): string; | ||
appRelativePlatformPath(p: string): string; | ||
asarApp(): Promise<void>; | ||
@@ -62,0 +62,0 @@ getAsarIntegrity(path: string): Pick<FileRecord['integrity'], 'algorithm' | 'hash'>; |
@@ -116,3 +116,3 @@ "use strict"; | ||
this.asarIntegrity = { | ||
[this.appRelativePath(this.appAsarPath)]: this.getAsarIntegrity(this.appAsarPath), | ||
[this.appRelativePlatformPath(this.appAsarPath)]: this.getAsarIntegrity(this.appAsarPath), | ||
}; | ||
@@ -195,4 +195,7 @@ } | ||
} | ||
appRelativePath(p) { | ||
return path_1.default.relative(this.stagingPath, p); | ||
appRelativePlatformPath(p) { | ||
if (this.opts.platform === 'win32') { | ||
return path_1.default.win32.relative(this.stagingPath, p); | ||
} | ||
return path_1.default.posix.relative(this.stagingPath, p); | ||
} | ||
@@ -207,3 +210,3 @@ async asarApp() { | ||
this.asarIntegrity = { | ||
[this.appRelativePath(this.appAsarPath)]: this.getAsarIntegrity(this.appAsarPath), | ||
[this.appRelativePlatformPath(this.appAsarPath)]: this.getAsarIntegrity(this.appAsarPath), | ||
}; | ||
@@ -210,0 +213,0 @@ await fs_extra_1.default.remove(this.originalResourcesAppDir); |
{ | ||
"name": "@electron/packager", | ||
"version": "18.3.5", | ||
"version": "18.3.6", | ||
"description": "Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
225573
3049