As NW.Js support has been retired, use the Windows, macOS and Linux export options instead. For more details see: Exporting to Windows with the WebView2 wrapper...
Most Linux executables are not give a file extension. However, they have their permissions set so that the file is executable.