File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,10 @@ function startSocketApiBridge(port) {
9999 server . listen ( port , 'localhost' ) ;
100100 server . on ( 'listening' , function ( ) {
101101 console . log ( 'Electron Socket started on port %s at %s' , server . address ( ) . port , server . address ( ) . address ) ;
102+ // Now that socket connection is established, we can guarantee port will not be open for portscanner
103+ startAspCoreBackend ( port ) ;
102104 } ) ;
103105
104- startAspCoreBackend ( port ) ;
105-
106106 io . on ( 'connection' , ( socket ) => {
107107 global [ 'electronsocket' ] = socket ;
108108 global [ 'electronsocket' ] . setMaxListeners ( 0 ) ;
Original file line number Diff line number Diff line change 1+ echo " Start building Electron.NET dev stack..."
2+
3+ echo " Restore & Build API"
4+ cd ElectronNET.API && \
5+ dotnet restore && \
6+ dotnet build --configuration Release --force /property:Version=5.22.12 && \
7+ dotnet pack /p:Version=5.22.12 --configuration Release --force --output " %~dp0artifacts" ;
8+
9+ cd ../;
10+
11+ echo " Restore & Build CLI"
12+ cd ElectronNET.CLI && \
13+ dotnet restore && \
14+ dotnet build --configuration Release --force /property:Version=5.22.12 && \
15+ dotnet pack /p:Version=5.22.12 --configuration Release --force --output " %~dp0artifacts" ;
You can’t perform that action at this time.
0 commit comments