コード例 #1
0
import iquail

if iquail.helper.OS_LINUX:
    binary = "xonotic-linux64-sdl"
    icon = "icon.png"

if iquail.helper.OS_WINDOWS:
    binary = "xonotic-x86.exe"
    icon = "xonotic-x86.exe"

iquail.run(
    solution=iquail.SolutionPacked(path='Xonotic'),
    installer=iquail.Installer(
        publisher="OHM",
        name='Xonotic',
        icon=icon,
        binary=binary,
        console=False,
        launch_with_quail=False,
        is_large_solution=True,
    ),

    # iquail.builder.CmdIcon('icon.ico'),
    builder=iquail.builder.Builder(
        iquail.builder.CmdNoconsole(),
        side_img_override="side_img.gif",
    ),
    controller=iquail.ControllerTkinter()
)
コード例 #2
0
ファイル: test_bitbucket.py プロジェクト: QuailTeam/iQuail
#!/usr/bin/python3

import iquail

if not iquail.helper.OS_WINDOWS:
    raise AssertionError("This test solution is windows only")

iquail.run(solution=iquail.SolutionBitBucket(
    "cmder_mini.zip", "https://bitbucket.org/artous/cmder"),
           installer=iquail.Installer(publisher='cmderdev',
                                      name='Cmder',
                                      icon='Cmder.exe',
                                      binary='Cmder.exe',
                                      console=False,
                                      launch_with_quail=True),
           builder=iquail.builder.Builder(iquail.builder.CmdIcon('icon.ico'),
                                          iquail.builder.CmdNoconsole()),
           controller=iquail.ControllerTkinter(eula="This is a test"))
コード例 #3
0
#!/usr/bin/python3

import iquail

if not iquail.helper.OS_WINDOWS:
    raise AssertionError("This test solution is windows only")

iquail.run(solution=iquail.SolutionGitHub("cmder_mini.zip",
                                          "https://github.com/cmderdev/cmder"),
           installer=iquail.Installer(publisher='cmderdev',
                                      name='Cmder',
                                      icon='Cmder.exe',
                                      binary='Cmder.exe',
                                      console=False),
           builder=iquail.builder.Builder(iquail.builder.CmdIcon('icon.ico')))
コード例 #4
0
class FrameSelectMiniOrFull(iquail.controller_tkinter.FrameBaseConfigure):
    def __init__(self, parent, controller):
        super().__init__(parent, controller)
        self.version_selected = self.add_combobox(
            "Which version would you like to install?", ('Full', 'Mini'))

    def next_pressed(self):
        print(self.version_selected.get())
        version = self.version_selected.get().lower()
        zip = "cmder_mini.zip" if version == "mini" else "cmder.zip"
        self.manager.config.set("zip_url", zip)
        self.controller.switch_to_install_frame()


iquail.run(solution=iquail.SolutionGitHub(
    iquail.ConfVar("zip_url", default_value="cmder_mini.zip"),
    "https://github.com/cmderdev/cmder"),
           installer=iquail.Installer(
               publisher='cmderdev',
               name='Cmder',
               icon='Cmder.exe',
               binary='Cmder.exe',
               console=False,
               launch_with_quail=True,
           ),
           builder=iquail.builder.Builder(iquail.builder.CmdIcon('icon.ico'),
                                          iquail.builder.CmdNoconsole()),
           controller=iquail.ControllerTkinter(
               install_custom_frame=FrameSelectMiniOrFull),
           conf_ignore=["config/*"])
コード例 #5
0
#!/usr/bin/python3

import iquail

iquail.run(
    solution=iquail.SolutionGitHub("cmder_mini.zip", "https://github.com/cmderdev/cmder"),
    installer=iquail.Installer(
        publisher='cmderdev',
        name='Cmder',
        icon='Cmder.exe',
        binary='Cmder.exe',
        console=False,
        launch_with_quail=True,
    ),
    builder=iquail.builder.Builder(
        iquail.builder.CmdIcon('icon.ico'),
        iquail.builder.CmdNoconsole()
    ),
    controller=iquail.ControllerTkinter()
)
コード例 #6
0
ファイル: allum1.py プロジェクト: QuailTeam/iQuail
#!/usr/bin/python3

import iquail

iquail.run(
    solution=iquail.SolutionPacked(path='Allum1'),
    installer=iquail.Installer(
        publisher="alies",
        name='Allum1',
        icon='icon.jpeg',
        binary='allum1',
        console=True,
        launch_with_quail=True
    ),
    builder=iquail.builder.Builder(
        iquail.builder.CmdNoconsole()
    ),
    controller=iquail.ControllerTkinter()
)
コード例 #7
0
#!/usr/bin/python3

import iquail

iquail.run(solution=iquail.SolutionPacked(path='OpenHardwareMonitor'),
           installer=iquail.Installer(publisher="Michael Moller",
                                      name='OpenHardwareMonitor',
                                      icon='OpenHardwareMonitor.exe',
                                      binary='OpenHardwareMonitor.exe',
                                      console=True,
                                      launch_with_quail=False),
           builder=iquail.builder.Builder(
               iquail.builder.CmdIcon('icon.ico'),
               iquail.builder.CmdNoconsole(),
               side_img_override="side_img.gif",
           ),
           controller=iquail.ControllerTkinter())
コード例 #8
0
ファイル: cmder_local.py プロジェクト: QuailTeam/iQuail
#!/usr/bin/python3

import iquail

iquail.run(solution=iquail.SolutionPacked("cmder_mini.zip"),
           installer=iquail.Installer(
               publisher='cmderdev',
               name='Cmder',
               icon='Cmder.exe',
               binary='Cmder.exe',
               console=False,
               launch_with_quail=True,
           ),
           builder=iquail.builder.Builder(iquail.builder.CmdIcon('icon.ico'),
                                          iquail.builder.CmdNoconsole()),
           controller=iquail.ControllerTkinter(),
           conf_ignore=["config/*"])
コード例 #9
0
ファイル: quail_build.py プロジェクト: mouuff/xdbot
    def __init__(self, parent, controller):
        super().__init__(parent, controller)
        self.version_selected = self.add_combobox("Which version would you like to install?",
                                                  ('English', 'French'))

    def next_pressed(self):
        print(self.version_selected.get())
        version = self.version_selected.get().lower()
        zip = "xdbot.zip" if version == "french" else "xdbot_en.zip"
        self.manager.config.set("zip_url", zip)
        self.controller.switch_to_install_frame()


iquail.run(
    solution=iquail.SolutionGitHub(iquail.ConfVar("zip_url"),
                                   "https://github.com/mouuff/xdbot"),
    installer=iquail.Installer(
        name='xdbot',
        icon='xdbot.exe',
        binary='xdbot.exe',
        publisher="xdbot",
        console=False,
        launch_with_quail=True
    ),
    builder=iquail.builder.Builder(
        iquail.builder.CmdIcon('icon.ico'),
        iquail.builder.CmdNoconsole()
    ),
    controller=iquail.ControllerTkinter(install_custom_frame=FrameSelectMiniOrFull)
)
コード例 #10
0
ファイル: indie_gui.py プロジェクト: QuailTeam/iQuail
#!/usr/bin/python3

import iquail
import os

if not iquail.helper.OS_LINUX:
    raise AssertionError("This test solution is linux only")


class MyInstaller(iquail.Installer):
    def register(self):
        super().register()
        for file in os.listdir(self.get_solution_path()):
            if ".so." in file:
                os.chmod(self.get_solution_path(file), 0o777)


iquail.run(solution=iquail.SolutionGitHub(
    "indie.zip", "https://github.com/QuailTeam/cpp_indie_studio"),
           installer=MyInstaller(publisher='tek',
                                 name='Indie',
                                 icon='icon.png',
                                 binary='indie_studio',
                                 console=False,
                                 launch_with_quail=False),
           builder=iquail.builder.Builder(iquail.builder.CmdIcon('icon.png'),
                                          iquail.builder.CmdNoconsole(),
                                          side_img_override="./side_img.gif"),
           controller=iquail.ControllerTkinter(ask_for_update=True,
                                               eula="TEST"))
コード例 #11
0
ファイル: test_packed.py プロジェクト: QuailTeam/iQuail
#!/usr/bin/python3

import iquail

if iquail.helper.OS_LINUX:
    iquail.run(
        iquail.SolutionPacked(path='Allum1'),
        iquail.Installer(
            name='Allum1',
            icon='icon.jpeg',
            publisher='alies',
            binary='allum1',
            console=True,
            launch_with_quail=False
        ),
        iquail.builder.Builder()
    )

if iquail.helper.OS_WINDOWS:
    iquail.run(
        iquail.SolutionPacked(path='OpenHardwareMonitor'),
        iquail.Installer(
            publisher='OHM',
            name='OpenHardwareMonitor',
            icon='OpenHardwareMonitor.exe',
            binary='OpenHardwareMonitor.exe',
            console=True,
            launch_with_quail=False
        ),
        iquail.builder.Builder(
            iquail.builder.CmdIcon('icon.ico')
コード例 #12
0
ファイル: test_gitlab.py プロジェクト: QuailTeam/iQuail
#!/usr/bin/python3

import iquail

if not iquail.helper.OS_WINDOWS:
    raise AssertionError("This test solution is windows only")

iquail.run(solution=iquail.SolutionGitLab(
    "cmder_mini.zip", "https://gitlab.com/Artous/quail_cmder_test", 14938606),
           installer=iquail.Installer(publisher='cmderdev',
                                      name='Cmder',
                                      icon='Cmder.exe',
                                      binary='Cmder.exe',
                                      console=False,
                                      launch_with_quail=True),
           builder=iquail.builder.Builder(iquail.builder.CmdIcon('icon.ico'),
                                          iquail.builder.CmdNoconsole()),
           controller=iquail.ControllerTkinter(eula="This is a test"))
コード例 #13
0
#!/usr/bin/python3

import iquail
import os

if not iquail.helper.OS_LINUX:
    raise AssertionError("This test solution is linux only")


class MyInstaller(iquail.Installer):
    def register(self):
        super().register()
        for file in os.listdir(self.get_solution_path()):
            if ".so." in file:
                os.chmod(self.get_solution_path(file), 0o777)


iquail.run(solution=iquail.SolutionGitHub(
    "indie.zip", "https://github.com/QuailTeam/cpp_indie_studio"),
           installer=MyInstaller(publisher='tek',
                                 name='Indie',
                                 icon='icon.png',
                                 binary='indie_studio',
                                 console=False,
                                 launch_with_quail=True),
           builder=iquail.builder.Builder(iquail.builder.CmdIcon('icon.png'),
                                          iquail.builder.CmdNoconsole()),
           controller=iquail.ControllerTkinter())
コード例 #14
0
#!/usr/bin/python3

import iquail

if iquail.helper.OS_LINUX:
    iquail.run(
        solution=iquail.SolutionPacked(path='Allum1'),
        installer=iquail.Installer(
            publisher="alies",
            name='Allum1',
            icon='icon.jpeg',
            binary='allum1',
            console=True,
            launch_with_quail=True
        ),
        builder=iquail.builder.Builder(
            iquail.builder.CmdNoconsole()
        ),
        controller=iquail.ControllerTkinter()
    )

if iquail.helper.OS_WINDOWS:
    iquail.run(
        solution=iquail.SolutionPacked(path='OpenHardwareMonitor'),
        installer=iquail.Installer(
            publisher="OHM",
            requires_root=True,
            name='OpenHardwareMonitor',
            icon='OpenHardwareMonitor.exe',
            binary='OpenHardwareMonitor.exe',
            console=True,