Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
https://electron.atom.io/

Build cross platform desktop apps with JavaScript, HTML, and CSS

#multi_platform #cross_platform #css #js #electron #osx #windows #linux #desktop #application
How do you know if a remote web server is Linux based or Windows based? (Ignore this if there is pfsense/ha proxy in front)

ping the remote ip:

ping iranhost.com

The output is similar to:

PING iranhost.com (174.142.214.47): 56 data bytes
64 bytes from 174.142.214.47: icmp_seq=0 ttl=105 time=174.379 ms
64 bytes from 174.142.214.47: icmp_seq=1 ttl=105 time=180.315 ms
64 bytes from 174.142.214.47: icmp_seq=2 ttl=105 time=177.937 ms


Look at the ttl part of the output. If it's above 100, it is a windows based machine otherwise it is a Linux based machine.


#os #linux #windows #ping #ttl #iranhost
How to create a an application for your platform? Let's say an EXE file for windows and .app for MAC or a binary for linux.

I suppose you have nodejs and npm already installed. You need to install nativefier node module using the command below first:

npm install -g nativefier

Now you can generate a native app from your website using the command below:

nativefier "https://www.google.com/" --name="Google"

There are many parameters you can give to nativefier in order to set custom settings on it. Check nativefier --help for that.

#nativefier #nodejs #npm #electron #mac #windows #exe