Strategická: Zveřejnění správných souborů

This commit is contained in:
Jiří Kalvoda 2022-09-23 13:08:25 +02:00
parent d572980f00
commit 32fc6f683a
2 changed files with 17 additions and 4 deletions

View file

@ -7,7 +7,9 @@ rm static/client static/client.zip -fr
mkdir -p static/client
cp ../klient/client.py static/client
cp ../klient/play.py static/client
cp ../klient/strategy.py static/client
cp ../klient/strategy.cpp static/client
cp ../klient/jsmn.h static/client
(
cd static/client
@ -21,4 +23,5 @@ cp ../klient/play.py static/client
git commit -m "INIT"
git update-server-info
)
unlink static/client.git
ln -sr static/client/.git static/client.git

View file

@ -241,9 +241,19 @@ def web_index():
u = app.url_for('static', filename='client.zip', _external=True)
b.line().li("Jako zip: ", b._p(b._a(href=u)(u)))
with b.line().li("Jednotlivé soubory:"):
u = app.url_for('static', filename='client/client.py', _external=True)
v = app.url_for('static', filename='client/play.py', _external=True)
b.p(b._a(href=u)(u), b._br(), b._a(href=v)(v))
with b.p():
u = app.url_for('static', filename='client/client.py', _external=True)
b.a(href=u)(u)
b.br()
u = app.url_for('static', filename='client/strategy.py', _external=True)
b.a(href=u)(u)
b.br()
u = app.url_for('static', filename='client/strategy.cpp', _external=True)
b.a(href=u)(u)
b.br()
u = app.url_for('static', filename='client/jsmn.h', _external=True)
b.a(href=u)(u)
b.br()
b.line().li("Git: ", b._pre(f"git clone {app.url_for('static', filename='client.git', _external=True)}", style="margin: 0pt 0pt"))
return b.print_file()