mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
SSH server which was used to receive file uploads (CI, nightly and release) has been migrated to a new one on a different address. Username, Key and paths are unchanged. Most notable changes are the use of `master.download.kiwix.org` as the target in replacement of `mirror.download.kiwix.org` (although it would still work) and the Port to which SSH is listening on (30022 instead of 22)
37 lines
1.0 KiB
Python
Executable File
37 lines
1.0 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import os
|
|
|
|
from common import (
|
|
run_kiwix_build,
|
|
make_deps_archive,
|
|
upload,
|
|
OS_NAME,
|
|
PLATFORM_TARGET,
|
|
DESKTOP,
|
|
KIWIX_DESKTOP_ONLY,
|
|
)
|
|
|
|
if PLATFORM_TARGET.startswith("android_"):
|
|
TARGETS = ("libzim", "libkiwix")
|
|
elif PLATFORM_TARGET.startswith("iOS"):
|
|
TARGETS = ("libzim", "libkiwix")
|
|
elif PLATFORM_TARGET.startswith("native_"):
|
|
if OS_NAME == "osx":
|
|
TARGETS = ("libzim", "zim-tools", "libkiwix")
|
|
else:
|
|
if DESKTOP:
|
|
TARGETS = ("kiwix-desktop",)
|
|
elif PLATFORM_TARGET == "native_mixed":
|
|
TARGETS = ("libzim",)
|
|
else:
|
|
TARGETS = ("libzim", "zim-tools", "libkiwix", "kiwix-tools")
|
|
else:
|
|
TARGETS = ("libzim", "zim-tools", "libkiwix", "kiwix-tools")
|
|
|
|
for target in TARGETS:
|
|
run_kiwix_build(target, platform=PLATFORM_TARGET, build_deps_only=True)
|
|
archive_file = make_deps_archive(target=target)
|
|
upload(archive_file, "ci@tmp.kiwix.org:30022", "/data/tmp/ci")
|
|
os.remove(str(archive_file))
|