Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
AvenCores committed Apr 22, 2023
1 parent f89de75 commit 95b611a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BUILD/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
system("rd /s /q build")
system("rd /s /q dist")
system("del /q *.spec")
system(f'pyinstaller --noconfirm --onefile --windowed --uac-admin --icon "../tlauncher.ico" --add-data "C:/Users/{user}/AppData/Local/Programs/Python/Python311/Lib/site-packages/customtkinter;customtkinter/" "../main.pyw"')
system(f'pyinstaller --noconfirm --onefile --windowed --uac-admin --icon "../ICO/tlauncher.ico" --add-data "C:/Users/{user}/AppData/Local/Programs/Python/Python311/Lib/site-packages/customtkinter;customtkinter/" "../main.pyw"')
system("del /q *.spec")
system("rd /s /q build")
system("rd /s /q %USERPROFILE%\AppData\Local\pyinstaller")
Expand Down
1 change: 1 addition & 0 deletions BUILD/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
customtkinter
pyinstaller
requests
tkinter
File renamed without changes.
Binary file modified main.exe
Binary file not shown.
13 changes: 12 additions & 1 deletion main.pyw
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
from tkinter.messagebox import showerror, showinfo
from requests import get
from os import remove
import customtkinter
import webbrowser
import tkinter

f=open(r'tlauncher.ico', "wb")
ufr = get("https://raw.githubusercontent.com/AvenCores/tlauncher-removead-python/master/tlauncher.ico")
f.write(ufr.content)
f.close()


infotext = """Данный патч отключает рекламу в TLauncher.
Expand Down Expand Up @@ -35,6 +42,8 @@ def patcher():
f.writelines("\n127.0.0.1 tlauncher.org/repo/update/lch/additional_hot_servers.json")
f.writelines("\n127.0.0.1 tlauncher.org/repo/update/lch/servers/hot_servers-1.0.json")
f.writelines("\n127.0.0.1 tlauncher.org/repo/update/lch/additional_hot_servers-1.0.json")
f.writelines("\n127.0.0.1 repo.tlauncher.org/update/downloads/configs/inner_servers.json")
f.writelines("\n127.0.0.1 advancedrepository.com/update/downloads/configs/inner_servers.json")
f.writelines("\n127.0.0.1 ad.tlauncher.org")
f.writelines("\n127.0.0.1 promo.tlauncher.org")
f.writelines("\n127.0.0.1 stats.tlauncher.org")
Expand Down Expand Up @@ -76,4 +85,6 @@ class App(customtkinter.CTk):

if __name__ == "__main__":
app = App()
app.mainloop()
app.mainloop()

remove("tlauncher.ico")
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
customtkinter
requests
tkinter

0 comments on commit 95b611a

Please sign in to comment.