mirror of
https://github.com/bkerler/mtkclient.git
synced 2024-11-14 19:25:05 -05:00
Fix pyproject installer
This commit is contained in:
parent
5a3b9399a9
commit
168aa1d464
4 changed files with 36 additions and 39 deletions
|
@ -1,8 +0,0 @@
|
||||||
include README.md
|
|
||||||
include LICENSE
|
|
||||||
include mtkclient/Loader/*.bin
|
|
||||||
include mtkclient/Loader/Preloader/*.bin
|
|
||||||
include mtkclient/payloads/*.bin
|
|
||||||
include mtkclient/Windows/*.dll
|
|
||||||
include mtkclient/gui/images/*.png
|
|
||||||
|
|
10
mtk.py
10
mtk.py
|
@ -40,7 +40,8 @@ cmds = {
|
||||||
"script": "Run multiple commands using text script",
|
"script": "Run multiple commands using text script",
|
||||||
}
|
}
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
|
def main():
|
||||||
print(info)
|
print(info)
|
||||||
print("")
|
print("")
|
||||||
parser = argparse.ArgumentParser(description=info)
|
parser = argparse.ArgumentParser(description=info)
|
||||||
|
@ -101,7 +102,8 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
da_vbmeta = da_cmds.add_parser("vbmeta", help="Patch vbmeta partition")
|
da_vbmeta = da_cmds.add_parser("vbmeta", help="Patch vbmeta partition")
|
||||||
da_vbmeta.add_argument('--preloader', help='Set the preloader filename for dram config')
|
da_vbmeta.add_argument('--preloader', help='Set the preloader filename for dram config')
|
||||||
da_vbmeta.add_argument("vbmode", type=str, help="vbmeta mode (0=locked, 1=disable_verity, 2=disable_verification, 3=disable verity+verification)")
|
da_vbmeta.add_argument("vbmode", type=str,
|
||||||
|
help="vbmeta mode (0=locked, 1=disable_verity, 2=disable_verification, 3=disable verity+verification)")
|
||||||
|
|
||||||
da_rpmb = da_cmds.add_parser("rpmb", help="RPMB Tools")
|
da_rpmb = da_cmds.add_parser("rpmb", help="RPMB Tools")
|
||||||
|
|
||||||
|
@ -1008,3 +1010,7 @@ if __name__ == '__main__':
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
mtk = Main(args).run(parser)
|
mtk = Main(args).run(parser)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
|
@ -501,7 +501,7 @@ class MainWindow(QMainWindow):
|
||||||
self.ui.spinner_pic.setHidden(True)
|
self.ui.spinner_pic.setHidden(True)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def main():
|
||||||
# Enable nice 4K Scaling
|
# Enable nice 4K Scaling
|
||||||
os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
|
os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
|
||||||
|
|
||||||
|
@ -551,3 +551,7 @@ if __name__ == '__main__':
|
||||||
# Prevent thread from not being closed and call error end codes
|
# Prevent thread from not being closed and call error end codes
|
||||||
thread.terminate()
|
thread.terminate()
|
||||||
thread.wait()
|
thread.wait()
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = [
|
requires = ["hatchling"]
|
||||||
"setuptools>=61",
|
build-backend = "hatchling.build"
|
||||||
"wheel",
|
|
||||||
]
|
|
||||||
build-backend = "setuptools.build_meta"
|
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "mtkclient"
|
name = "mtkclient"
|
||||||
|
@ -39,31 +36,29 @@ Repository = "https://github.com/bkerler/mtkclient.git"
|
||||||
Issues = "https://github.com/bkerler/mtkclient/issues"
|
Issues = "https://github.com/bkerler/mtkclient/issues"
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
mtk = "mtk:main"
|
mtk = "mtkclient.mtk:main"
|
||||||
stage2 = "stage2:main"
|
stage2 = "mtkclient.stage2:main"
|
||||||
da_parser = "Tools.da_parser:main"
|
da_parser = "mtkclient.Tools.da_parser:main"
|
||||||
brom_to_offs = "Tools.brom_to_offs:main"
|
brom_to_offs = "mtkclient.Tools.brom_to_offs:main"
|
||||||
|
|
||||||
[project.gui-scripts]
|
[project.gui-scripts]
|
||||||
mtk_gui = "mtkclient.mtk_gui:main"
|
mtk_gui = "mtkclient.mtk_gui:main"
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.hatch.build.targets.sdist]
|
||||||
# See also the MANIFEST.in file.
|
include = [
|
||||||
packages = [
|
"mtkclient/Loader/*.bin",
|
||||||
"mtkclient.config",
|
"mtkclient/Loader/Preloader/*.bin",
|
||||||
"mtkclient.Library",
|
"mtkclient/payloads/*.bin",
|
||||||
"mtkclient.Library.Connection",
|
"mtkclient/Windows/*.dll",
|
||||||
"mtkclient.Library.DA",
|
"mtkclient/gui/images/*.png",
|
||||||
"mtkclient.Library.DA.legacy",
|
"Tools/*.py"
|
||||||
"mtkclient.Library.DA.legacy.extension",
|
|
||||||
"mtkclient.Library.DA.xflash",
|
|
||||||
"mtkclient.Library.DA.xflash.extension",
|
|
||||||
"mtkclient.Library.DA.xml",
|
|
||||||
"mtkclient.Library.DA.xml.extension",
|
|
||||||
"mtkclient.Library.Exploit",
|
|
||||||
"mtkclient.Library.Filesystem",
|
|
||||||
"mtkclient.Library.Hardware",
|
|
||||||
"Tools"
|
|
||||||
]
|
]
|
||||||
# We want to install all the files in the package directories...
|
|
||||||
include-package-data = true
|
[tool.hatch.build.targets.wheel.force-include]
|
||||||
|
"Tools/brom_to_offs.py" = "mtkclient/Tools/brom_to_offs.py"
|
||||||
|
"Tools/da_parser.py" = "mtkclient/Tools/da_parser.py"
|
||||||
|
"mtk.py" = "mtkclient/mtk.py"
|
||||||
|
"mtk_gui.py" = "mtkclient/mtk_gui.py"
|
||||||
|
"stage2.py" = "mtkclient/stage2.py"
|
||||||
|
"LICENSE" = "LICENSE"
|
||||||
|
"README.md" = "README.md"
|
Loading…
Reference in a new issue