mirror of
https://github.com/Melon-Bread/RetroUFO
synced 2025-07-04 04:44:37 -04:00
Compare commits
9 Commits
gui
...
c60c6be12f
Author | SHA1 | Date | |
---|---|---|---|
c60c6be12f | |||
7c5dfc4c11 | |||
bd7df18495 | |||
9b76d6b264 | |||
0cb18c56ce | |||
13435a0aa4 | |||
4ab73eb6b8 | |||
ddb4af9772 | |||
3bd1159381 |
@ -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/')
|
||||||
|
|
||||||
|
|
||||||
|
@ -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_())
|
||||||
|
7
requirements.txt
Normal file
7
requirements.txt
Normal 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
|
Reference in New Issue
Block a user