C
C
CyberWereWolf2019-05-31 08:53:07
HTML
CyberWereWolf, 2019-05-31 08:53:07

Is it possible to pack site files into .exe's?

I've been learning frontend for a little less than a year. I created a cool site, I want to show off in front of my friends, but they have instructions on which html file to open to give, or what? It's not the same anymore. Well, the question is: can all site files be packed into one exe file? To launch - and open the html file of the main page, from where you can already go to different sections.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
V
Valery, 2019-05-31
@CyberWereWolf

No. In any case, you need to tell them to open the file, and so indicate that you need to open index.html

E
Evgeny Volf, 2019-05-31
@Wolfnsex

question: can all site files be packed into one exe file?
Offhand ... - you can. It will look something like this:
1. Take some OpenServer (OSPanel) or any other package like "WAMP" (it would be ideal, of course, to take a pure web server, if you don't need anything else)
2. Pack it into an SFX archive (7- zip, ZIP, RAR or any other)
2.1 In the archive, after unpacking, run the script (bat file written earlier), which in turn will start the server, open your site, and so on (perform all other necessary operations)
3. Where- then at the end you can write some other script that, after some time (or upon the occurrence of some event, will remove all the generated garbage)
In this way, you can even pack a site with all sorts of server scripts and other such things. I think the procedure is not very simple and trivial - but it will solve your problem.
If you have a very simple site (only HTML/CSS/JS/images, without a server part), you can simply run the head HTML file after unpacking the SFX archive.
PS As for the rest, I agree with the previous speaker - it's easier for you to put your site on the net, at least on a free hosting (but it's better at least on the cheapest paid hosting) and show it to everyone from there.

S
Sergey Sokolov, 2019-05-31
@sergiks

It will not work in one exe file: even if you wrap everything in, say, Electron , there will be several files and friends will have to think about which one to poke. In addition, a zoo of platforms and versions: someone on the old Windows, someone on an Android tablet, and someone has an iMac.
You need to show off to the fullest: register a domain, hosting and raise the site there, and send the address to your friends.
После прохождения этого квеста ваши скиллы заметно вырастут.
Well, or record a video.

A
archelon, 2019-05-31
@archelon

put the site on any paid or free hosting, give your friends a link.

A
Adamos, 2019-05-31
@Adamos

Friends, I guess, they stick more into smarts than into computers.
Upload your immortality on a free hosting, collect a link to it in a QR code - stylish, youthful ... develops skills, again.

L
Lone Ice, 2019-05-31
@daemonhk

You can make an Android application that will open the site. If it is small and there is no connection to the database, then the files can be sewn into the application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question