File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ module.exports = {
7777 appPlist . CFBundleName = opts . name
7878 helperPlist . CFBundleDisplayName = opts . name + ' Helper'
7979 helperPlist . CFBundleIdentifier = helperBundleIdentifier
80+ appPlist . CFBundleExecutable = opts . name
8081 helperPlist . CFBundleName = opts . name
8182 helperPlist . CFBundleExecutable = opts . name + ' Helper'
8283 helperEHPlist . CFBundleDisplayName = opts . name + ' Helper EH'
@@ -153,6 +154,12 @@ module.exports = {
153154 mv ( path . dirname ( contentsPath ) , finalAppPath , cb )
154155 } )
155156
157+ if ( appPlist . CFBundleExecutable !== 'Electron' ) {
158+ operations . push ( function ( cb ) {
159+ mv ( tempPath + '/' + opts . name + '.app/Contents/MacOS/Electron' , tempPath + '/' + opts . name + '.app/Contents/MacOS/' + appPlist . CFBundleExecutable , cb )
160+ } )
161+ }
162+
156163 if ( opts . sign ) {
157164 operations . push ( function ( cb ) {
158165 sign ( {
You can’t perform that action at this time.
0 commit comments