Skip to content

Commit

Permalink
Github test with cmder!
Browse files Browse the repository at this point in the history
  • Loading branch information
mouuff committed Jun 16, 2018
1 parent 654807c commit 1f457b0
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
20 changes: 20 additions & 0 deletions examples/test_github.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/python3

import quail

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

quail.run(
solution=quail.SolutionGitHub("cmder.zip", "https://github.com/cmderdev/cmder"),
installer=quail.Installer(
name='Cmder',
icon='Cmder.exe',
binary='Cmder.exe',
console=False
),
builder=quail.builder.Builder(
quail.builder.CmdIcon('icon.ico'),
),
ui=quail.UiConsole()
)
2 changes: 1 addition & 1 deletion quail/ui/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

from .ui_base import UiBase
from .ui_tkinter import UiTkinter
from .ui_console import UiConsole
11 changes: 11 additions & 0 deletions quail/ui/ui_console.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import sys
from .ui_base import UiBase


class UiConsole(UiBase):
def progress_callback(self, progress):
sys.stdout.write("%d %% installing ...\r" % progress)
sys.stdout.flush()

def start_install(self):
sys.stdout.write("Install started\n")

0 comments on commit 1f457b0

Please # to comment.