Skip to content

Commit ccd6472

Browse files
committed
v2.1.0
1 parent 6973c1e commit ccd6472

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

changelog.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### v2.0.15 - 12/01/2025
1+
### v2.1.0 - 17/01/2025
22

33
`qbt-nox-static.bash` will be a created alongside the `qbittorrent-nox-static.sh`.
44

@@ -26,6 +26,15 @@ general refactoring towards more consistent use of arrays data throughout the sc
2626

2727
credits: Borrowed some build flags from here [qbittorrent/docker-qbittorrent-nox](https://github.com/qbittorrent/docker-qbittorrent-nox/blob/main/Dockerfile#L59-L61)
2828

29+
### v2.0.15 - 17/01/2025
30+
31+
`qbittorrent-nox-static.sh` only
32+
33+
fixed: optimize was not working as intended for being spelt inconsistently and the checks for crossbuilding were not correct.
34+
changed: optimize now accepts a quoted string of flags. `-o "-things -to -pass"
35+
36+
structure tweaks and layout.
37+
2938
### v2.0.14 - 31/12/2024
3039

3140
fix: libtorrent `v1.2` and boost `1.86.0` check to not ignore `RC_1_2`

qbt-nox-static.bash

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ _custom_flags_set() {
954954
_custom_flags_reset() {
955955
CFLAGS="-O3 -pipe -fstack-clash-protection -fstack-protector-strong -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS ${qbt_optimise/*/${qbt_optimise} }"
956956
CXXFLAGS="-w -std=${qbt_cxx_standard} -O3 -pipe -fstack-clash-protection -fstack-protector-strong -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS ${qbt_optimise/*/${qbt_optimise} }"
957-
CPPFLAGS="-w -pthread -z max-page-size=65536 -O3 -gz -Wl,-O1,--as-needed,--sort-common,-z,now,-z,pack-relative-relocs,-z,relro ${qbt_optimise/*/${qbt_optimise} }"
957+
CPPFLAGS="-w -pthread -z max-page-size=65536 -O3 -gz -Wl,-O1,--as-needed,--sort-common,-z,now,-z,pack-relative-relocs,-z,relro ${qbt_optimise/*/${qbt_optimise} }"
958958
LDFLAGS=""
959959
}
960960
#######################################################################################################################################################
@@ -973,7 +973,9 @@ _install_qbittorrent() {
973973
printf '\n%b\n' " ${unicode_blue_light_circle} qbittorrent-nox has been installed!${color_end}"
974974
printf '\n%b\n' " Run it using this command:"
975975
if [[ "${qbt_privileges_required[root]}" == 'true' ]] || [[ "${qbt_privileges_required[sudo]}" == 'true' ]]; then
976-
printf '\n%b\n\n' " ${color_green}qbittorrent-nox${color_end}" || printf '\n%b\n\n' " ${color_green}~/bin/qbittorrent-nox${color_end}"
976+
printf '\n%b\n\n' " ${color_green}qbittorrent-nox${color_end}"
977+
else
978+
printf '\n%b\n\n' " ${color_green}~/bin/qbittorrent-nox${color_end}"
977979
fi
978980
exit
979981
else
@@ -2079,7 +2081,7 @@ while (("${#}")); do
20792081
qbt_curl_proxy=("--proxy-insecure" "-x" "${2}")
20802082
shift 2
20812083
;;
2082-
-o | --optimize)
2084+
-o | --optimise)
20832085
if [[ -z "${qbt_cross_name}" ]] || [[ "${qbt_cross_name}" == "default" ]]; then
20842086
if [[ -n "${2}" ]]; then
20852087
qbt_optimise="-march=native ${2}"
@@ -2335,7 +2337,7 @@ while (("${#}")); do
23352337
printf '%b\n' " ${color_green}Use:${color_end} ${color_blue_light}-m${color_end} ${text_dim}or${color_end} ${color_blue_light}--master${color_end} ${color_yellow}Help:${color_end} ${color_blue_light}-h-m${color_end} ${text_dim}or${color_end} ${color_blue_light}--help-master${color_end}"
23362338
printf '%b\n' " ${color_green}Use:${color_end} ${color_blue_light}-ma${color_end} ${text_dim}or${color_end} ${color_blue_light}--multi-arch${color_end} ${color_yellow}Help:${color_end} ${color_blue_light}-h-ma${color_end} ${text_dim}or${color_end} ${color_blue_light}--help-multi-arch${color_end}"
23372339
printf '%b\n' " ${color_green}Use:${color_end} ${color_blue_light}-n${color_end} ${text_dim}or${color_end} ${color_blue_light}--no-delete${color_end} ${color_yellow}Help:${color_end} ${color_blue_light}-h-n${color_end} ${text_dim}or${color_end} ${color_blue_light}--help-no-delete${color_end}"
2338-
printf '%b\n' " ${color_green}Use:${color_end} ${color_blue_light}-o${color_end} ${text_dim}or${color_end} ${color_blue_light}--optimize${color_end} ${color_yellow}Help:${color_end} ${color_blue_light}-h-o${color_end} ${text_dim}or${color_end} ${color_blue_light}--help-optimize${color_end}"
2340+
printf '%b\n' " ${color_green}Use:${color_end} ${color_blue_light}-o${color_end} ${text_dim}or${color_end} ${color_blue_light}--optimise${color_end} ${color_yellow}Help:${color_end} ${color_blue_light}-h-o${color_end} ${text_dim}or${color_end} ${color_blue_light}--help-optimise${color_end}"
23392341
printf '%b\n' " ${color_green}Use:${color_end} ${color_blue_light}-p${color_end} ${text_dim}or${color_end} ${color_blue_light}--proxy${color_end} ${color_yellow}Help:${color_end} ${color_blue_light}-h-p${color_end} ${text_dim}or${color_end} ${color_blue_light}--help-proxy${color_end}"
23402342
printf '%b\n' " ${color_green}Use:${color_end} ${color_blue_light}-pr${color_end} ${text_dim}or${color_end} ${color_blue_light}--patch-repo${color_end} ${color_yellow}Help:${color_end} ${color_blue_light}-h-pr${color_end} ${text_dim}or${color_end} ${color_blue_light}--help-patch-repo${color_end}"
23412343
printf '%b\n' " ${color_green}Use:${color_end} ${color_blue_light}-qm${color_end} ${text_dim}or${color_end} ${color_blue_light}--qbittorrent-master${color_end} ${color_yellow}Help:${color_end} ${color_blue_light}-h-qm${color_end} ${text_dim}or${color_end} ${color_blue_light}--help-qbittorrent-master${color_end}"
@@ -2532,7 +2534,7 @@ while (("${#}")); do
25322534
printf '\n'
25332535
exit
25342536
;;
2535-
-h-o | --help-optimize)
2537+
-h-o | --help-optimise)
25362538
printf '\n%b\n' " ${unicode_cyan_light_circle} ${text_bold}${text_underlined}Here is the help description for this flag:${color_end}"
25372539
printf '\n%b\n' " ${unicode_yellow_circle} ${color_yellow_light}Warning:${color_end} using this flag will mean your static build is limited a CPU that matches the host spec"
25382540
printf '\n%b\n' " ${unicode_blue_light_circle} Usage example: ${color_blue_light}-o \"-my -custom --flags\"${color_end}"

0 commit comments

Comments
 (0)