|
|
@ -12,11 +12,24 @@ if name == "posix":
|
|
|
|
download("https://github.com/ekzhang/bore/releases/download/v0.5.0/bore-v0.5.0-x86_64-unknown-linux-musl.tar.gz", "bore.tar.gz")
|
|
|
|
download("https://github.com/ekzhang/bore/releases/download/v0.5.0/bore-v0.5.0-x86_64-unknown-linux-musl.tar.gz", "bore.tar.gz")
|
|
|
|
system("tar -zxvf bore.tar.gz")
|
|
|
|
system("tar -zxvf bore.tar.gz")
|
|
|
|
system("rm -rf bore.tar.gz")
|
|
|
|
system("rm -rf bore.tar.gz")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import getpass
|
|
|
|
|
|
|
|
user = getpass.getuser()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
system("mkdir ~/.streamlit")
|
|
|
|
|
|
|
|
with open(f"/home/{user}/.streamlit/credentials.toml", "w") as f:
|
|
|
|
|
|
|
|
f.write('[general]\nemail = "a@a.a"')
|
|
|
|
|
|
|
|
f.close()
|
|
|
|
elif name == "nt":
|
|
|
|
elif name == "nt":
|
|
|
|
from shutil import unpack_archive as unpack
|
|
|
|
from shutil import unpack_archive as unpack
|
|
|
|
download("https://github.com/ekzhang/bore/releases/download/v0.5.0/bore-v0.5.0-x86_64-pc-windows-msvc.zip", "bore.zip")
|
|
|
|
download("https://github.com/ekzhang/bore/releases/download/v0.5.0/bore-v0.5.0-x86_64-pc-windows-msvc.zip", "bore.zip")
|
|
|
|
unpack("bore.zip")
|
|
|
|
unpack("bore.zip")
|
|
|
|
system("del bore.zip")
|
|
|
|
system("del bore.zip")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
system("mkdir C:\\Users\\windows\\.streamlit")
|
|
|
|
|
|
|
|
with open("C:\\Users\\windows\\.streamlit\\credentials.toml", "w") as f:
|
|
|
|
|
|
|
|
f.write('[general]\nemail = "a@a.a"')
|
|
|
|
|
|
|
|
f.close()
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
print("Увы, вероятно Ваша ОС не поддерживается.")
|
|
|
|
print("Увы, вероятно Ваша ОС не поддерживается.")
|
|
|
|
print("Завершение работы...")
|
|
|
|
print("Завершение работы...")
|
|
|
|