Skip to content

Commit 8a02f35

Browse files
committed
revisions
1 parent a7986a6 commit 8a02f35

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,20 @@ 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+
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)"
6161
62-
for dependency_version_json in ${lt_version}/*-dependency-version.json; do
62+
# this need to check both 1.2 and 2.0 folders to merge the libtorrent versions in the dependency-version.json
63+
for dependency_version_json in {1.2,2.0}/*-dependency-version.json; do
6364
if [[ -f ${dependency_version_json} ]]; then
6465
sed -r 's/"boost": (.*)/BOOST_PLACEHOLDER/g' -i "${dependency_version_json}"
6566
sed -r 's/"revision": (.*)/REVISION_PLACEHOLDER/g' -i "${dependency_version_json}"
6667
dependency_version+=("${dependency_version_json}")
6768
fi
6869
done
6970
70-
for release_md in ${lt_version}/*-release.md; do
71+
# This file only needs to merge info specific to the libtorrent matrix running it.
72+
for release_md in "${lt_version}"/*-release.md; do
7173
if [[ -f ${release_md} ]]; then
7274
sed -r 's/^\|(.*)revision(.*)\|(.*)\|$/REVISION_PLACEHOLDER/g' -i "${release_md}"
7375
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)