Can create an AppImage with make-appimage.
This commit is contained in:
parent
9e410fa796
commit
50dac0aa58
5 changed files with 88 additions and 9 deletions
|
|
@ -41,12 +41,17 @@ from vigil import tools
|
|||
from vigil import worker
|
||||
|
||||
|
||||
if "APPDIR" in os.environ:
|
||||
test_usage_line = " vigil --self_test\n"
|
||||
test_option_line = (" --self_test "
|
||||
"Test that vigil is working properly.\n")
|
||||
else:
|
||||
test_usage_line, test_option_line = "", ""
|
||||
USAGE = """
|
||||
Usage:
|
||||
vigil [options] <directory>
|
||||
vigil -h | --help
|
||||
vigil --self_test
|
||||
|
||||
%s
|
||||
Example:
|
||||
# vigil my_project
|
||||
|
||||
|
|
@ -58,8 +63,7 @@ Options:
|
|||
the *edit command. It may contain options.
|
||||
-t THEME, --theme=THEME The pygment theme used for syntax
|
||||
highlighting. Defaults to "native".
|
||||
--self_test Test that vigil is working properly.
|
||||
"""
|
||||
%s""" % (test_usage_line, test_option_line)
|
||||
|
||||
|
||||
KEYS_DOC = """Keys:
|
||||
|
|
@ -1016,9 +1020,10 @@ def check_arguments():
|
|||
if arguments["--help"]:
|
||||
print(cmdline_help)
|
||||
sys.exit(0)
|
||||
if arguments["--self_test"]:
|
||||
test_path = os.path.join(os.path.dirname(__file__), "test-all")
|
||||
sys.exit(subprocess.call([test_path]))
|
||||
if "APPDIR" in os.environ and arguments["--self_test"]:
|
||||
test_dir = os.path.join(os.environ["APPDIR"], "tests")
|
||||
sys.exit(subprocess.call([os.path.join(test_dir, "test-all")],
|
||||
cwd=test_dir))
|
||||
worker_count = None
|
||||
try:
|
||||
if arguments["--workers"] is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue