diff --git a/BUILD/build.py b/BUILD/build.py index 99ad360..f63c5db 100644 --- a/BUILD/build.py +++ b/BUILD/build.py @@ -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") diff --git a/BUILD/requirements.txt b/BUILD/requirements.txt index 6fc194a..fa34e0d 100644 --- a/BUILD/requirements.txt +++ b/BUILD/requirements.txt @@ -1,3 +1,4 @@ customtkinter pyinstaller +requests tkinter \ No newline at end of file diff --git a/tlauncher.ico b/ICO/tlauncher.ico similarity index 100% rename from tlauncher.ico rename to ICO/tlauncher.ico diff --git a/main.exe b/main.exe index 6778502..f986022 100644 Binary files a/main.exe and b/main.exe differ diff --git a/main.pyw b/main.pyw index 42b71a4..63a5560 100644 --- a/main.pyw +++ b/main.pyw @@ -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. @@ -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") @@ -76,4 +85,6 @@ class App(customtkinter.CTk): if __name__ == "__main__": app = App() - app.mainloop() \ No newline at end of file + app.mainloop() + +remove("tlauncher.ico") \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b2a92c7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +customtkinter +requests +tkinter \ No newline at end of file