mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-08-11 03:12:52 +02:00
feat: web files
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import gzip
|
||||
|
||||
files = [
|
||||
'data_embed/index.html',
|
||||
'data_embed/script.js',
|
||||
'data_embed/style.css',
|
||||
'data_embed/bootstrap.js',
|
||||
'data_embed/bootstrap.css',
|
||||
]
|
||||
|
||||
|
||||
for src in files:
|
||||
out = src + ".gz"
|
||||
|
||||
|
||||
with open(src, 'rb') as f:
|
||||
content = f.read()
|
||||
|
||||
with open(out, 'wb') as f:
|
||||
f.write(gzip.compress(content, compresslevel=9))
|
||||
Reference in New Issue
Block a user