mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Merge pull request #691 from glubsy/fix_package_script
Fix error in package script for (Arch) Linux
This commit is contained in:
commit
c36fd84512
13
package.py
13
package.py
@ -43,6 +43,15 @@ def copy_files_to_package(destpath, packages, with_so):
|
|||||||
shutil.copy("run.py", op.join(destpath, "run.py"))
|
shutil.copy("run.py", op.join(destpath, "run.py"))
|
||||||
extra_ignores = ["*.so"] if not with_so else None
|
extra_ignores = ["*.so"] if not with_so else None
|
||||||
copy_packages(packages, destpath, extra_ignores=extra_ignores)
|
copy_packages(packages, destpath, extra_ignores=extra_ignores)
|
||||||
|
# include locale files if they are built otherwise exit as it will break
|
||||||
|
# the localization
|
||||||
|
if not op.exists("build/locale"):
|
||||||
|
print("Locale files are missing. Have you run \"build.py --loc\"? Exiting...")
|
||||||
|
return
|
||||||
|
# include help files if they are built otherwise exit as they should be included?
|
||||||
|
if not op.exists("build/help"):
|
||||||
|
print("Help files are missing. Have you run \"build.py --doc\"? Exiting...")
|
||||||
|
return
|
||||||
shutil.copytree(op.join("build", "help"), op.join(destpath, "help"))
|
shutil.copytree(op.join("build", "help"), op.join(destpath, "help"))
|
||||||
shutil.copytree(op.join("build", "locale"), op.join(destpath, "locale"))
|
shutil.copytree(op.join("build", "locale"), op.join(destpath, "locale"))
|
||||||
compileall.compile_dir(destpath)
|
compileall.compile_dir(destpath)
|
||||||
@ -152,11 +161,11 @@ def package_windows():
|
|||||||
# include locale files if they are built otherwise exit as it will break
|
# include locale files if they are built otherwise exit as it will break
|
||||||
# the localization
|
# the localization
|
||||||
if not op.exists("build/locale"):
|
if not op.exists("build/locale"):
|
||||||
print("Locale files not built, exiting...")
|
print("Locale files are missing. Have you run \"build.py --loc\"? Exiting...")
|
||||||
return
|
return
|
||||||
# include help files if they are built otherwise exit as they should be included?
|
# include help files if they are built otherwise exit as they should be included?
|
||||||
if not op.exists("build/help"):
|
if not op.exists("build/help"):
|
||||||
print("Help files not built, exiting...")
|
print("Help files are missing. Have you run \"build.py --doc\"? Exiting...")
|
||||||
return
|
return
|
||||||
# create version information file from template
|
# create version information file from template
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user