Merge pull request #236 from kiwix/correct_src_path

Use the correct source path of kiwix-desktop when doing release.
This commit is contained in:
Matthieu Gautier 2018-08-06 10:04:00 +02:00 committed by GitHub
commit 1948b109e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -96,16 +96,19 @@ def run_kiwix_build(target, platform,
def create_app_image():
command = ['kiwix-build/scripts/create_kiwix-desktop_appImage.sh',
str(BASE_DIR/'INSTALL'), str(HOME/'SOURCE'/'kiwix-desktop'), str(HOME/'AppDir')]
print_message("Build AppImage of kiwix-desktop")
subprocess.check_call(command, cwd=str(HOME))
if make_release:
postfix = main_project_versions['kiwix-desktop']
archive_dir = RELEASE_KIWIX_ARCHIVES_DIR/'kiwix-desktop'
src_dir = SOURCE_DIR/'kiwix-desktop-{}'.format(postfix)
else:
postfix = _date
archive_dir = NIGHTLY_KIWIX_ARCHIVES_DIR
src_dir = SOURCE_DIR/'kiwix-desktop'
command = ['kiwix-build/scripts/create_kiwix-desktop_appImage.sh',
str(BASE_DIR/'INSTALL'), str(src_dir), str(HOME/'AppDir')]
print_message("Build AppImage of kiwix-desktop")
subprocess.check_call(command, cwd=str(HOME))
try:
archive_dir.mkdir(parents=True)