Skip to content

Commit 189f7af

Browse files
author
Travis Lee
authored
release binary with the LICENSE file (#41)
1 parent 19e9e1d commit 189f7af

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
with:
9999
files: |
100100
release/curl-static-*.tar.xz
101-
COPYING
101+
release/LICENSE.tar.xz
102102
body_path: release/release.md
103103
tag_name: ${{ env.VERSION }}
104104
token: ${{ secrets.GITHUB_TOKEN }}

curl-static-cross.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,6 @@ tar_curl() {
622622

623623
echo "${CURL_VERSION}" > "${RELEASE_DIR}/version.txt"
624624
cp -f src/curl "${RELEASE_DIR}/release/curl"
625-
cp -f COPYING "${RELEASE_DIR}/release/"
626625
ln "${RELEASE_DIR}/release/curl" "${RELEASE_DIR}/bin/curl-${arch}"
627626
create_release_note "$(pwd)";
628627
tar -Jcf "${RELEASE_DIR}/release/curl-static-${arch}-${CURL_VERSION}.tar.xz" -C "${RELEASE_DIR}/release" curl;
@@ -634,6 +633,9 @@ create_release_note() {
634633
[ -f release/release.md ] && return
635634
local components protocols features
636635

636+
wget --tries=10 -O release/LICENSE.tar.xz \
637+
https://github.com/stunnel/static-curl/releases/download/8.4.0/LICENSE.tar.xz
638+
637639
echo "Creating release note..."
638640
components=$("bin/curl-${arch}" -V | head -n 1 | sed 's#OpenSSL/#quictls/#g' | sed 's/ /\n/g' | grep '/' | sed 's#^#- #g' || true)
639641
protocols=$(grep Protocols "${1}/config.log" | cut -d":" -f2 | sed -e 's/^[[:space:]]*//')
@@ -653,7 +655,11 @@ ${protocols}
653655
## Features
654656
655657
${features}
656-
EOF
658+
659+
## License
660+
661+
This binary includes various open-source software such as curl, openssl, zlib, brotli, zstd, libidn2, libssh2, nghttp2, ngtcp2, nghttp3. Their license information has been compiled and is included in the LICENSE.tar.xz file.
662+
657663
}
658664
659665
create_checksum() {

0 commit comments

Comments
 (0)