diff --git a/build/gtk-bundle-from-msys2.sh b/build/gtk-bundle-from-msys2.sh index ebc6968ab..62561d8ed 100644 --- a/build/gtk-bundle-from-msys2.sh +++ b/build/gtk-bundle-from-msys2.sh @@ -80,6 +80,8 @@ gtk3_dependency_pkgs=" webkitgtk3 " +package_urls="" + handle_command_line_options() { for opt in "$@"; do @@ -131,6 +133,15 @@ ${gtk_dependency_pkgs} " } +_remember_package_source() { + if [ "$use_cache" = "yes" ]; then + package_url=`pacman -Sp mingw-w64-${ABI}-${2}` + else + package_url="${1}" + fi + package_urls="${package_urls}\n${package_url}" +} + _getpkg() { if [ "$use_cache" = "yes" ]; then package_info=`pacman -Qi mingw-w64-$ABI-$1` @@ -148,6 +159,7 @@ extract_packages() { # extract packages for i in $pkgs; do pkg=$(_getpkg $i) + _remember_package_source $pkg $i if [ "$use_cache" = "yes" ]; then if [ -e "$pkg" ]; then echo "Extracting $pkg from cache" @@ -244,6 +256,19 @@ cleanup_unnecessary_files() { find . -type d -empty -delete } +create_bundle_dependency_info_file() { + filename="ReadMe.Dependencies.Geany-Plugins.txt" + cat << EOF > "${filename}" +This installation contains dependencies for Geany-Plugins which are +distributed as binaries (usually .dll files) as well as additional +files necessary for these dependencies. +Following is a list of all included binary packages with their +full download URL as used to create this installation. +EOF + echo -e "${package_urls}" >> "${filename}" + unix2dos "${filename}" +} + create_zip_archive() { if [ "$make_zip" = "yes" ]; then echo "Packing the bundle" @@ -258,4 +283,5 @@ initialize extract_packages move_extracted_files cleanup_unnecessary_files +create_bundle_dependency_info_file create_zip_archive