Release: use independent component repositories
This commit is contained in:
1 parent
8c69efc56f
commit
f78004e822
26 files changed
+571
-49
No files matched your search
+66
-4
@@ -341,6 +341,7 @@ configure_args=(
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DECHOION_STATIC_LINK=OFF
|
||||
-DECHOION_REPRODUCIBLE_BUILD=ON
|
||||
"-DECHOION_RELEASE_VERSION=$version"
|
||||
"-DECHOION_RUNTIME_VERSION=$version"
|
||||
)
|
||||
official_update_keys="$source_dir/.gitea/release-keys/official-update-keys.json"
|
||||
@@ -428,9 +429,9 @@ cmake \
|
||||
# Bootstrap plugins are copied into writable managed-plugin state by the
|
||||
# installer. Search the active release closure from managed, portable/manual,
|
||||
# and immutable bootstrap locations, then allow plugin-private dependencies.
|
||||
# shellcheck disable=SC2016 # Dynamic linker token, not a shell variable.
|
||||
plugin_runpath='$ORIGIN/../../../../../../current/lib:$ORIGIN/../../current/lib:$ORIGIN/lib'
|
||||
for plugin_library in "${resolver_libraries[@]:1}"; do
|
||||
# shellcheck disable=SC2016 # Dynamic linker token, not a shell variable.
|
||||
patchelf --set-rpath "$plugin_runpath" "$plugin_library"
|
||||
done
|
||||
|
||||
@@ -550,10 +551,19 @@ installer="$dist_dir/$artifact_base.run"
|
||||
external_manifest="$dist_dir/$artifact_base.manifest.json"
|
||||
external_report="$dist_dir/$artifact_base.dependencies.txt"
|
||||
feed_payload="$dist_dir/$artifact_base.update-payload.json"
|
||||
core_artifact="$dist_dir/echoion-core-${version}-linux-x86_64.so"
|
||||
core_feed_payload="$dist_dir/echoion-core-${version}-linux-x86_64.update-payload.json"
|
||||
internal_plugin_artifact="$dist_dir/url-shortener-internal-${version}-linux-x86_64.so"
|
||||
internal_plugin_feed_payload="$dist_dir/url-shortener-internal-${version}-linux-x86_64.update-payload.json"
|
||||
external_plugin_artifact="$dist_dir/url-shortener-external-${version}-linux-x86_64.so"
|
||||
external_plugin_feed_payload="$dist_dir/url-shortener-external-${version}-linux-x86_64.update-payload.json"
|
||||
rm -f -- \
|
||||
"$archive" "$archive.tmp" \
|
||||
"$installer" "$installer.tmp" \
|
||||
"$external_manifest" "$external_report" "$feed_payload" \
|
||||
"$core_artifact" "$core_feed_payload" \
|
||||
"$internal_plugin_artifact" "$internal_plugin_feed_payload" \
|
||||
"$external_plugin_artifact" "$external_plugin_feed_payload" \
|
||||
"$dist_dir/SHA256SUMS"
|
||||
|
||||
bash "$source_dir/scripts/package-release-payload.sh" \
|
||||
@@ -562,6 +572,13 @@ bash "$source_dir/scripts/package-release-payload.sh" \
|
||||
|
||||
install -m 0644 "$stage/manifest.json" "$external_manifest"
|
||||
install -m 0644 "$dependency_report" "$external_report"
|
||||
install -m 0644 "$stage/lib/Echoion.ts" "$core_artifact"
|
||||
install -m 0644 \
|
||||
"$stage/share/echoion/bootstrap-plugins/url-shortener-internal/$version/url-shortener-internal.so" \
|
||||
"$internal_plugin_artifact"
|
||||
install -m 0644 \
|
||||
"$stage/share/echoion/bootstrap-plugins/url-shortener-external/$version/url-shortener-external.so" \
|
||||
"$external_plugin_artifact"
|
||||
if [[ -n $update_url ]]; then
|
||||
feed_args=(
|
||||
--artifact "$archive"
|
||||
@@ -576,6 +593,35 @@ if [[ -n $update_url ]]; then
|
||||
[[ -z $update_sequence ]] ||
|
||||
feed_args+=(--sequence "$update_sequence")
|
||||
python3 "$source_dir/scripts/generate-update-feed.py" "${feed_args[@]}"
|
||||
artifact_url_root=${update_url%/*}
|
||||
component_feed_args=(
|
||||
--version "$version"
|
||||
--channel "$update_channel"
|
||||
--feed-id "$update_feed_id"
|
||||
--valid-days "$update_valid_days"
|
||||
)
|
||||
[[ -z $update_sequence ]] ||
|
||||
component_feed_args+=(--sequence "$update_sequence")
|
||||
python3 "$source_dir/scripts/generate-update-feed.py" \
|
||||
--artifact "$core_artifact" \
|
||||
--component core \
|
||||
--url "$artifact_url_root/$(basename "$core_artifact")" \
|
||||
--output-payload "$core_feed_payload" \
|
||||
"${component_feed_args[@]}"
|
||||
python3 "$source_dir/scripts/generate-update-feed.py" \
|
||||
--artifact "$internal_plugin_artifact" \
|
||||
--component plugin \
|
||||
--artifact-id url-shortener-internal \
|
||||
--url "$artifact_url_root/$(basename "$internal_plugin_artifact")" \
|
||||
--output-payload "$internal_plugin_feed_payload" \
|
||||
"${component_feed_args[@]}"
|
||||
python3 "$source_dir/scripts/generate-update-feed.py" \
|
||||
--artifact "$external_plugin_artifact" \
|
||||
--component plugin \
|
||||
--artifact-id url-shortener-external \
|
||||
--url "$artifact_url_root/$(basename "$external_plugin_artifact")" \
|
||||
--output-payload "$external_plugin_feed_payload" \
|
||||
"${component_feed_args[@]}"
|
||||
fi
|
||||
(
|
||||
cd "$dist_dir"
|
||||
@@ -583,9 +629,17 @@ fi
|
||||
"$(basename "$archive")" \
|
||||
"$(basename "$installer")" \
|
||||
"$(basename "$external_manifest")" \
|
||||
"$(basename "$external_report")"
|
||||
"$(basename "$external_report")" \
|
||||
"$(basename "$core_artifact")" \
|
||||
"$(basename "$internal_plugin_artifact")" \
|
||||
"$(basename "$external_plugin_artifact")"
|
||||
)
|
||||
[[ -z $update_url ]] || checksum_files+=(
|
||||
"$(basename "$feed_payload")"
|
||||
"$(basename "$core_feed_payload")"
|
||||
"$(basename "$internal_plugin_feed_payload")"
|
||||
"$(basename "$external_plugin_feed_payload")"
|
||||
)
|
||||
[[ -z $update_url ]] || checksum_files+=("$(basename "$feed_payload")")
|
||||
sha256sum "${checksum_files[@]}" >SHA256SUMS
|
||||
)
|
||||
|
||||
@@ -594,5 +648,13 @@ echo " $archive"
|
||||
echo " $installer"
|
||||
echo " $external_manifest"
|
||||
echo " $external_report"
|
||||
[[ -z $update_url ]] || echo " $feed_payload"
|
||||
echo " $core_artifact"
|
||||
echo " $internal_plugin_artifact"
|
||||
echo " $external_plugin_artifact"
|
||||
if [[ -n $update_url ]]; then
|
||||
echo " $feed_payload"
|
||||
echo " $core_feed_payload"
|
||||
echo " $internal_plugin_feed_payload"
|
||||
echo " $external_plugin_feed_payload"
|
||||
fi
|
||||
echo " $dist_dir/SHA256SUMS"
|
||||
Reference in new issue
Block a user