R
R
Rakhim Davletkaliev2012-07-24 19:52:36
HTML
Rakhim Davletkaliev, 2012-07-24 19:52:36

How to "pack" static site and standalone browser into one .exe?

There is a static site (HTML+CSS+JS) with a bunch of pictures, audio and video.
It is required to "pack" it together with any portable browser into one file so that the user can run the exe file and view the site. At the same time, you need to hide resource files from him so that he cannot pull out pictures, audio or video in a simple way.
Any advice?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

10 answer(s)
Y
youlose, 2012-07-24
@youlose

Adobe AIR?

G
gaussgs, 2012-07-24
@gaussgs

You can make a primitive application in Qt, there is a built-in WebKit that allows you to easily redefine resource sources. This approach will break off most non-specialists.
You can read about adding new protocols to QtWebKit here: doc.qt.nokia.com/qq/32/qq32-webkit-protocols.html
Next, we make a zip archive with the contents, put a password on it and push it into the resources. When the browser goes to a special address, we look for a resource in the archive.
Pros: cross-platform software, standard decompilers break
Disadvantages: appreciable application size, not sure about static webkit build

A
Antelle, 2012-07-24
@Antelle

I remember doing this a long time ago: in the application, a web server was raised that read content from resources. Well, on the form lay WebBrowser which showed a page from this server.
A perversion, of course, but it was required to do without frameworks, so that it would work without deploying anything.

M
mihavxc, 2012-07-24
@mihavxc

It should be understood that the user in any case will be able to save the content to himself. There would be a desire.
At work, I constantly encounter similar issues, I can offer to encrypt content and use an encryption key (hardware or software), but these are paid technologies + again, if you really want, the content will be screened or reprinted :) If you are interested, write in a personal.

E
Eugene, 2012-07-24
@Methos

www.xuebrothers.net/sh/sh.htm

C
creage, 2012-07-24
@creage

AppJS indeed!

D
Denis Turenko, 2012-07-25
@Dennion

As an option
1. create an index.hta file that will show everything in a frame
2. create an archive and write in it when opening a batch file that copies the contents of the archive into tempos by a complex name. You need to remember the name of the archive somehow (you can put it in PATH)
3. run index.hta
You can encode index.hta itself with JScript Encode (a standard MS utility)
When you close index.hta, you can delete the folder with files from the tempo via JScript. For JScript and HTA, the MS site has a good tutorial in help format.
If it seems complicated, then the simplest option has already been suggested - to wrap everything in chm, but perhaps I will have troubles with layout.

M
marcus, 2012-07-25
@marcus

Titanium Studio .

M
Mikhail Lyalin, 2012-07-25
@mr_jok

it seems that offline browsers can create a local copy in a single file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question