-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |