mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-05-07 17:29:50 +00:00
Add helpful message in build files are missing
This commit is contained in:
parent
49a1beb225
commit
f0adf35db4
@ -46,11 +46,11 @@ def copy_files_to_package(destpath, packages, with_so):
|
|||||||
# 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 --help\"? Exiting...")
|
||||||
return
|
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"))
|
||||||
@ -161,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 --help\"? 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