v64: рефакторинг — разбил монолит на css/ js/ build.sh dist/ (781→43 строки index.html)
This commit is contained in:
+5
-2
@@ -1,9 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Вклеиваем Groq API ключ в index.html
|
||||
# Собираем dist/index.html (CSS + JS встроены)
|
||||
~/lang/.venv/bin/python3 ~/lang/build.sh
|
||||
|
||||
# Вклеиваем Groq API ключ в dist/index.html
|
||||
KEY=$(cat ~/lang/token.txt)
|
||||
cp ~/lang/index.html /tmp/lyngvo_index.html
|
||||
cp ~/lang/dist/index.html /tmp/lyngvo_index.html
|
||||
sed -i "s|const GROQ_API_KEY = '';|const GROQ_API_KEY = '${KEY}';|" /tmp/lyngvo_index.html
|
||||
|
||||
# Синхронизация всей папки lang на ВМ
|
||||
|
||||
Reference in New Issue
Block a user