Add AppImage to build workflow

This commit is contained in:
Veronica Berglyd Olsen
2023-02-12 23:27:15 +01:00
parent d672ec05e9
commit 8448ec7b61
2 changed files with 61 additions and 16 deletions
+7 -5
View File
@@ -42,7 +42,7 @@ OS_DARWIN = 3
# Utilities
# =============================================================================================== #
def extractVersion():
def extractVersion(beQuiet=False):
"""Extract the novelWriter version number without having to import
anything else from the main package.
"""
@@ -67,7 +67,8 @@ def extractVersion():
print("Could not read file: %s" % initFile)
print(str(exc))
print("novelWriter version: %s (%s) at %s" % (numVers, hexVers, relDate))
if not beQuiet:
print("novelWriter version: %s (%s) at %s" % (numVers, hexVers, relDate))
return numVers, hexVers, relDate
@@ -935,7 +936,7 @@ def makeForLaunchpad(doSign=False, isFirst=False, isSnapshot=False):
##
def makeAppImage(sysArgs):
"""Build an Appimage
"""Build an Appimage.
"""
import glob
import argparse
@@ -1882,6 +1883,7 @@ if __name__ == "__main__":
"",
" help Print the help message.",
" pip Install all package dependencies for novelWriter using pip.",
" version Print the novelWriter version.",
" build-clean Will attempt to delete 'build' and 'dist' folders.",
"",
"Additional Builds:",
@@ -1939,8 +1941,8 @@ if __name__ == "__main__":
if "version" in sys.argv:
sys.argv.remove("version")
print("Checking source version info ...")
extractVersion()
numVers, _, _ = extractVersion(beQuiet=True)
print(numVers, end=None)
sys.exit(0)
if "pip" in sys.argv: