mirror of
https://github.com/simon987/sist2.git
synced 2025-04-10 14:06:45 +00:00
* extract scan code to libscan, (wip) * submodules * replace curl with mongoose (wip) * replace onion with mongoose (wip) * replace onion with mongoose (wip) * It compiles! (I think) * Update readme * Entirely remove libonion (WIP) * unscramble submodules * recover screenshot * Update mappings * Bug fixes * update * media meta fix * memory fixes * More bug fixes... * Bug fix w/ libmagic & vfile * libmagic fix (again) * Better lightbox, better video handler, random reloads fix * Use svg for info icon * re-enable http auth * mobi support #41, fix logs * Update README & cleanup
19 lines
503 B
Python
19 lines
503 B
Python
files = [
|
|
"src/static/css/bundle.css",
|
|
"src/static/css/bundle_dark.css",
|
|
"src/static/js/bundle.js",
|
|
"src/static/img/sprite-skin-flat.png",
|
|
"src/static/img/sprite-skin-flat-dark.png",
|
|
"src/static/search.html",
|
|
]
|
|
|
|
|
|
def clean(filepath):
|
|
return filepath.split("/")[-1].replace(".", "_").replace("-", "_")
|
|
|
|
|
|
for file in files:
|
|
with open(file, "rb") as f:
|
|
data = f.read()
|
|
print("char %s[%d] = {%s};" % (clean(file), len(data), ",".join(str(int(b)) for b in data)))
|