Skip to content

Commit 4037b4d

Browse files
committed
v2.0.14
1 parent d81f63a commit 4037b4d

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.github/workflows/ci-main-reusable-caller.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ on:
2020
default: true
2121
type: boolean
2222
icu:
23-
description: "enable icu"
23+
description: "Enable icu"
2424
required: true
2525
default: false
2626
type: boolean
2727
debug:
28-
description: "debug builds"
28+
description: "Debug builds (symbols)"
2929
required: true
3030
default: false
3131
type: boolean
3232
release:
33-
description: "release assets?"
33+
description: "Release assets?"
3434
required: true
3535
default: true
3636
type: boolean
@@ -51,14 +51,14 @@ on:
5151
options: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]
5252

5353
concurrency:
54-
group: ${{ github.workflow }}-ci-main-reusable-caller
54+
group: ci-main-reusable-caller
5555
cancel-in-progress: true
5656

5757
jobs:
5858
ci-debian-build:
5959
if: always() && github.event.inputs.debian-build == 'true'
6060
concurrency:
61-
group: ${{ github.workflow }}-ci-debian-build
61+
group: ci-debian-build
6262
cancel-in-progress: true
6363
uses: ./.github/workflows/ci-debian-build.yml
6464
with:
@@ -70,7 +70,7 @@ jobs:
7070
ci-alpine-build:
7171
if: always() && github.event.inputs.alpine-build == 'true'
7272
concurrency:
73-
group: ${{ github.workflow }}-ci-alpine-build
73+
group: ci-alpine-build
7474
cancel-in-progress: true
7575
permissions:
7676
id-token: write
@@ -87,7 +87,7 @@ jobs:
8787
needs: [ci-alpine-build]
8888
if: always() && github.event.inputs.release == 'true' && contains(needs.*.result, 'success') && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')
8989
concurrency:
90-
group: ${{ github.workflow }}-ci-alpine-release
90+
group: ci-alpine-release
9191
cancel-in-progress: true
9292
permissions:
9393
contents: write
@@ -98,9 +98,9 @@ jobs:
9898

9999
ci-auto-rerun-failed-jobs:
100100
needs: [ci-debian-build, ci-alpine-build, ci-alpine-release]
101-
if: failure() && inputs.skip_rerun == '0'
101+
if: always() && github.event.inputs.skip_rerun == 'false' && contains(needs.*.result, 'failure')
102102
concurrency:
103-
group: ${{ github.workflow }}-ci-auto-rerun-failed-jobs
103+
group: ci-auto-rerun-failed-jobs
104104
cancel-in-progress: true
105105
permissions:
106106
actions: write

qbittorrent-nox-static.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#################################################################################################################################################
2020
# Script version = Major minor patch
2121
#################################################################################################################################################
22-
script_version="2.0.13"
22+
script_version="2.0.14"
2323
#################################################################################################################################################
2424
# Set some script features - https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
2525
#################################################################################################################################################
@@ -176,7 +176,7 @@ _set_default_values() {
176176
qbt_skip_icu="${qbt_skip_icu:-yes}"
177177

178178
# Env setting for the boost tag
179-
if [[ "${qbt_libtorrent_version}" == "1.2" ]]; then
179+
if [[ "${qbt_libtorrent_version}" == "1.2" || "${qbt_libtorrent_tag}" =~ ^(v1\.2\.|RC_1_2) ]]; then
180180
qbt_boost_tag="${qbt_boost_tag:-boost-1.86.0}"
181181
else
182182
qbt_boost_tag="${qbt_boost_tag:-}"
@@ -626,7 +626,7 @@ _boost_url() {
626626
fi
627627

628628
local boost_url_array=(
629-
"https://boostorg.jfrog.io/artifactory/main/${boost_asset_type}/${github_tag[boost]/boost-/}/source/${boost_asset//[-\.]/_}.tar.gz"
629+
"https://github.com/boostorg/boost/${boost_asset_type}s/download/${github_tag[boost]}/${github_tag[boost]}-b2-nodocs.tar.xz"
630630
"https://archives.boost.io/${boost_asset_type}/${github_tag[boost]/boost-/}/source/${boost_asset//[-\.]/_}.tar.gz"
631631
)
632632

@@ -1038,11 +1038,13 @@ _apply_patches() {
10381038
patch_file="${patch_dir}/patch"
10391039
patch_url_file="${patch_dir}/url" # A file with a url to raw patch info
10401040
# remote
1041-
patch_file_remote="https://raw.githubusercontent.com/${qbt_patches_url}/master/patches/${app_name}/${app_version[${app_name}]}"
1041+
qbt_patches_url_branch="$(_git_git ls-remote -q --symref "https://github.com/${qbt_patches_url}" HEAD | awk '/^ref:/{sub("refs/heads/", "", $2); print $2}')"
1042+
# qbt_patches_url_branch="$(_curl -sL "https://github.com/${qbt_patches_url}" | sed -n 's/.*"defaultBranch":"\([^"]*\)".*/\1/p')"
1043+
patch_file_remote="https://raw.githubusercontent.com/${qbt_patches_url}/${qbt_patches_url_branch}/patches/${app_name}/${app_version[${app_name}]}"
10421044

10431045
if [[ "${app_name}" == "libtorrent" ]]; then
10441046
patch_jamfile="${patch_dir}/Jamfile"
1045-
patch_jamfile_url="https://raw.githubusercontent.com/${qbt_patches_url}/master/patches/${app_name}/${app_version[${app_name}]}/Jamfile"
1047+
patch_jamfile_url="https://raw.githubusercontent.com/${qbt_patches_url}/${qbt_patches_url_branch}/patches/${app_name}/${app_version[${app_name}]}/Jamfile"
10461048
fi
10471049

10481050
# Order of patch file preference
@@ -1090,7 +1092,9 @@ _apply_patches() {
10901092
fi
10911093

10921094
# Patch files
1093-
[[ -f "${patch_file}" ]] && patch -p1 < "${patch_file}"
1095+
if [[ -f "${patch_file}" ]]; then
1096+
patch -p1 < "${patch_file}"
1097+
fi
10941098

10951099
# Copy modified files from source directory
10961100
if [[ -d "${patch_dir}/source" && "$(ls -A "${patch_dir}/source")" ]]; then
@@ -1227,7 +1231,7 @@ _download_file() {
12271231
fi
12281232

12291233
if [[ "${qbt_cache_dir_options}" != "bs" && ! -f "${qbt_dl_file_path}" ]]; then
1230-
printf '\n%b\n\n' " ${unicode_blue_light_circle} Dowloading ${color_magenta_light}${app_name}${color_end} using ${color_yellow_light}${source_type}${color_end} files to ${color_cyan_light}${qbt_dl_file_path}${color_end} - ${color_yellow_light}${qbt_dl_source_url}${color_end}"
1234+
printf '\n%b\n\n' " ${unicode_blue_light_circle} Downloading ${color_magenta_light}${app_name}${color_end} using ${color_yellow_light}${source_type}${color_end} files to ${color_cyan_light}${qbt_dl_file_path}${color_end} - ${color_yellow_light}${qbt_dl_source_url}${color_end}"
12311235
elif [[ -n "${qbt_cache_dir}" && "${qbt_cache_dir_options}" == "bs" && ! -f "${qbt_dl_file_path}" ]]; then
12321236
printf '\n%b\n' " ${unicode_blue_light_circle} Caching ${color_magenta_light}${app_name}${color_end} ${color_yellow_light}${source_type}${color_end} files to ${color_cyan_light}${qbt_cache_dir}/${app_name}.tar.xz${color_end} - ${color_yellow_light}${qbt_dl_source_url}${color_end}"
12331237
elif [[ -n "${qbt_cache_dir}" && "${qbt_cache_dir_options}" == "bs" && -f "${qbt_dl_file_path}" ]]; then
@@ -1274,7 +1278,7 @@ _fix_static_links() {
12741278
for file in "${library_list[@]}"; do
12751279
if [[ "$(readlink "${lib_dir}/${file}.so")" != "${file}.a" ]]; then
12761280
ln -fsn "${file}.a" "${lib_dir}/${file}.so"
1277-
printf 's%b\n' "${lib_dir}${file}.so changed to point to ${file}.a" |& _tee -a "${qbt_install_dir}/logs/${log_name}-fix-static-links.log" > /dev/null
1281+
printf '%b\n' "${lib_dir}${file}.so changed to point to ${file}.a" |& _tee -a "${qbt_install_dir}/logs/${log_name}-fix-static-links.log" > /dev/null
12781282
fi
12791283
done
12801284
return

0 commit comments

Comments
 (0)