Clean up function names a little
This commit is contained in:
+3
-3
@@ -237,7 +237,7 @@ if __name__ == "__main__":
|
||||
)
|
||||
)
|
||||
cmdBuildDeb.add_argument("--sign", action="store_true", help="Sign the package.")
|
||||
cmdBuildDeb.set_defaults(func=utils.build_debian.mainDebian)
|
||||
cmdBuildDeb.set_defaults(func=utils.build_debian.debian)
|
||||
|
||||
# Build Ubuntu Packages
|
||||
cmdBuildUbuntu = parsers.add_parser(
|
||||
@@ -249,7 +249,7 @@ if __name__ == "__main__":
|
||||
)
|
||||
cmdBuildUbuntu.add_argument("--sign", action="store_true", help="Sign the package.")
|
||||
cmdBuildUbuntu.add_argument("--build", type=int, help="Set build number.")
|
||||
cmdBuildUbuntu.set_defaults(func=utils.build_debian.mainLaunchpad)
|
||||
cmdBuildUbuntu.set_defaults(func=utils.build_debian.launchpad)
|
||||
|
||||
# Build AppImage
|
||||
cmdBuildAppImage = parsers.add_parser(
|
||||
@@ -270,7 +270,7 @@ if __name__ == "__main__":
|
||||
cmdBuildAppImage.add_argument(
|
||||
"--python-version", default="3.11", help="Python version (e.g. 3.11)"
|
||||
)
|
||||
cmdBuildAppImage.set_defaults(func=utils.build_appimage.main)
|
||||
cmdBuildAppImage.set_defaults(func=utils.build_appimage.appImage)
|
||||
|
||||
# Build Windows Inno Setup Installer
|
||||
cmdBuildSetupExe = parsers.add_parser(
|
||||
|
||||
@@ -32,7 +32,7 @@ from utils.common import (
|
||||
)
|
||||
|
||||
|
||||
def main(args: argparse.Namespace) -> None:
|
||||
def appImage(args: argparse.Namespace) -> None:
|
||||
"""Build an AppImage."""
|
||||
try:
|
||||
import python_appimage # noqa: F401 # type: ignore
|
||||
|
||||
+2
-10
@@ -155,11 +155,7 @@ def makeDebianPackage(
|
||||
return ""
|
||||
|
||||
|
||||
##
|
||||
# Build Debian Package (build-deb)
|
||||
##
|
||||
|
||||
def mainDebian(args: argparse.Namespace) -> None:
|
||||
def debian(args: argparse.Namespace) -> None:
|
||||
"""Build a .deb package"""
|
||||
if sys.platform == "linux":
|
||||
print("ERROR: Command 'build-deb' can only be used on Linux")
|
||||
@@ -169,11 +165,7 @@ def mainDebian(args: argparse.Namespace) -> None:
|
||||
return
|
||||
|
||||
|
||||
##
|
||||
# Build Launchpad Packages (build-ubuntu)
|
||||
##
|
||||
|
||||
def mainLaunchpad(args: argparse.Namespace) -> None:
|
||||
def launchpad(args: argparse.Namespace) -> None:
|
||||
"""Wrapper for building Debian packages for Launchpad."""
|
||||
if sys.platform == "linux":
|
||||
print("ERROR: Command 'build-ubuntu' can only be used on Linux")
|
||||
|
||||
Reference in New Issue
Block a user