1
0
mirror of https://github.com/Melon-Bread/RetroUFO synced 2025-07-04 12:54:37 -04:00

Compare commits

..

9 Commits

Author SHA1 Message Date
c60c6be12f Cleanup actually checks if the 'cores' dir exists now 2019-05-17 01:39:50 -04:00
7c5dfc4c11 Added icon support 2019-05-17 01:38:52 -04:00
bd7df18495 Initial Commit 2019-05-17 01:38:18 -04:00
9b76d6b264 Added PyInstaller 2019-05-17 01:30:13 -04:00
0cb18c56ce Initial Commit 2019-05-17 00:36:41 -04:00
13435a0aa4 Update RetroUFO_GUI.py 2019-05-17 00:31:23 -04:00
4ab73eb6b8 Forgot to finish refactoring 2019-05-06 19:15:10 -04:00
ddb4af9772 Merge pull request #2 from Melon-Bread/gui
Added msg in log when update finishes
2019-04-04 23:47:13 -04:00
3bd1159381 Merge pull request #1 from Melon-Bread/gui
Gui
2019-03-06 09:14:39 -05:00
4 changed files with 15 additions and 7 deletions

View File

@ -4,7 +4,7 @@ Grabs the latest version of every libretro core from the build bot.
""" """
__author__ = "Melon Bread" __author__ = "Melon Bread"
__version__ = "0.9.0" __version__ = "0.9.5"
__license__ = "MIT" __license__ = "MIT"
import argparse import argparse
@ -31,9 +31,9 @@ def main(_args):
# If a platform and/or architecture is not supplied it is grabbed automatically # If a platform and/or architecture is not supplied it is grabbed automatically
target_platform = _args.platform if _args.platform else get_platform() target_platform = _args.platform if _args.platform else get_platform()
architecture = _args.architecture if _args.architecture else get_architecture() architecture = _args.architecture if _args.architecture else get_architecture()
location = _args.location if _args.location else CORE_LOCATION[platform] location = _args.location if _args.location else CORE_LOCATION[target_platform]
download_cores(platform, architecture) download_cores(target_platform, architecture)
extract_cores(location) extract_cores(location)
if not args.keep: if not args.keep:
@ -112,7 +112,7 @@ def extract_cores(_location):
def clean_up(): def clean_up():
""" Removes all the downloaded files """ """ Removes all the downloaded files """
if os.listdir('cores'): if os.path.isdir('cores'):
rmtree('cores/') rmtree('cores/')

View File

@ -4,7 +4,7 @@ Grabs the latest version of every libretro core from the build bot.
""" """
__author__ = "Melon Bread" __author__ = "Melon Bread"
__version__ = "0.9.0" __version__ = "0.9.5"
__license__ = "MIT" __license__ = "MIT"
import os import os
@ -15,7 +15,7 @@ from shutil import rmtree
from urllib.request import urlretrieve from urllib.request import urlretrieve
from PySide2.QtCore import QThread, Signal from PySide2.QtCore import QThread, Signal
from PySide2.QtGui import QTextCursor from PySide2.QtGui import QTextCursor, QIcon
from PySide2.QtWidgets import (QApplication, QCheckBox, QComboBox, QDialog, from PySide2.QtWidgets import (QApplication, QCheckBox, QComboBox, QDialog,
QFileDialog, QLineEdit, QPushButton, QTextEdit, QFileDialog, QLineEdit, QPushButton, QTextEdit,
QVBoxLayout, QMessageBox) QVBoxLayout, QMessageBox)
@ -257,7 +257,7 @@ class Form(QDialog):
def clean_up(self): def clean_up(self):
""" Removes all the downloaded files """ """ Removes all the downloaded files """
if os.listdir('cores'): if os.path.isdir('cores'):
rmtree('cores/') rmtree('cores/')
@ -267,6 +267,7 @@ if __name__ == '__main__':
# Create and show the form # Create and show the form
form = Form() form = Form()
form.setFixedWidth(438) # So all text on the log UI stays on one line form.setFixedWidth(438) # So all text on the log UI stays on one line
form.setWindowIcon(QIcon('icon.png'))
form.show() form.show()
# Run the main Qt loop # Run the main Qt loop
sys.exit(app.exec_()) sys.exit(app.exec_())

BIN
icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

7
requirements.txt Normal file
View File

@ -0,0 +1,7 @@
altgraph==0.16.1
future==0.17.1
macholib==1.11
pefile==2019.4.18
PyInstaller==3.4
PySide2==5.12.3
shiboken2==5.12.3