Skip to content

Commit 7b92730

Browse files
committed
revisions
1 parent a7986a6 commit 7b92730

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

.github/workflows/ci-alpine-release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,22 @@ jobs:
5656
env:
5757
lt_version: ${{ matrix.qbt_libtorrent_version }}
5858
run: |
59-
revision="$(jq -r .revision ${lt_version}/*-dependency-version.json | sort -nr | head -n1)"
60-
boost="$(jq -r .boost ${lt_version}/*-dependency-version.json | head -n1)"
59+
shopt -s nullglob
6160
62-
for dependency_version_json in ${lt_version}/*-dependency-version.json; do
61+
revision="$(jq -r .revision "${lt_version}"/*-dependency-version.json | sort -nr | head -n1)"
62+
boost="$(jq -r .boost "${lt_version}"/*-dependency-version.json | head -n1)"
63+
64+
# this need to check both 1.2 and 2.0 folders to merge the libtorrent versions in the dependency-version.json
65+
for dependency_version_json in {1.2,2.0}/*-dependency-version.json; do
6366
if [[ -f ${dependency_version_json} ]]; then
6467
sed -r 's/"boost": (.*)/BOOST_PLACEHOLDER/g' -i "${dependency_version_json}"
6568
sed -r 's/"revision": (.*)/REVISION_PLACEHOLDER/g' -i "${dependency_version_json}"
6669
dependency_version+=("${dependency_version_json}")
6770
fi
6871
done
6972
70-
for release_md in ${lt_version}/*-release.md; do
73+
# This file only needs to merge info specific to the libtorrent matrix running it.
74+
for release_md in "${lt_version}"/*-release.md; do
7175
if [[ -f ${release_md} ]]; then
7276
sed -r 's/^\|(.*)revision(.*)\|(.*)\|$/REVISION_PLACEHOLDER/g' -i "${release_md}"
7377
release_md+=("${release_md}")

docs/src/content/docs/build-help.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ Add your patches there, for example.
252252

253253
## Build - default profile
254254

255-
Install all default modules (ICU is skipped) and build `qbittorrent-nox` to the default build directory `qbt-build/compelted`.
255+
Install all default modules (ICU is skipped) and build `qbittorrent-nox` to the default build directory `qbt-build/completed`.
256256

257257
```bash
258258
./qbt-nox-static.bash all

qbittorrent-nox-static.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,8 +2187,8 @@ _release_info() {
21872187
| Libtorrent | ${app_version[libtorrent]} |
21882188
| Boost | ${app_version[boost]} |
21892189
| OpenSSL | ${app_version[openssl]} |
2190-
| ${qbt_zlib_type} | ${app_version[zlib]} |
2191-
| revision | ${qbt_revision_version} |
2190+
| ${qbt_zlib_type} | ${app_version[zlib]} |
2191+
| revision | ${qbt_revision_version:-0} |
21922192
21932193
## Architecture and build info
21942194

qbt-nox-static.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2380,8 +2380,8 @@ _release_info() {
23802380
| Libtorrent | ${app_version[libtorrent]} |
23812381
| Boost | ${app_version[boost]} |
23822382
| OpenSSL | ${app_version[openssl]} |
2383-
| ${qbt_zlib_type} | ${app_version[zlib]} |
2384-
| revision | ${qbt_revision_version} |
2383+
| ${qbt_zlib_type} | ${app_version[zlib]} |
2384+
| revision | ${qbt_revision_version:-0} |
23852385
23862386
## Architecture and build info
23872387

0 commit comments

Comments
 (0)