Add version and build info to AppImage build (#1182)
This commit is contained in:
@@ -906,7 +906,6 @@ def makeForLaunchpad(doSign=False, isFirst=False, isSnapshot=False):
|
|||||||
def makeAppImage(sysArgs):
|
def makeAppImage(sysArgs):
|
||||||
"""Build an Appimage
|
"""Build an Appimage
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import glob
|
import glob
|
||||||
import argparse
|
import argparse
|
||||||
import platform
|
import platform
|
||||||
@@ -1089,8 +1088,9 @@ def makeAppImage(sysArgs):
|
|||||||
shutil.copyfile("setup/icons/novelwriter.svg", f"{imageDir}/novelwriter.svg")
|
shutil.copyfile("setup/icons/novelwriter.svg", f"{imageDir}/novelwriter.svg")
|
||||||
print("Copied: setup/icons/novelwriter.svg")
|
print("Copied: setup/icons/novelwriter.svg")
|
||||||
|
|
||||||
shutil.copyfile("setup/data/hicolor/256x256/apps/novelwriter.png",
|
shutil.copyfile(
|
||||||
f"{imageDir}/novelwriter.png")
|
"setup/data/hicolor/256x256/apps/novelwriter.png", f"{imageDir}/novelwriter.png"
|
||||||
|
)
|
||||||
print("Copied: setup/data/hicolor/256x256/apps/novelwriter.png")
|
print("Copied: setup/data/hicolor/256x256/apps/novelwriter.png")
|
||||||
|
|
||||||
# Build Appimage
|
# Build Appimage
|
||||||
@@ -1111,7 +1111,9 @@ def makeAppImage(sysArgs):
|
|||||||
print("")
|
print("")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
outFile = glob.glob(f"{bldDir}/*.AppImage")[0]
|
bldFile = glob.glob(f"{bldDir}/*.AppImage")[0]
|
||||||
|
outFile = f"{bldDir}/novelWriter-{pkgVers}-py{pythonVer}-{linuxTag}.AppImage"
|
||||||
|
os.rename(bldFile, outFile)
|
||||||
shaFile = makeCheckSum(os.path.basename(outFile), cwd=bldDir)
|
shaFile = makeCheckSum(os.path.basename(outFile), cwd=bldDir)
|
||||||
|
|
||||||
toUpload(outFile)
|
toUpload(outFile)
|
||||||
@@ -1119,11 +1121,11 @@ def makeAppImage(sysArgs):
|
|||||||
|
|
||||||
return unparsedArgs
|
return unparsedArgs
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Make Windows Setup EXE (build-win-exe)
|
# Make Windows Setup EXE (build-win-exe)
|
||||||
##
|
##
|
||||||
|
|
||||||
|
|
||||||
def makeWindowsEmbedded(sysArgs):
|
def makeWindowsEmbedded(sysArgs):
|
||||||
"""Set up a package with embedded Python and dependencies for
|
"""Set up a package with embedded Python and dependencies for
|
||||||
Windows installation.
|
Windows installation.
|
||||||
|
|||||||
Reference in New Issue
Block a user