GUI development
This commit is contained in:
4
build-installer.bat
Normal file
4
build-installer.bat
Normal file
@@ -0,0 +1,4 @@
|
||||
pip install -r requirements.txt
|
||||
pyinstaller --noconfirm --icon "img/icon.ico" --windowed --onefile "horsy_installer.py"
|
||||
rmdir /s /q __pycache__
|
||||
del horsy_installer.spec
|
||||
6
build-installer_clean.bat
Normal file
6
build-installer_clean.bat
Normal file
@@ -0,0 +1,6 @@
|
||||
pip install -r requirements.txt
|
||||
rmdir /s /q build
|
||||
pyinstaller --noconfirm --icon "img/icon.ico" --windowed --onefile "horsy_installer.py"
|
||||
rmdir /s /q __pycache__
|
||||
del horsy_installer.spec
|
||||
rmdir /s /q build
|
||||
3
dist.bat
Normal file
3
dist.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
xcopy /s /Y dist\horsy.exe bin\horsy.exe*
|
||||
xcopy /s /Y dist\horsygui.exe bin\horsygui.exe*
|
||||
xcopy /s /Y dist\horsy_installer.exe bin\installer-horsy-win.exe*
|
||||
1
horsy_installer.py
Normal file
1
horsy_installer.py
Normal file
@@ -0,0 +1 @@
|
||||
print(1)
|
||||
@@ -1 +1,13 @@
|
||||
print("|"*100)
|
||||
import requests
|
||||
import modules.vars as horsy_vars
|
||||
from modules.auth import get_auth
|
||||
|
||||
|
||||
def like(package, is_gui=False, login_ui=None, Ui_LoginWindow=None):
|
||||
body = {
|
||||
"auth": get_auth(is_gui, login_ui, Ui_LoginWindow),
|
||||
"rate": 1,
|
||||
"packageName": package
|
||||
}
|
||||
r = requests.post(f"{horsy_vars.protocol}{horsy_vars.server_url}/packages/rate", json=body).text
|
||||
|
||||
|
||||
Reference in New Issue
Block a user