File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ export class App {
138138 if ( this . opts . prebuiltAsar ) {
139139 await this . copyPrebuiltAsar ( ) ;
140140 this . asarIntegrity = {
141- [ this . appRelativePath ( this . appAsarPath ) ] : this . getAsarIntegrity ( this . appAsarPath ) ,
141+ [ this . appRelativePlatformPath ( this . appAsarPath ) ] : this . getAsarIntegrity ( this . appAsarPath ) ,
142142 } ;
143143 } else {
144144 await this . buildApp ( ) ;
@@ -236,6 +236,14 @@ export class App {
236236 return path . relative ( this . stagingPath , p ) ;
237237 }
238238
239+ appRelativePlatformPath ( p : string ) {
240+ if ( this . opts . platform === 'win32' ) {
241+ return path . win32 . relative ( this . stagingPath , p ) ;
242+ }
243+
244+ return path . posix . relative ( this . stagingPath , p ) ;
245+ }
246+
239247 async asarApp ( ) {
240248 if ( ! this . asarOptions ) {
241249 return Promise . resolve ( ) ;
@@ -247,7 +255,7 @@ export class App {
247255
248256 await asar . createPackageWithOptions ( this . originalResourcesAppDir , this . appAsarPath , this . asarOptions ) ;
249257 this . asarIntegrity = {
250- [ this . appRelativePath ( this . appAsarPath ) ] : this . getAsarIntegrity ( this . appAsarPath ) ,
258+ [ this . appRelativePlatformPath ( this . appAsarPath ) ] : this . getAsarIntegrity ( this . appAsarPath ) ,
251259 } ;
252260 await fs . remove ( this . originalResourcesAppDir ) ;
253261
You can’t perform that action at this time.
0 commit comments