@@ -24,26 +24,6 @@ let unpackeddotnet = false;
2424let dotnetpacked = false ;
2525let electronforcedport ;
2626
27- if ( app . commandLine . hasSwitch ( 'manifest' ) ) {
28- manifestJsonFileName = app . commandLine . getSwitchValue ( 'manifest' ) ;
29- }
30-
31- console . log ( 'Entry!!!: ' ) ;
32-
33- if ( app . commandLine . hasSwitch ( 'unpackedelectron' ) ) {
34- unpackedelectron = true ;
35- }
36- else if ( app . commandLine . hasSwitch ( 'unpackeddotnet' ) ) {
37- unpackeddotnet = true ;
38- }
39- else if ( app . commandLine . hasSwitch ( 'dotnetpacked' ) ) {
40- dotnetpacked = true ;
41- }
42-
43- if ( app . commandLine . hasSwitch ( 'electronforcedport' ) ) {
44- electronforcedport = app . commandLine . getSwitchValue ( 'electronforcedport' ) ;
45- }
46-
4727// Custom startup hook: look for custom_main.js and invoke its onStartup(host) if present.
4828// If the hook returns false, abort Electron startup.
4929try {
6747 console . error ( 'Error while executing custom_main.js:' , err ) ;
6848}
6949
50+ if ( app . commandLine . hasSwitch ( 'manifest' ) ) {
51+ manifestJsonFileName = app . commandLine . getSwitchValue ( 'manifest' ) ;
52+ }
53+
54+ console . log ( 'Entry!!!: ' ) ;
55+
56+ if ( app . commandLine . hasSwitch ( 'unpackedelectron' ) ) {
57+ unpackedelectron = true ;
58+ }
59+ else if ( app . commandLine . hasSwitch ( 'unpackeddotnet' ) ) {
60+ unpackeddotnet = true ;
61+ }
62+ else if ( app . commandLine . hasSwitch ( 'dotnetpacked' ) ) {
63+ dotnetpacked = true ;
64+ }
65+
66+ if ( app . commandLine . hasSwitch ( 'electronforcedport' ) ) {
67+ electronforcedport = app . commandLine . getSwitchValue ( 'electronforcedport' ) ;
68+ }
69+
7070const currentPath = __dirname ;
7171let currentBinPath = path . join ( currentPath . replace ( 'app.asar' , '' ) , 'bin' ) ;
7272let manifestJsonFilePath = path . join ( currentPath , manifestJsonFileName ) ;
0 commit comments