mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
Rename kiwix-lib to libkiwix.
The new name of kiwix-lib is libkiwix. Let kiwix-build adopt the name.
This commit is contained in:
24
.github/scripts/build_release_nightly.py
vendored
24
.github/scripts/build_release_nightly.py
vendored
@ -33,37 +33,37 @@ else:
|
||||
RELEASE = True
|
||||
|
||||
if PLATFORM_TARGET == "android":
|
||||
TARGETS = ("kiwix-lib-app",)
|
||||
TARGETS = ("libkiwix-app",)
|
||||
elif PLATFORM_TARGET.startswith("iOS"):
|
||||
TARGETS = ("libzim", "kiwix-lib")
|
||||
TARGETS = ("libzim", "libkiwix")
|
||||
elif PLATFORM_TARGET.startswith("native_"):
|
||||
if OS_NAME == "osx":
|
||||
TARGETS = ("libzim", ) if PLATFORM_TARGET == "native_mixed" else ("libzim", "zim-tools", "kiwix-lib")
|
||||
TARGETS = ("libzim", ) if PLATFORM_TARGET == "native_mixed" else ("libzim", "zim-tools", "libkiwix")
|
||||
else:
|
||||
if DESKTOP:
|
||||
TARGETS = ("kiwix-desktop",)
|
||||
elif PLATFORM_TARGET == "native_mixed":
|
||||
TARGETS = ("libzim",)
|
||||
else:
|
||||
TARGETS = ("zim-tools", "kiwix-lib", "kiwix-tools")
|
||||
TARGETS = ("zim-tools", "libkiwix", "kiwix-tools")
|
||||
elif PLATFORM_TARGET in ("win32_static", "armhf_static", "i586_static"):
|
||||
TARGETS = ("kiwix-tools",)
|
||||
elif PLATFORM_TARGET == "flatpak":
|
||||
TARGETS = ("kiwix-desktop",)
|
||||
else:
|
||||
TARGETS = ("libzim", "zim-tools", "kiwix-lib", "kiwix-tools")
|
||||
TARGETS = ("libzim", "zim-tools", "libkiwix", "kiwix-tools")
|
||||
|
||||
# Filter what to build if we are doing a release.
|
||||
if RELEASE:
|
||||
def release_filter(project):
|
||||
if project == "kiwix-lib-app":
|
||||
project = "kiwix-lib"
|
||||
if project == "libkiwix-app":
|
||||
project = "libkiwix"
|
||||
return release_versions.get(project) is not None
|
||||
TARGETS = tuple(filter(release_filter, TARGETS))
|
||||
|
||||
if RELEASE and PLATFORM_TARGET == "android":
|
||||
# Kiwix-lib need to know the extrapostfix version to correctly generate the pom.xml file.
|
||||
extra_postfix = release_versions.get('kiwix-lib')
|
||||
# libkiwix need to know the extrapostfix version to correctly generate the pom.xml file.
|
||||
extra_postfix = release_versions.get('libkiwix')
|
||||
if extra_postfix:
|
||||
os.environ['KIWIXLIB_BUILDVERSION'] = str(extra_postfix)
|
||||
|
||||
@ -109,12 +109,12 @@ if RELEASE:
|
||||
if PLATFORM_TARGET == "flatpak" and "kiwix-desktop" in TARGETS:
|
||||
update_flathub_git()
|
||||
|
||||
if PLATFORM_TARGET == "android" and "kiwix-lib-app" in TARGETS:
|
||||
postfix = get_postfix("kiwix-lib")
|
||||
if PLATFORM_TARGET == "android" and "libkiwix-app" in TARGETS:
|
||||
postfix = get_postfix("libkiwix")
|
||||
basename = "kiwixlib-{}".format(postfix)
|
||||
|
||||
output_release_dir = (
|
||||
HOME / "BUILD_android" / "kiwix-lib-app" / "kiwixLibAndroid" / "build"
|
||||
HOME / "BUILD_android" / "libkiwix-app" / "kiwixLibAndroid" / "build"
|
||||
)
|
||||
shutil.copy(
|
||||
str(output_release_dir / "outputs" / "aar" / "kiwixLibAndroid-release.aar"),
|
||||
|
2
.github/scripts/common.py
vendored
2
.github/scripts/common.py
vendored
@ -134,7 +134,7 @@ def run_kiwix_build(
|
||||
command.append("--hide-progress")
|
||||
command.append("--fast-clone")
|
||||
command.append("--assume-packages-installed")
|
||||
if target == "kiwix-lib-app" and platform.startswith("android_"):
|
||||
if target == "libkiwix-app" and platform.startswith("android_"):
|
||||
command.extend(["--target-platform", "android", "--android-arch", platform[8:]])
|
||||
elif platform == "android":
|
||||
command.extend(["--target-platform", "android"])
|
||||
|
10
.github/scripts/compile_all_deps.py
vendored
10
.github/scripts/compile_all_deps.py
vendored
@ -13,21 +13,21 @@ from common import (
|
||||
)
|
||||
|
||||
if PLATFORM_TARGET.startswith("android_"):
|
||||
TARGETS = ("libzim", "kiwix-lib")
|
||||
TARGETS = ("libzim", "libkiwix")
|
||||
elif PLATFORM_TARGET.startswith("iOS"):
|
||||
TARGETS = ("libzim", "kiwix-lib")
|
||||
TARGETS = ("libzim", "libkiwix")
|
||||
elif PLATFORM_TARGET.startswith("native_"):
|
||||
if OS_NAME == "osx":
|
||||
TARGETS = ("libzim", "zim-tools", "kiwix-lib")
|
||||
TARGETS = ("libzim", "zim-tools", "libkiwix")
|
||||
else:
|
||||
if DESKTOP:
|
||||
TARGETS = ("kiwix-desktop",)
|
||||
elif PLATFORM_TARGET == "native_mixed":
|
||||
TARGETS = ("libzim",)
|
||||
else:
|
||||
TARGETS = ("libzim", "zim-tools", "kiwix-lib", "kiwix-tools")
|
||||
TARGETS = ("libzim", "zim-tools", "libkiwix", "kiwix-tools")
|
||||
else:
|
||||
TARGETS = ("libzim", "zim-tools", "kiwix-lib", "kiwix-tools")
|
||||
TARGETS = ("libzim", "zim-tools", "libkiwix", "kiwix-tools")
|
||||
|
||||
for target in TARGETS:
|
||||
run_kiwix_build(target, platform=PLATFORM_TARGET, build_deps_only=True)
|
||||
|
2
.github/scripts/upload_to_bintray.py
vendored
2
.github/scripts/upload_to_bintray.py
vendored
@ -10,7 +10,7 @@ def create_version(version):
|
||||
url = "https://api.bintray.com/packages/kiwix/kiwix/kiwixlib/versions"
|
||||
payload = {
|
||||
'name': version,
|
||||
'desc': 'Release of kiwix-lib'
|
||||
'desc': 'Release of libkiwix'
|
||||
}
|
||||
headers = {
|
||||
'Content-Type': 'application/json'
|
||||
|
Reference in New Issue
Block a user