You've already forked qBittorrent
mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-10-14 11:52:15 +02:00
Compare commits
123 Commits
release-5.
...
release-4.
Author | SHA1 | Date | |
---|---|---|---|
![]() |
785320e7f6 | ||
![]() |
954d6ff5c6 | ||
![]() |
1f6a817020 | ||
![]() |
4e30e6cb8e | ||
![]() |
753cdfdb1a | ||
![]() |
daaaa11f93 | ||
![]() |
c0e0e36d10 | ||
![]() |
188469a42c | ||
![]() |
18296b2f75 | ||
![]() |
cce1290c0c | ||
![]() |
64acc64c58 | ||
![]() |
d5a3f724ab | ||
![]() |
7567f71c55 | ||
![]() |
6805922521 | ||
![]() |
a3812c0831 | ||
![]() |
361741d677 | ||
![]() |
acd9102dc2 | ||
![]() |
e74b587420 | ||
![]() |
2589363622 | ||
![]() |
cfa7a6db46 | ||
![]() |
5609fa49a6 | ||
![]() |
d0ad08e495 | ||
![]() |
33b51249dc | ||
![]() |
17b6dcfbef | ||
![]() |
c894d84ed3 | ||
![]() |
8c52b53300 | ||
![]() |
4c3af5d923 | ||
![]() |
77d907c2aa | ||
![]() |
a56b3edc58 | ||
![]() |
a83424a7a7 | ||
![]() |
cdf66e069d | ||
![]() |
1773b1ea05 | ||
![]() |
9ebbafed95 | ||
![]() |
8a5ffd68df | ||
![]() |
cf6e4ce933 | ||
![]() |
c54f8bf219 | ||
![]() |
3f6ca64d9e | ||
![]() |
0990c2632b | ||
![]() |
ba5229a069 | ||
![]() |
1aff030317 | ||
![]() |
c1b63372f1 | ||
![]() |
081eace057 | ||
![]() |
61fae3a3ee | ||
![]() |
18ad861444 | ||
![]() |
a57b80c7e0 | ||
![]() |
bfa8dc7f67 | ||
![]() |
92f810873a | ||
![]() |
6739f59e5f | ||
![]() |
d6e888a877 | ||
![]() |
1fb329c0ef | ||
![]() |
ffe085dc8a | ||
![]() |
267d504ec0 | ||
![]() |
b824889d07 | ||
![]() |
59d968e116 | ||
![]() |
43300d97e2 | ||
![]() |
3007762864 | ||
![]() |
786c09e981 | ||
![]() |
2c2252d7d9 | ||
![]() |
c7dfc1ded2 | ||
![]() |
c2dd53cee6 | ||
![]() |
903173b8f1 | ||
![]() |
837d39dac7 | ||
![]() |
54dffa1051 | ||
![]() |
a14b50e48c | ||
![]() |
b284d40430 | ||
![]() |
ee853d8751 | ||
![]() |
d5c0c094f2 | ||
![]() |
3c0747fb87 | ||
![]() |
31e0ab2c70 | ||
![]() |
bb6d69f8b7 | ||
![]() |
a396e0df26 | ||
![]() |
a1317e24f9 | ||
![]() |
42d7465cba | ||
![]() |
4b56bdd36f | ||
![]() |
dc31e82d00 | ||
![]() |
7b73d3fb5c | ||
![]() |
6b3da26af8 | ||
![]() |
488c022d89 | ||
![]() |
d512d6dead | ||
![]() |
a1ff1c8227 | ||
![]() |
7bc49423c7 | ||
![]() |
3d3ce1c5d7 | ||
![]() |
832d68d5cb | ||
![]() |
ec8802203d | ||
![]() |
4beee27701 | ||
![]() |
716aca17f8 | ||
![]() |
d85ed84e83 | ||
![]() |
20985f9960 | ||
![]() |
e6cde0b4b4 | ||
![]() |
a84259dd1a | ||
![]() |
4f3dbf7f59 | ||
![]() |
d877215018 | ||
![]() |
7512b92a36 | ||
![]() |
81a3479fd7 | ||
![]() |
edeb62c25d | ||
![]() |
45f0b27ed1 | ||
![]() |
ffb3f60a22 | ||
![]() |
c14b08bd1d | ||
![]() |
91560e6e60 | ||
![]() |
7df54ad534 | ||
![]() |
1e88650bae | ||
![]() |
604986e90f | ||
![]() |
c77466abb0 | ||
![]() |
a9d8cf2ea9 | ||
![]() |
22420339a5 | ||
![]() |
9076ff8876 | ||
![]() |
af20233dfc | ||
![]() |
dfd735f2dc | ||
![]() |
2a04a4d077 | ||
![]() |
67d340ad63 | ||
![]() |
2b69cabc2c | ||
![]() |
062e35e6b0 | ||
![]() |
3088b38d7e | ||
![]() |
f5b5570a3b | ||
![]() |
80bb19701c | ||
![]() |
8376707379 | ||
![]() |
483ccb39bf | ||
![]() |
41e44d22ea | ||
![]() |
766fce82b1 | ||
![]() |
938adca47d | ||
![]() |
5bb02cbd90 | ||
![]() |
66777f3304 | ||
![]() |
508896c4f2 |
101
.appveyor.yml
Normal file
101
.appveyor.yml
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
version: '{branch}-{build}'
|
||||||
|
|
||||||
|
# Do not build on tags (GitHub only)
|
||||||
|
skip_tags: true
|
||||||
|
|
||||||
|
image: Visual Studio 2022
|
||||||
|
|
||||||
|
branches:
|
||||||
|
except: # blacklist
|
||||||
|
- coverity_scan
|
||||||
|
|
||||||
|
environment:
|
||||||
|
REPO_DIR: &REPO_DIR c:\qbittorrent
|
||||||
|
CACHE_DIR: &CACHE_DIR c:\qbt_cache
|
||||||
|
|
||||||
|
QBT_VER_URL: https://builds.shiki.hu/appveyor/version_64
|
||||||
|
QBT_LIB_URL: https://builds.shiki.hu/appveyor/qbt_libraries_64.7z
|
||||||
|
|
||||||
|
# project directory
|
||||||
|
clone_folder: *REPO_DIR
|
||||||
|
|
||||||
|
# cache size should < 100MB (after compressing with fastest option):
|
||||||
|
# see: https://www.appveyor.com/docs/build-cache#save-update-cache-before-build-finishes
|
||||||
|
cache:
|
||||||
|
- *CACHE_DIR
|
||||||
|
|
||||||
|
clone_depth: 50
|
||||||
|
|
||||||
|
install:
|
||||||
|
# check if library needs update
|
||||||
|
- appveyor DownloadFile "%QBT_VER_URL%" -FileName "c:\version_new" && SET /P newVersion=<"c:\version_new"
|
||||||
|
- IF EXIST "%CACHE_DIR%\version" (SET /P oldVersion=<"%CACHE_DIR%\version")
|
||||||
|
- IF NOT EXIST "%CACHE_DIR%\version" (SET updateCache=1)
|
||||||
|
- IF NOT "%oldVersion%" == "%newVersion%" (SET updateCache=1)
|
||||||
|
# update library
|
||||||
|
- IF "%updateCache%" == "1" (ECHO "--- Will redownload libraries ---" &&
|
||||||
|
RMDIR /S /Q "%CACHE_DIR%" & MKDIR "%CACHE_DIR%" &&
|
||||||
|
appveyor DownloadFile "%QBT_LIB_URL%" -FileName "c:\qbt_lib.7z" && 7z x "c:\qbt_lib.7z" -o"%CACHE_DIR%" > nul &&
|
||||||
|
COPY "c:\version_new" "%CACHE_DIR%\version")
|
||||||
|
|
||||||
|
before_build:
|
||||||
|
# setup env
|
||||||
|
- CALL "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
|
||||||
|
- SET PATH=%PATH%;C:\Qt\5.15.2\msvc2019_64\bin;%CACHE_DIR%\jom
|
||||||
|
# setup project
|
||||||
|
- COPY /Y "%CACHE_DIR%\conf.pri" "%REPO_DIR%"
|
||||||
|
# workarounds
|
||||||
|
- MKDIR "c:\qbt"
|
||||||
|
- MKLINK /J "c:\qbt\base" "%CACHE_DIR%\base"
|
||||||
|
|
||||||
|
build_script:
|
||||||
|
- cd "%REPO_DIR%"
|
||||||
|
# lupdate chokes when it parses headers from system includes, especially Boost
|
||||||
|
# it also chokes with the sources from src/app/qtlocalpeer (formerly qtsingleapplication)
|
||||||
|
# Workaround: temporarily rename them to run lupdate with the .pro file
|
||||||
|
- RENAME conf.pri conf.pri.temp
|
||||||
|
- RENAME src\app\qtlocalpeer qtlocalpeer.temp
|
||||||
|
- lupdate qbittorrent.pro
|
||||||
|
- RENAME conf.pri.temp conf.pri
|
||||||
|
- RENAME src\app\qtlocalpeer.temp qtlocalpeer
|
||||||
|
- qmake qbittorrent.pro && cd src && qmake src.pro
|
||||||
|
- jom -j2 -f Makefile.Release
|
||||||
|
|
||||||
|
after_build:
|
||||||
|
- cd "%REPO_DIR%"
|
||||||
|
- MKDIR upload
|
||||||
|
- COPY dist\windows\qt.conf upload
|
||||||
|
- COPY src\release\qbittorrent.exe upload
|
||||||
|
- COPY src\release\qbittorrent.pdb upload
|
||||||
|
- COPY "%CACHE_DIR%\base\bin\libcrypto-1_1-x64.dll" upload
|
||||||
|
- COPY "%CACHE_DIR%\base\bin\libcrypto-1_1-x64.pdb" upload
|
||||||
|
- COPY "%CACHE_DIR%\base\bin\libssl-1_1-x64.dll" upload
|
||||||
|
- COPY "%CACHE_DIR%\base\bin\libssl-1_1-x64.pdb" upload
|
||||||
|
- COPY "%CACHE_DIR%\base\bin\torrent-rasterbar.dll" upload
|
||||||
|
- COPY "%CACHE_DIR%\base\bin\torrent-rasterbar.pdb" upload
|
||||||
|
- COPY "%CACHE_DIR%\base\lib\zlib1.dll" upload
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\bin\Qt5Core.dll upload
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\bin\Qt5Gui.dll upload
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\bin\Qt5Network.dll upload
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\bin\Qt5Sql.dll upload
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\bin\Qt5Svg.dll upload
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\bin\Qt5Widgets.dll upload
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\bin\Qt5WinExtras.dll upload
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\bin\Qt5Xml.dll upload
|
||||||
|
- MKDIR upload\plugins\iconengines
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\plugins\iconengines\qsvgicon.dll upload\plugins\iconengines
|
||||||
|
- MKDIR upload\plugins\imageformats
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\plugins\imageformats\qico.dll upload\plugins\imageformats
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\plugins\imageformats\qsvg.dll upload\plugins\imageformats
|
||||||
|
- MKDIR upload\plugins\platforms
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\plugins\platforms\qwindows.dll upload\plugins\platforms
|
||||||
|
- MKDIR upload\plugins\sqldrivers
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\plugins\sqldrivers\qsqlite.dll upload\plugins\sqldrivers
|
||||||
|
- MKDIR upload\plugins\styles
|
||||||
|
- COPY C:\Qt\5.15.2\msvc2019_64\plugins\styles\qwindowsvistastyle.dll upload\plugins\styles
|
||||||
|
|
||||||
|
test: off
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
- path: upload
|
||||||
|
name: qBittorrent-Appveyor_Windows-x64
|
@@ -35,6 +35,7 @@ Checks: >
|
|||||||
-modernize-use-auto,
|
-modernize-use-auto,
|
||||||
-modernize-use-nodiscard,
|
-modernize-use-nodiscard,
|
||||||
-modernize-use-trailing-return-type,
|
-modernize-use-trailing-return-type,
|
||||||
|
-modernize-use-using,
|
||||||
-readability-function-cognitive-complexity,
|
-readability-function-cognitive-complexity,
|
||||||
-readability-function-size,
|
-readability-function-size,
|
||||||
-readability-identifier-length,
|
-readability-identifier-length,
|
||||||
|
@@ -1,10 +1,8 @@
|
|||||||
# EditorConfig is awesome: https://EditorConfig.org
|
# EditorConfig is awesome: http://EditorConfig.org
|
||||||
|
|
||||||
root = true
|
root = true
|
||||||
|
|
||||||
[*]
|
[*]
|
||||||
charset = utf-8
|
|
||||||
end_of_line = lf
|
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -6,5 +6,4 @@ core.eol=lf
|
|||||||
*.qm binary
|
*.qm binary
|
||||||
*.zip binary
|
*.zip binary
|
||||||
|
|
||||||
dist/windows/license.txt text eol=crlf
|
|
||||||
test/testdata/crlf.txt text eol=crlf
|
test/testdata/crlf.txt text eol=crlf
|
||||||
|
18
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
18
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@@ -7,17 +7,19 @@ body:
|
|||||||
#### ADVISORY
|
#### ADVISORY
|
||||||
"We do not support any versions older than the current release series"
|
"We do not support any versions older than the current release series"
|
||||||
|
|
||||||
"We do not support any 3rd party/forked versions e.g. `portableapps`/`Enhanced Edition` etc."
|
"We do not support any 3rd party/forked versions e.g. `portableapps`/`Enhanced Edition`etc."
|
||||||
|
|
||||||
"Please post all details in **English**."
|
"Please post all details in **English**."
|
||||||
|
|
||||||
#### Prerequisites before submitting an issue!
|
#### Prerequisites before submitting an issue!
|
||||||
- Read the issue reporting section in the **[contributing guidelines](https://github.com/qbittorrent/qBittorrent/blob/master/CONTRIBUTING.md)**, to know how to submit a good bug report with the required information.
|
- Read the issue reporting section in the **[contributing guidelines](https://github.com/qbittorrent/qBittorrent/blob/master/CONTRIBUTING.md)**, to know how to submit a good bug report with the required information.
|
||||||
- Verify that the issue is not fixed and is reproducible in the **[latest official qBittorrent version](https://www.qbittorrent.org/download.php).**
|
- Verify that the issue is not fixed and is reproducible in the **[latest official qBittorrent version](https://www.qbittorrent.org/download.php).**
|
||||||
- (Optional, but recommended) Verify that the issue is not fixed and is reproducible in the latest CI (**[macOS](https://github.com/qbittorrent/qBittorrent/actions/workflows/ci_macos.yaml?query=branch%3Amaster+event%3Apush)** / **[Ubuntu](https://github.com/qbittorrent/qBittorrent/actions/workflows/ci_ubuntu.yaml?query=branch%3Amaster+event%3Apush)** / **[Windows](https://github.com/qbittorrent/qBittorrent/actions/workflows/ci_windows.yaml?query=branch%3Amaster+event%3Apush)**) builds.
|
- (Optional, but recommended) Verify that the issue is not fixed and is reproducible in the latest CI (currently only on **[Windows](https://github.com/qbittorrent/qBittorrent/actions/workflows/ci_windows.yaml?query=branch%3Amaster+event%3Apush)**) builds.
|
||||||
- Perform a **[search of the issue tracker (including closed ones)](https://github.com/qbittorrent/qBittorrent/issues?q=is%3Aissue+is%3Aopen+-label%3A%22Feature+request%22)** to avoid posting a duplicate.
|
- Check the **[frequent/common issues list](https://github.com/qbittorrent/qBittorrent/projects/2)** and perform a **[search of the issue tracker (including closed ones)](https://github.com/qbittorrent/qBittorrent/issues)** to avoid posting a duplicate.
|
||||||
- Make sure this is not a support request or question, both of which are better suited for either the **[discussions section](https://github.com/qbittorrent/qBittorrent/discussions)**, **[forum](https://qbforums.shiki.hu/)**, or **[subreddit](https://www.reddit.com/r/qBittorrent/)**.
|
- Make sure this is not a support request or question, both of which are better suited for either the **[discussions section](https://github.com/qbittorrent/qBittorrent/discussions)**, **[forum](https://qbforums.shiki.hu/)**, or **[subreddit](https://www.reddit.com/r/qBittorrent/)**.
|
||||||
- Verify that the **[wiki](https://github.com/qbittorrent/qBittorrent/wiki)** did not contain a suitable solution either.
|
- Verify that the **[wiki](https://github.com/qbittorrent/qBittorrent/wiki)** did not contain a suitable solution either.
|
||||||
|
- If relevant to issue/when asked, the qBittorrent preferences file, qBittorrent.log & watched_folders.json (if using "Watched Folders" feature) must be provided.
|
||||||
|
See **[Where does qBittorrent save its settings?](https://github.com/qbittorrent/qBittorrent/wiki/Frequently-Asked-Questions#Where_does_qBittorrent_save_its_settings)**
|
||||||
|
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
@@ -26,10 +28,10 @@ body:
|
|||||||
Qt and libtorrent-rasterbar versions are required when: 1. You are using linux. 2. You are not using an official build downloaded from our website.
|
Qt and libtorrent-rasterbar versions are required when: 1. You are using linux. 2. You are not using an official build downloaded from our website.
|
||||||
|
|
||||||
Example of preferred formatting:
|
Example of preferred formatting:
|
||||||
qBittorrent: 4.6.6 x64
|
qBittorrent: 4.3.7 x64
|
||||||
Operating system: Windows 10 Pro x64 (22H2) 10.0.19045
|
Operating system: Windows 10 Pro 21H1/2009 x64
|
||||||
Qt: 6.4.3
|
Qt: 5.15.2
|
||||||
libtorrent-rasterbar: 1.2.19
|
libtorrent-rasterbar: 1.2.14
|
||||||
placeholder: |
|
placeholder: |
|
||||||
qBittorrent:
|
qBittorrent:
|
||||||
Operating system:
|
Operating system:
|
||||||
@@ -71,4 +73,4 @@ body:
|
|||||||
See **[Where does qBittorrent save its settings?](https://github.com/qbittorrent/qBittorrent/wiki/Frequently-Asked-Questions#Where_does_qBittorrent_save_its_settings)**
|
See **[Where does qBittorrent save its settings?](https://github.com/qbittorrent/qBittorrent/wiki/Frequently-Asked-Questions#Where_does_qBittorrent_save_its_settings)**
|
||||||
#### Note: It's the user's responsibility to redact any sensitive information
|
#### Note: It's the user's responsibility to redact any sensitive information
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: false
|
||||||
|
2
.github/SUPPORT.md
vendored
2
.github/SUPPORT.md
vendored
@@ -9,7 +9,7 @@ For such questions, use one of the following community support resources:
|
|||||||
|
|
||||||
* The [discussions section][discussions-url]
|
* The [discussions section][discussions-url]
|
||||||
|
|
||||||
* The [official forum][forum-url]
|
* The official forum [official forum][forum-url]
|
||||||
|
|
||||||
* The [qBittorrent subreddit][subreddit-url]
|
* The [qBittorrent subreddit][subreddit-url]
|
||||||
|
|
||||||
|
15
.github/dependabot.yml
vendored
15
.github/dependabot.yml
vendored
@@ -1,15 +0,0 @@
|
|||||||
version: 2
|
|
||||||
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: "github-actions"
|
|
||||||
directory: "/"
|
|
||||||
commit-message:
|
|
||||||
prefix: "GHA CI"
|
|
||||||
groups:
|
|
||||||
github-actions:
|
|
||||||
patterns:
|
|
||||||
- "*"
|
|
||||||
labels:
|
|
||||||
- "CI"
|
|
||||||
schedule:
|
|
||||||
interval: "monthly"
|
|
54
.github/workflows/ci_file_health.yaml
vendored
54
.github/workflows/ci_file_health.yaml
vendored
@@ -12,60 +12,14 @@ jobs:
|
|||||||
ci:
|
ci:
|
||||||
name: Check
|
name: Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
security-events: write
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Setup python
|
- name: Install tools
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: "*"
|
python-version: "*"
|
||||||
|
|
||||||
- name: Check files
|
- name: Check files
|
||||||
uses: pre-commit/action@v3.0.1
|
uses: pre-commit/action@v3.0.0
|
||||||
|
|
||||||
- name: Check doc
|
|
||||||
env:
|
|
||||||
pandoc_path: "${{ github.workspace }}/../pandoc"
|
|
||||||
run: |
|
|
||||||
# install pandoc
|
|
||||||
curl \
|
|
||||||
-L \
|
|
||||||
-o "${{ runner.temp }}/pandoc.tar.gz" \
|
|
||||||
"https://github.com/jgm/pandoc/releases/download/3.6/pandoc-3.6-linux-amd64.tar.gz"
|
|
||||||
tar -xf "${{ runner.temp }}/pandoc.tar.gz" -C "${{ github.workspace }}/.."
|
|
||||||
mv "${{ github.workspace }}/.."/pandoc-* "${{ env.pandoc_path }}"
|
|
||||||
# run pandoc
|
|
||||||
for lang in doc/*/; do
|
|
||||||
"${{ env.pandoc_path }}/bin/pandoc" -f markdown -t man -s "$lang/qbittorrent.1.md" -o "$lang/qbittorrent.1"
|
|
||||||
"${{ env.pandoc_path }}/bin/pandoc" -f markdown -t man -s "$lang/qbittorrent-nox.1.md" -o "$lang/qbittorrent-nox.1"
|
|
||||||
done
|
|
||||||
# check diff, ignore "Automatically generated by ..." part
|
|
||||||
git diff -I '\.\\".*' --exit-code
|
|
||||||
|
|
||||||
- name: Check GitHub Actions workflow
|
|
||||||
env:
|
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
pip install zizmor
|
|
||||||
IGNORE_RULEID='(.ruleId != "template-injection")
|
|
||||||
and (.ruleId != "unpinned-uses")'
|
|
||||||
IGNORE_ID='(.id != "template-injection")
|
|
||||||
and (.id != "unpinned-uses")'
|
|
||||||
zizmor \
|
|
||||||
--format sarif \
|
|
||||||
--pedantic \
|
|
||||||
./ \
|
|
||||||
| jq "(.runs[].results |= map(select($IGNORE_RULEID)))
|
|
||||||
| (.runs[].tool.driver.rules |= map(select($IGNORE_ID)))" \
|
|
||||||
> "${{ runner.temp }}/zizmor_results.sarif"
|
|
||||||
|
|
||||||
- name: Upload zizmor results
|
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
|
||||||
with:
|
|
||||||
category: zizmor
|
|
||||||
sarif_file: "${{ runner.temp }}/zizmor_results.sarif"
|
|
||||||
|
98
.github/workflows/ci_macos.yaml
vendored
98
.github/workflows/ci_macos.yaml
vendored
@@ -2,7 +2,8 @@ name: CI - macOS
|
|||||||
|
|
||||||
on: [pull_request, push]
|
on: [pull_request, push]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
actions: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
@@ -12,28 +13,27 @@ jobs:
|
|||||||
ci:
|
ci:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
permissions:
|
|
||||||
actions: write
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
libt_version: ["2.0.11", "1.2.20"]
|
libt_version: ["2.0.9", "1.2.19"]
|
||||||
qbt_gui: ["GUI=ON", "GUI=OFF"]
|
qbt_gui: ["GUI=ON", "GUI=OFF"]
|
||||||
qt_version: ["6.7.0"]
|
qt_version: ["5.15.2", "6.5.0"]
|
||||||
|
exclude:
|
||||||
|
- libt_version: "1.2.19"
|
||||||
|
qt_version: "6.5.0"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
boost_path: "${{ github.workspace }}/../boost"
|
boost_path: "${{ github.workspace }}/../boost"
|
||||||
libtorrent_path: "${{ github.workspace }}/../libtorrent"
|
openssl_root: /usr/local/opt/openssl@1.1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: Wandalen/wretry.action@v3
|
uses: Wandalen/wretry.action@v1
|
||||||
env:
|
env:
|
||||||
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
|
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
|
||||||
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
||||||
@@ -44,35 +44,25 @@ jobs:
|
|||||||
brew update > /dev/null
|
brew update > /dev/null
|
||||||
brew install \
|
brew install \
|
||||||
cmake ninja \
|
cmake ninja \
|
||||||
openssl@3 zlib
|
openssl@1.1 zlib
|
||||||
|
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: Chocobo1/setup-ccache-action@v1
|
uses: Chocobo1/setup-ccache-action@v1
|
||||||
with:
|
with:
|
||||||
store_cache: ${{ github.ref == 'refs/heads/master' }}
|
store_cache: ${{ startsWith(github.ref, 'refs/heads/') }}
|
||||||
update_packager_index: false
|
update_packager_index: false
|
||||||
ccache_options: |
|
|
||||||
max_size=2G
|
|
||||||
|
|
||||||
- name: Install boost
|
- name: Install boost
|
||||||
env:
|
|
||||||
BOOST_MAJOR_VERSION: "1"
|
|
||||||
BOOST_MINOR_VERSION: "86"
|
|
||||||
BOOST_PATCH_VERSION: "0"
|
|
||||||
run: |
|
run: |
|
||||||
boost_url="https://archives.boost.io/release/${{ env.BOOST_MAJOR_VERSION }}.${{ env.BOOST_MINOR_VERSION }}.${{ env.BOOST_PATCH_VERSION }}/source/boost_${{ env.BOOST_MAJOR_VERSION }}_${{ env.BOOST_MINOR_VERSION }}_${{ env.BOOST_PATCH_VERSION }}.tar.gz"
|
curl \
|
||||||
boost_url2="https://sourceforge.net/projects/boost/files/boost/${{ env.BOOST_MAJOR_VERSION }}.${{ env.BOOST_MINOR_VERSION }}.${{ env.BOOST_PATCH_VERSION }}/boost_${{ env.BOOST_MAJOR_VERSION }}_${{ env.BOOST_MINOR_VERSION }}_${{ env.BOOST_PATCH_VERSION }}.tar.gz"
|
-L \
|
||||||
set +e
|
-o "${{ runner.temp }}/boost.tar.bz2" \
|
||||||
curl -L -o "${{ runner.temp }}/boost.tar.gz" "$boost_url"
|
"https://boostorg.jfrog.io/artifactory/main/release/1.82.0/source/boost_1_82_0.tar.bz2"
|
||||||
tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.."; _exitCode="$?"
|
tar -xf "${{ runner.temp }}/boost.tar.bz2" -C "${{ github.workspace }}/.."
|
||||||
if [ "$_exitCode" -ne "0" ]; then
|
|
||||||
curl -L -o "${{ runner.temp }}/boost.tar.gz" "$boost_url2"
|
|
||||||
tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.."; _exitCode="$?"
|
|
||||||
fi
|
|
||||||
mv "${{ github.workspace }}/.."/boost_* "${{ env.boost_path }}"
|
mv "${{ github.workspace }}/.."/boost_* "${{ env.boost_path }}"
|
||||||
|
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.qt_version }}
|
version: ${{ matrix.qt_version }}
|
||||||
archives: qtbase qtdeclarative qtsvg qttools
|
archives: qtbase qtdeclarative qtsvg qttools
|
||||||
@@ -85,24 +75,25 @@ jobs:
|
|||||||
--branch v${{ matrix.libt_version }} \
|
--branch v${{ matrix.libt_version }} \
|
||||||
--depth 1 \
|
--depth 1 \
|
||||||
--recurse-submodules \
|
--recurse-submodules \
|
||||||
https://github.com/arvidn/libtorrent.git \
|
https://github.com/arvidn/libtorrent.git
|
||||||
${{ env.libtorrent_path }}
|
cd libtorrent
|
||||||
cd ${{ env.libtorrent_path }}
|
|
||||||
cmake \
|
cmake \
|
||||||
-B build \
|
-B build \
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DBUILD_SHARED_LIBS=OFF \
|
-DBUILD_SHARED_LIBS=OFF \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_CXX_STANDARD=20 \
|
-DCMAKE_CXX_STANDARD=17 \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-DBOOST_ROOT="${{ env.boost_path }}" \
|
-DBOOST_ROOT="${{ env.boost_path }}" \
|
||||||
-Ddeprecated-functions=OFF
|
-Ddeprecated-functions=OFF \
|
||||||
|
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}"
|
||||||
cmake --build build
|
cmake --build build
|
||||||
sudo cmake --install build
|
sudo cmake --install build
|
||||||
|
|
||||||
- name: Build qBittorrent
|
- name: Build qBittorrent (Qt5)
|
||||||
|
if: startsWith(matrix.qt_version, 5)
|
||||||
run: |
|
run: |
|
||||||
CXXFLAGS="$CXXFLAGS -DQT_FORCE_ASSERTS -Werror -Wno-error=deprecated-declarations" \
|
CXXFLAGS="$CXXFLAGS -Werror -Wno-error=deprecated-declarations" \
|
||||||
LDFLAGS="$LDFLAGS -gz" \
|
LDFLAGS="$LDFLAGS -gz" \
|
||||||
cmake \
|
cmake \
|
||||||
-B build \
|
-B build \
|
||||||
@@ -110,6 +101,27 @@ jobs:
|
|||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-DBOOST_ROOT="${{ env.boost_path }}" \
|
-DBOOST_ROOT="${{ env.boost_path }}" \
|
||||||
|
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \
|
||||||
|
-DTESTING=ON \
|
||||||
|
-DVERBOSE_CONFIGURE=ON \
|
||||||
|
-D${{ matrix.qbt_gui }}
|
||||||
|
cmake --build build --target qbt_update_translations
|
||||||
|
cmake --build build
|
||||||
|
cmake --build build --target check
|
||||||
|
|
||||||
|
- name: Build qBittorrent (Qt6)
|
||||||
|
if: startsWith(matrix.qt_version, 6)
|
||||||
|
run: |
|
||||||
|
CXXFLAGS="$CXXFLAGS -Wno-gnu-zero-variadic-macro-arguments -Werror -Wno-error=deprecated-declarations" \
|
||||||
|
LDFLAGS="$LDFLAGS -gz" \
|
||||||
|
cmake \
|
||||||
|
-B build \
|
||||||
|
-G "Ninja" \
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
|
-DBOOST_ROOT="${{ env.boost_path }}" \
|
||||||
|
-DOPENSSL_ROOT_DIR="${{ env.openssl_root }}" \
|
||||||
|
-DQT6=ON \
|
||||||
-DTESTING=ON \
|
-DTESTING=ON \
|
||||||
-DVERBOSE_CONFIGURE=ON \
|
-DVERBOSE_CONFIGURE=ON \
|
||||||
-D${{ matrix.qbt_gui }}
|
-D${{ matrix.qbt_gui }}
|
||||||
@@ -124,18 +136,8 @@ jobs:
|
|||||||
if [ "${{ matrix.qbt_gui }}" = "GUI=OFF" ]; then
|
if [ "${{ matrix.qbt_gui }}" = "GUI=OFF" ]; then
|
||||||
appName="qbittorrent-nox"
|
appName="qbittorrent-nox"
|
||||||
fi
|
fi
|
||||||
# package
|
|
||||||
pushd build
|
pushd build
|
||||||
PACKAGE_RETRY=0
|
macdeployqt "$appName.app" -dmg -no-strip
|
||||||
while [ "$PACKAGE_RETRY" -lt "3" ]; do
|
|
||||||
macdeployqt "$appName.app" -dmg -no-strip
|
|
||||||
if [ -f "$appName.dmg" ]; then
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
sleep 5
|
|
||||||
PACKAGE_RETRY=$((PACKAGE_RETRY + 1))
|
|
||||||
echo "Retry $PACKAGE_RETRY..."
|
|
||||||
done
|
|
||||||
popd
|
popd
|
||||||
# prepare upload folder
|
# prepare upload folder
|
||||||
mkdir upload
|
mkdir upload
|
||||||
@@ -143,10 +145,10 @@ jobs:
|
|||||||
mkdir upload/cmake
|
mkdir upload/cmake
|
||||||
cp build/compile_commands.json upload/cmake
|
cp build/compile_commands.json upload/cmake
|
||||||
mkdir upload/cmake/libtorrent
|
mkdir upload/cmake/libtorrent
|
||||||
cp ${{ env.libtorrent_path }}/build/compile_commands.json upload/cmake/libtorrent
|
cp libtorrent/build/compile_commands.json upload/cmake/libtorrent
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: qBittorrent-CI_macOS_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }}
|
name: qBittorrent-CI_macOS_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }}
|
||||||
path: upload
|
path: upload
|
||||||
|
91
.github/workflows/ci_python.yaml
vendored
91
.github/workflows/ci_python.yaml
vendored
@@ -1,91 +0,0 @@
|
|||||||
name: CI - Python
|
|
||||||
|
|
||||||
on: [pull_request, push]
|
|
||||||
|
|
||||||
permissions: {}
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
||||||
cancel-in-progress: ${{ github.head_ref != '' }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
ci:
|
|
||||||
name: Check
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Setup python (auxiliary scripts)
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3' # use default version
|
|
||||||
|
|
||||||
- name: Install tools (auxiliary scripts)
|
|
||||||
run: pip install bandit pycodestyle pyflakes
|
|
||||||
|
|
||||||
- name: Gather files (auxiliary scripts)
|
|
||||||
run: |
|
|
||||||
export "PY_FILES=$(find . -type f -name '*.py' ! -path '*searchengine*' -printf '%p ')"
|
|
||||||
echo $PY_FILES
|
|
||||||
echo "PY_FILES=$PY_FILES" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Lint code (auxiliary scripts)
|
|
||||||
run: |
|
|
||||||
pyflakes $PY_FILES
|
|
||||||
bandit --skip B101,B314,B405 $PY_FILES
|
|
||||||
|
|
||||||
- name: Format code (auxiliary scripts)
|
|
||||||
run: |
|
|
||||||
pycodestyle \
|
|
||||||
--max-line-length=1000 \
|
|
||||||
--statistics \
|
|
||||||
$PY_FILES
|
|
||||||
|
|
||||||
- name: Build code (auxiliary scripts)
|
|
||||||
run: |
|
|
||||||
python -m compileall $PY_FILES
|
|
||||||
|
|
||||||
- name: Setup python (search engine)
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: '3.9'
|
|
||||||
|
|
||||||
- name: Install tools (search engine)
|
|
||||||
run: pip install bandit mypy pycodestyle pyflakes pyright
|
|
||||||
|
|
||||||
- name: Gather files (search engine)
|
|
||||||
run: |
|
|
||||||
export "PY_FILES=$(find . -type f -name '*.py' -path '*searchengine*' ! -name 'socks.py' -printf '%p ')"
|
|
||||||
echo $PY_FILES
|
|
||||||
echo "PY_FILES=$PY_FILES" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Check typings (search engine)
|
|
||||||
run: |
|
|
||||||
MYPYPATH="src/searchengine/nova3" \
|
|
||||||
mypy \
|
|
||||||
--follow-imports skip \
|
|
||||||
--strict \
|
|
||||||
$PY_FILES
|
|
||||||
pyright \
|
|
||||||
$PY_FILES
|
|
||||||
|
|
||||||
- name: Lint code (search engine)
|
|
||||||
run: |
|
|
||||||
pyflakes $PY_FILES
|
|
||||||
bandit --skip B110,B310,B314,B405 $PY_FILES
|
|
||||||
|
|
||||||
- name: Format code (search engine)
|
|
||||||
run: |
|
|
||||||
pycodestyle \
|
|
||||||
--ignore=E265,E402 \
|
|
||||||
--max-line-length=1000 \
|
|
||||||
--statistics \
|
|
||||||
$PY_FILES
|
|
||||||
|
|
||||||
- name: Build code (search engine)
|
|
||||||
run: |
|
|
||||||
python -m compileall $PY_FILES
|
|
131
.github/workflows/ci_ubuntu.yaml
vendored
131
.github/workflows/ci_ubuntu.yaml
vendored
@@ -2,7 +2,9 @@ name: CI - Ubuntu
|
|||||||
|
|
||||||
on: [pull_request, push]
|
on: [pull_request, push]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
actions: write
|
||||||
|
security-events: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
@@ -12,65 +14,41 @@ jobs:
|
|||||||
ci:
|
ci:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
actions: write
|
|
||||||
security-events: write
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
libt_version: ["2.0.11", "1.2.20"]
|
libt_version: ["2.0.9", "1.2.19"]
|
||||||
qbt_gui: ["GUI=ON", "GUI=OFF"]
|
qbt_gui: ["GUI=ON", "GUI=OFF"]
|
||||||
qt_version: ["6.5.2"]
|
qt_version: ["5.15.2", "6.2.0"]
|
||||||
|
exclude:
|
||||||
env:
|
- libt_version: "1.2.19"
|
||||||
boost_path: "${{ github.workspace }}/../boost"
|
qt_version: "6.2.0"
|
||||||
harden_flags: "-D_FORTIFY_SOURCE=3 -D_GLIBCXX_ASSERTIONS"
|
|
||||||
libtorrent_path: "${{ github.workspace }}/../libtorrent"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install \
|
sudo apt install \
|
||||||
build-essential cmake ninja-build \
|
build-essential cmake ninja-build pkg-config \
|
||||||
libssl-dev libxkbcommon-x11-dev libxcb-cursor-dev zlib1g-dev
|
libboost-dev libssl-dev libxkbcommon-x11-dev zlib1g-dev
|
||||||
|
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: Chocobo1/setup-ccache-action@v1
|
uses: Chocobo1/setup-ccache-action@v1
|
||||||
with:
|
with:
|
||||||
store_cache: ${{ github.ref == 'refs/heads/master' }}
|
store_cache: ${{ startsWith(github.ref, 'refs/heads/') }}
|
||||||
update_packager_index: false
|
update_packager_index: false
|
||||||
ccache_options: |
|
ccache_options: |
|
||||||
max_size=2G
|
max_size=2G
|
||||||
|
|
||||||
- name: Install boost
|
|
||||||
env:
|
|
||||||
BOOST_MAJOR_VERSION: "1"
|
|
||||||
BOOST_MINOR_VERSION: "77"
|
|
||||||
BOOST_PATCH_VERSION: "0"
|
|
||||||
run: |
|
|
||||||
boost_url="https://archives.boost.io/release/${{ env.BOOST_MAJOR_VERSION }}.${{ env.BOOST_MINOR_VERSION }}.${{ env.BOOST_PATCH_VERSION }}/source/boost_${{ env.BOOST_MAJOR_VERSION }}_${{ env.BOOST_MINOR_VERSION }}_${{ env.BOOST_PATCH_VERSION }}.tar.gz"
|
|
||||||
boost_url2="https://sourceforge.net/projects/boost/files/boost/${{ env.BOOST_MAJOR_VERSION }}.${{ env.BOOST_MINOR_VERSION }}.${{ env.BOOST_PATCH_VERSION }}/boost_${{ env.BOOST_MAJOR_VERSION }}_${{ env.BOOST_MINOR_VERSION }}_${{ env.BOOST_PATCH_VERSION }}.tar.gz"
|
|
||||||
set +e
|
|
||||||
curl -L -o "${{ runner.temp }}/boost.tar.gz" "$boost_url"
|
|
||||||
tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.."; _exitCode="$?"
|
|
||||||
if [ "$_exitCode" -ne "0" ]; then
|
|
||||||
curl -L -o "${{ runner.temp }}/boost.tar.gz" "$boost_url2"
|
|
||||||
tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.."; _exitCode="$?"
|
|
||||||
fi
|
|
||||||
mv "${{ github.workspace }}/.."/boost_* "${{ env.boost_path }}"
|
|
||||||
|
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.qt_version }}
|
version: ${{ matrix.qt_version }}
|
||||||
archives: icu qtbase qtdeclarative qtsvg qttools
|
archives: icu qtbase qtsvg qttools
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Install libtorrent
|
- name: Install libtorrent
|
||||||
@@ -79,40 +57,36 @@ jobs:
|
|||||||
--branch v${{ matrix.libt_version }} \
|
--branch v${{ matrix.libt_version }} \
|
||||||
--depth 1 \
|
--depth 1 \
|
||||||
--recurse-submodules \
|
--recurse-submodules \
|
||||||
https://github.com/arvidn/libtorrent.git \
|
https://github.com/arvidn/libtorrent.git
|
||||||
${{ env.libtorrent_path }}
|
cd libtorrent
|
||||||
cd ${{ env.libtorrent_path }}
|
|
||||||
CXXFLAGS="$CXXFLAGS ${{ env.harden_flags }}" \
|
|
||||||
cmake \
|
cmake \
|
||||||
-B build \
|
-B build \
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DBUILD_SHARED_LIBS=OFF \
|
-DBUILD_SHARED_LIBS=OFF \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_CXX_STANDARD=20 \
|
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-DBOOST_ROOT="${{ env.boost_path }}" \
|
|
||||||
-Ddeprecated-functions=OFF
|
-Ddeprecated-functions=OFF
|
||||||
cmake --build build
|
cmake --build build
|
||||||
sudo cmake --install build
|
sudo cmake --install build
|
||||||
|
|
||||||
# to avoid scanning 3rdparty codebases, initialize it just before building qbt
|
# to avoid scanning 3rdparty codebases, initialize it just before building qbt
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3
|
uses: github/codeql-action/init@v2
|
||||||
if: startsWith(matrix.libt_version, 2) && (matrix.qbt_gui == 'GUI=ON')
|
if: startsWith(matrix.libt_version, 2) && (matrix.qbt_gui == 'GUI=ON') && startsWith(matrix.qt_version, 6)
|
||||||
with:
|
with:
|
||||||
config-file: ./.github/workflows/helper/codeql/cpp.yaml
|
config-file: ./.github/workflows/helper/codeql/cpp.yaml
|
||||||
languages: cpp
|
languages: cpp
|
||||||
|
|
||||||
- name: Build qBittorrent
|
- name: Build qBittorrent (Qt5)
|
||||||
|
if: startsWith(matrix.qt_version, 5)
|
||||||
run: |
|
run: |
|
||||||
CXXFLAGS="$CXXFLAGS ${{ env.harden_flags }} -DQT_FORCE_ASSERTS -Werror" \
|
CXXFLAGS="$CXXFLAGS -Werror -Wno-error=deprecated-declarations" \
|
||||||
LDFLAGS="$LDFLAGS -gz" \
|
LDFLAGS="$LDFLAGS -gz" \
|
||||||
cmake \
|
cmake \
|
||||||
-B build \
|
-B build \
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
-DBOOST_ROOT="${{ env.boost_path }}" \
|
|
||||||
-DCMAKE_INSTALL_PREFIX="/usr" \
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
||||||
-DTESTING=ON \
|
-DTESTING=ON \
|
||||||
-DVERBOSE_CONFIGURE=ON \
|
-DVERBOSE_CONFIGURE=ON \
|
||||||
@@ -122,9 +96,29 @@ jobs:
|
|||||||
cmake --build build --target check
|
cmake --build build --target check
|
||||||
DESTDIR="qbittorrent" cmake --install build
|
DESTDIR="qbittorrent" cmake --install build
|
||||||
|
|
||||||
|
- name: Build qBittorrent (Qt6)
|
||||||
|
if: startsWith(matrix.qt_version, 6)
|
||||||
|
run: |
|
||||||
|
CXXFLAGS="$CXXFLAGS -Werror" \
|
||||||
|
LDFLAGS="$LDFLAGS -gz" \
|
||||||
|
cmake \
|
||||||
|
-B build \
|
||||||
|
-G "Ninja" \
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
||||||
|
-DCMAKE_INSTALL_PREFIX="/usr" \
|
||||||
|
-DQT6=ON \
|
||||||
|
-DTESTING=ON \
|
||||||
|
-DVERBOSE_CONFIGURE=ON \
|
||||||
|
-D${{ matrix.qbt_gui }}
|
||||||
|
cmake --build build --target qbt_update_translations
|
||||||
|
cmake --build build
|
||||||
|
cmake --build build --target check
|
||||||
|
DESTDIR="qbittorrent" cmake --install build
|
||||||
|
|
||||||
- name: Run CodeQL analysis
|
- name: Run CodeQL analysis
|
||||||
uses: github/codeql-action/analyze@v3
|
uses: github/codeql-action/analyze@v2
|
||||||
if: startsWith(matrix.libt_version, 2) && (matrix.qbt_gui == 'GUI=ON')
|
if: startsWith(matrix.libt_version, 2) && (matrix.qbt_gui == 'GUI=ON') && startsWith(matrix.qt_version, 6)
|
||||||
with:
|
with:
|
||||||
category: ${{ github.base_ref || github.ref_name }}
|
category: ${{ github.base_ref || github.ref_name }}
|
||||||
|
|
||||||
@@ -134,40 +128,37 @@ jobs:
|
|||||||
mkdir upload/cmake
|
mkdir upload/cmake
|
||||||
cp build/compile_commands.json upload/cmake
|
cp build/compile_commands.json upload/cmake
|
||||||
mkdir upload/cmake/libtorrent
|
mkdir upload/cmake/libtorrent
|
||||||
cp ${{ env.libtorrent_path }}/build/compile_commands.json upload/cmake/libtorrent
|
cp libtorrent/build/compile_commands.json upload/cmake/libtorrent
|
||||||
|
|
||||||
- name: Install AppImage
|
- name: 'AppImage: Prepare env'
|
||||||
run: |
|
run: |
|
||||||
curl \
|
sudo apt install libfuse2
|
||||||
-L \
|
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
||||||
-Z \
|
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
|
||||||
-O https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage \
|
wget https://github.com/linuxdeploy/linuxdeploy-plugin-appimage/releases/download/continuous/linuxdeploy-plugin-appimage-x86_64.AppImage
|
||||||
-O https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage \
|
chmod +x linuxdeploy-x86_64.AppImage
|
||||||
-O https://github.com/linuxdeploy/linuxdeploy-plugin-appimage/releases/download/continuous/linuxdeploy-plugin-appimage-x86_64.AppImage
|
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
|
||||||
chmod +x \
|
chmod +x linuxdeploy-plugin-appimage-x86_64.AppImage
|
||||||
linuxdeploy-x86_64.AppImage \
|
|
||||||
linuxdeploy-plugin-qt-x86_64.AppImage \
|
|
||||||
linuxdeploy-plugin-appimage-x86_64.AppImage
|
|
||||||
|
|
||||||
- name: Prepare files for AppImage
|
- name: 'AppImage: Prepare nox'
|
||||||
if: matrix.qbt_gui == 'GUI=OFF'
|
if: matrix.qbt_gui == 'GUI=OFF'
|
||||||
run: |
|
run: |
|
||||||
mkdir -p qbittorrent/usr/share/applications
|
mkdir -p qbittorrent/usr/share/icons/hicolor/scalable/apps/
|
||||||
cp .github/workflows/helper/appimage/org.qbittorrent.qBittorrent.desktop qbittorrent/usr/share/applications/org.qbittorrent.qBittorrent.desktop
|
mkdir -p qbittorrent/usr/share/applications/
|
||||||
mkdir -p qbittorrent/usr/share/icons/hicolor/scalable/apps
|
|
||||||
cp dist/unix/menuicons/scalable/apps/qbittorrent.svg qbittorrent/usr/share/icons/hicolor/scalable/apps/qbittorrent.svg
|
cp dist/unix/menuicons/scalable/apps/qbittorrent.svg qbittorrent/usr/share/icons/hicolor/scalable/apps/qbittorrent.svg
|
||||||
|
cp .github/workflows/helper/appimage/org.qbittorrent.qBittorrent.desktop qbittorrent/usr/share/applications/org.qbittorrent.qBittorrent.desktop
|
||||||
|
|
||||||
- name: Package AppImage
|
- name: 'AppImage: Package'
|
||||||
run: |
|
run: |
|
||||||
./linuxdeploy-x86_64.AppImage --appdir qbittorrent --plugin qt
|
./linuxdeploy-x86_64.AppImage --appdir=qbittorrent --plugin qt
|
||||||
rm qbittorrent/apprun-hooks/*
|
rm qbittorrent/apprun-hooks/*
|
||||||
cp .github/workflows/helper/appimage/export_vars.sh qbittorrent/apprun-hooks/export_vars.sh
|
cp .github/workflows/helper/appimage/export_vars.sh qbittorrent/apprun-hooks/export_vars.sh
|
||||||
NO_APPSTREAM=1 \
|
NO_APPSTREAM=1 \
|
||||||
OUTPUT=upload/qbittorrent-CI_Ubuntu_x86_64.AppImage \
|
OUTPUT=upload/qbittorrent-CI_Ubuntu_x86_64.AppImage \
|
||||||
./linuxdeploy-x86_64.AppImage --appdir qbittorrent --output appimage
|
./linuxdeploy-x86_64.AppImage --appdir=qbittorrent --output appimage
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: qBittorrent-CI_Ubuntu-x64_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }}
|
name: qBittorrent-CI_Ubuntu-x64_${{ matrix.qbt_gui }}_libtorrent-${{ matrix.libt_version }}_Qt-${{ matrix.qt_version }}
|
||||||
path: upload
|
path: upload
|
||||||
|
22
.github/workflows/ci_webui.yaml
vendored
22
.github/workflows/ci_webui.yaml
vendored
@@ -2,7 +2,8 @@ name: CI - WebUI
|
|||||||
|
|
||||||
on: [pull_request, push]
|
on: [pull_request, push]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
security-events: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
@@ -12,8 +13,6 @@ jobs:
|
|||||||
ci:
|
ci:
|
||||||
name: Check
|
name: Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
security-events: write
|
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
@@ -21,20 +20,15 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Setup nodejs
|
- name: Setup nodejs
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 'lts/*'
|
node-version: 'lts/*'
|
||||||
|
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
run: |
|
run: npm install
|
||||||
npm install
|
|
||||||
npm ls
|
|
||||||
npm ls --all
|
|
||||||
|
|
||||||
- name: Lint code
|
- name: Lint code
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
@@ -45,10 +39,10 @@ jobs:
|
|||||||
git diff --exit-code
|
git diff --exit-code
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3
|
uses: github/codeql-action/init@v2
|
||||||
with:
|
with:
|
||||||
config-file: .github/workflows/helper/codeql/js.yaml
|
config-file: ./.github/workflows/helper/codeql/js.yaml
|
||||||
languages: javascript
|
languages: javascript
|
||||||
|
|
||||||
- name: Run CodeQL analysis
|
- name: Run CodeQL analysis
|
||||||
uses: github/codeql-action/analyze@v3
|
uses: github/codeql-action/analyze@v2
|
||||||
|
155
.github/workflows/ci_windows.yaml
vendored
155
.github/workflows/ci_windows.yaml
vendored
@@ -2,7 +2,8 @@ name: CI - Windows
|
|||||||
|
|
||||||
on: [pull_request, push]
|
on: [pull_request, push]
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
actions: write
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
||||||
@@ -12,44 +13,35 @@ jobs:
|
|||||||
ci:
|
ci:
|
||||||
name: Build
|
name: Build
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
permissions:
|
|
||||||
actions: write
|
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
libt_version: ["2.0.11", "1.2.20"]
|
libt_version: ["2.0.9", "1.2.19"]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
boost_path: "${{ github.workspace }}/../boost"
|
boost_path: "${{ github.workspace }}/../boost"
|
||||||
libtorrent_path: "${{ github.workspace }}/../libtorrent"
|
libtorrent_path: "${{ github.workspace }}/libtorrent"
|
||||||
vcpkg_path: "c:/vcpkg"
|
vpkg_triplet_path: "${{ github.workspace }}/../triplets_overlay"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Setup devcmd
|
- name: Setup devcmd
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
|
||||||
- name: Install build tools
|
- name: Install build tools
|
||||||
run: |
|
run: |
|
||||||
if ((Get-Command "ninja.exe" -ErrorAction SilentlyContinue) -eq $null)
|
choco install ninja
|
||||||
{
|
|
||||||
choco install ninja
|
|
||||||
}
|
|
||||||
where.exe ninja
|
|
||||||
ninja --version
|
|
||||||
|
|
||||||
# https://learn.microsoft.com/en-us/vcpkg/users/binarycaching#gha
|
# use the preinstalled vcpkg from image
|
||||||
- name: Set variables for vcpkg
|
# https://github.com/actions/virtual-environments/blob/main/images/win/Windows2019-Readme.md#package-management
|
||||||
uses: actions/github-script@v7
|
- name: Setup vcpkg
|
||||||
|
uses: lukka/run-vcpkg@v10
|
||||||
with:
|
with:
|
||||||
script: |
|
vcpkgDirectory: C:/vcpkg
|
||||||
core.exportVariable('ACTIONS_CACHE_URL', (process.env.ACTIONS_CACHE_URL || ''));
|
doNotUpdateVcpkg: true # the preinstalled vcpkg is updated regularly
|
||||||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', (process.env.ACTIONS_RUNTIME_TOKEN || ''));
|
|
||||||
|
|
||||||
- name: Install dependencies with vcpkg
|
- name: Install dependencies with vcpkg
|
||||||
run: |
|
run: |
|
||||||
@@ -57,49 +49,41 @@ jobs:
|
|||||||
New-Item `
|
New-Item `
|
||||||
-Force `
|
-Force `
|
||||||
-ItemType File `
|
-ItemType File `
|
||||||
-Path "${{ env.vcpkg_path }}/triplets_overlay/x64-windows-static-md-release.cmake"
|
-Path "${{ env.vpkg_triplet_path }}/x64-windows-static-md-release.cmake"
|
||||||
# OpenSSL isn't compatible with `/guard:cf` flag so we omit it for now, see: https://github.com/openssl/openssl/issues/22554
|
|
||||||
Add-Content `
|
Add-Content `
|
||||||
-Path "${{ env.vcpkg_path }}/triplets_overlay/x64-windows-static-md-release.cmake" `
|
-Path "${{ env.vpkg_triplet_path }}/x64-windows-static-md-release.cmake" `
|
||||||
-Value @("set(VCPKG_TARGET_ARCHITECTURE x64)",
|
-Value @("set(VCPKG_TARGET_ARCHITECTURE x64)",
|
||||||
"set(VCPKG_LIBRARY_LINKAGE static)",
|
"set(VCPKG_LIBRARY_LINKAGE static)",
|
||||||
"set(VCPKG_CRT_LINKAGE dynamic)",
|
"set(VCPKG_CRT_LINKAGE dynamic)",
|
||||||
"set(VCPKG_BUILD_TYPE release)")
|
"set(VCPKG_BUILD_TYPE release)",
|
||||||
|
"set(VCPKG_C_FLAGS /guard:cf)",
|
||||||
|
"set(VCPKG_CXX_FLAGS /guard:cf)",
|
||||||
|
"set(VCPKG_LINKER_FLAGS /guard:cf)")
|
||||||
# clear buildtrees after each package installation to reduce disk space requirements
|
# clear buildtrees after each package installation to reduce disk space requirements
|
||||||
$packages = `
|
$packages = `
|
||||||
"openssl:x64-windows-static-md-release",
|
"openssl:x64-windows-static-md-release",
|
||||||
"zlib:x64-windows-static-md-release"
|
"zlib:x64-windows-static-md-release"
|
||||||
${{ env.vcpkg_path }}/vcpkg.exe upgrade `
|
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg.exe upgrade `
|
||||||
--no-dry-run `
|
--no-dry-run `
|
||||||
--overlay-triplets="${{ env.vcpkg_path }}/triplets_overlay"
|
--overlay-triplets="${{ env.vpkg_triplet_path }}"
|
||||||
${{ env.vcpkg_path }}/vcpkg.exe install `
|
${{ env.RUNVCPKG_VCPKG_ROOT }}/vcpkg.exe install `
|
||||||
--binarysource="clear;x-gha,readwrite" `
|
|
||||||
--clean-after-build `
|
--clean-after-build `
|
||||||
--overlay-triplets="${{ env.vcpkg_path }}/triplets_overlay" `
|
--overlay-triplets="${{ env.vpkg_triplet_path }}" `
|
||||||
$packages
|
$packages
|
||||||
|
|
||||||
- name: Install boost
|
- name: Install boost
|
||||||
env:
|
|
||||||
BOOST_MAJOR_VERSION: "1"
|
|
||||||
BOOST_MINOR_VERSION: "86"
|
|
||||||
BOOST_PATCH_VERSION: "0"
|
|
||||||
run: |
|
run: |
|
||||||
$boost_url="https://archives.boost.io/release/${{ env.BOOST_MAJOR_VERSION }}.${{ env.BOOST_MINOR_VERSION }}.${{ env.BOOST_PATCH_VERSION }}/source/boost_${{ env.BOOST_MAJOR_VERSION }}_${{ env.BOOST_MINOR_VERSION }}_${{ env.BOOST_PATCH_VERSION }}.tar.gz"
|
aria2c `
|
||||||
$boost_url2="https://sourceforge.net/projects/boost/files/boost/${{ env.BOOST_MAJOR_VERSION }}.${{ env.BOOST_MINOR_VERSION }}.${{ env.BOOST_PATCH_VERSION }}/boost_${{ env.BOOST_MAJOR_VERSION }}_${{ env.BOOST_MINOR_VERSION }}_${{ env.BOOST_PATCH_VERSION }}.tar.gz"
|
"https://boostorg.jfrog.io/artifactory/main/release/1.82.0/source/boost_1_82_0.7z" `
|
||||||
curl -L -o "${{ runner.temp }}/boost.tar.gz" "$boost_url"
|
-d "${{ runner.temp }}" `
|
||||||
tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.."
|
-o "boost.7z"
|
||||||
if ($LastExitCode -ne 0)
|
7z x "${{ runner.temp }}/boost.7z" -o"${{ github.workspace }}/.."
|
||||||
{
|
|
||||||
curl -L -o "${{ runner.temp }}/boost.tar.gz" "$boost_url2"
|
|
||||||
tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.."
|
|
||||||
}
|
|
||||||
move "${{ github.workspace }}/../boost_*" "${{ env.boost_path }}"
|
move "${{ github.workspace }}/../boost_*" "${{ env.boost_path }}"
|
||||||
|
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: "6.8.0"
|
version: "6.5.0"
|
||||||
arch: win64_msvc2022_64
|
|
||||||
archives: qtbase qtsvg qttools
|
archives: qtbase qtsvg qttools
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
@@ -109,19 +93,17 @@ jobs:
|
|||||||
--branch v${{ matrix.libt_version }} `
|
--branch v${{ matrix.libt_version }} `
|
||||||
--depth 1 `
|
--depth 1 `
|
||||||
--recurse-submodules `
|
--recurse-submodules `
|
||||||
https://github.com/arvidn/libtorrent.git `
|
https://github.com/arvidn/libtorrent.git
|
||||||
${{ env.libtorrent_path }}
|
cd libtorrent
|
||||||
cd ${{ env.libtorrent_path }}
|
|
||||||
$env:CXXFLAGS+=" /guard:cf"
|
$env:CXXFLAGS+=" /guard:cf"
|
||||||
$env:LDFLAGS+=" /guard:cf"
|
$env:LDFLAGS+=" /guard:cf"
|
||||||
cmake `
|
cmake `
|
||||||
-B build `
|
-B build `
|
||||||
-G "Ninja" `
|
-G "Ninja" `
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
|
||||||
-DCMAKE_CXX_STANDARD=20 `
|
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON `
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON `
|
||||||
-DCMAKE_INSTALL_PREFIX="${{ env.libtorrent_path }}/install" `
|
-DCMAKE_INSTALL_PREFIX="${{ env.libtorrent_path }}" `
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${{ env.vcpkg_path }}/scripts/buildsystems/vcpkg.cmake" `
|
-DCMAKE_TOOLCHAIN_FILE="${{ env.RUNVCPKG_VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake" `
|
||||||
-DBOOST_ROOT="${{ env.boost_path }}" `
|
-DBOOST_ROOT="${{ env.boost_path }}" `
|
||||||
-DBUILD_SHARED_LIBS=OFF `
|
-DBUILD_SHARED_LIBS=OFF `
|
||||||
-Ddeprecated-functions=OFF `
|
-Ddeprecated-functions=OFF `
|
||||||
@@ -132,16 +114,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Build qBittorrent
|
- name: Build qBittorrent
|
||||||
run: |
|
run: |
|
||||||
$env:CXXFLAGS+="/DQT_FORCE_ASSERTS /WX"
|
$env:CXXFLAGS+=" /WX"
|
||||||
cmake `
|
cmake `
|
||||||
-B build `
|
-B build `
|
||||||
-G "Ninja" `
|
-G "Ninja" `
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
|
||||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON `
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON `
|
||||||
-DCMAKE_TOOLCHAIN_FILE="${{ env.vcpkg_path }}/scripts/buildsystems/vcpkg.cmake" `
|
-DCMAKE_TOOLCHAIN_FILE="${{ env.RUNVCPKG_VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake" `
|
||||||
-DBOOST_ROOT="${{ env.boost_path }}" `
|
-DBOOST_ROOT="${{ env.boost_path }}" `
|
||||||
-DLibtorrentRasterbar_DIR="${{ env.libtorrent_path }}/install/lib/cmake/LibtorrentRasterbar" `
|
-DLibtorrentRasterbar_DIR="${{ env.libtorrent_path }}/lib/cmake/LibtorrentRasterbar" `
|
||||||
-DMSVC_RUNTIME_DYNAMIC=ON `
|
-DMSVC_RUNTIME_DYNAMIC=ON `
|
||||||
|
-DQT6=ON `
|
||||||
-DTESTING=ON `
|
-DTESTING=ON `
|
||||||
-DVCPKG_TARGET_TRIPLET=x64-windows-static-md-release `
|
-DVCPKG_TARGET_TRIPLET=x64-windows-static-md-release `
|
||||||
-DVERBOSE_CONFIGURE=ON `
|
-DVERBOSE_CONFIGURE=ON `
|
||||||
@@ -153,51 +136,39 @@ jobs:
|
|||||||
- name: Prepare build artifacts
|
- name: Prepare build artifacts
|
||||||
run: |
|
run: |
|
||||||
mkdir upload
|
mkdir upload
|
||||||
mkdir upload/qBittorrent
|
copy build/qbittorrent.exe upload
|
||||||
copy build/qbittorrent.exe upload/qBittorrent
|
copy build/qbittorrent.pdb upload
|
||||||
copy build/qbittorrent.pdb upload/qBittorrent
|
copy dist/windows/qt.conf upload
|
||||||
copy dist/windows/qt.conf upload/qBittorrent
|
|
||||||
# runtimes
|
# runtimes
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/bin/Qt6Core.dll" upload/qBittorrent
|
copy "${{ env.Qt6_DIR }}/bin/Qt6Core.dll" upload
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/bin/Qt6Gui.dll" upload/qBittorrent
|
copy "${{ env.Qt6_DIR }}/bin/Qt6Gui.dll" upload
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/bin/Qt6Network.dll" upload/qBittorrent
|
copy "${{ env.Qt6_DIR }}/bin/Qt6Network.dll" upload
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/bin/Qt6Sql.dll" upload/qBittorrent
|
copy "${{ env.Qt6_DIR }}/bin/Qt6Sql.dll" upload
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/bin/Qt6Svg.dll" upload/qBittorrent
|
copy "${{ env.Qt6_DIR }}/bin/Qt6Svg.dll" upload
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/bin/Qt6Widgets.dll" upload/qBittorrent
|
copy "${{ env.Qt6_DIR }}/bin/Qt6Widgets.dll" upload
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/bin/Qt6Xml.dll" upload/qBittorrent
|
copy "${{ env.Qt6_DIR }}/bin/Qt6Xml.dll" upload
|
||||||
mkdir upload/qBittorrent/plugins/iconengines
|
mkdir upload/plugins/iconengines
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/plugins/iconengines/qsvgicon.dll" upload/qBittorrent/plugins/iconengines
|
copy "${{ env.Qt6_DIR }}/plugins/iconengines/qsvgicon.dll" upload/plugins/iconengines
|
||||||
mkdir upload/qBittorrent/plugins/imageformats
|
mkdir upload/plugins/imageformats
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/plugins/imageformats/qico.dll" upload/qBittorrent/plugins/imageformats
|
copy "${{ env.Qt6_DIR }}/plugins/imageformats/qico.dll" upload/plugins/imageformats
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/plugins/imageformats/qsvg.dll" upload/qBittorrent/plugins/imageformats
|
copy "${{ env.Qt6_DIR }}/plugins/imageformats/qsvg.dll" upload/plugins/imageformats
|
||||||
mkdir upload/qBittorrent/plugins/platforms
|
mkdir upload/plugins/platforms
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/plugins/platforms/qwindows.dll" upload/qBittorrent/plugins/platforms
|
copy "${{ env.Qt6_DIR }}/plugins/platforms/qwindows.dll" upload/plugins/platforms
|
||||||
mkdir upload/qBittorrent/plugins/sqldrivers
|
mkdir upload/plugins/sqldrivers
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/plugins/sqldrivers/qsqlite.dll" upload/qBittorrent/plugins/sqldrivers
|
copy "${{ env.Qt6_DIR }}/plugins/sqldrivers/qsqlite.dll" upload/plugins/sqldrivers
|
||||||
mkdir upload/qBittorrent/plugins/styles
|
mkdir upload/plugins/styles
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/plugins/styles/qmodernwindowsstyle.dll" upload/qBittorrent/plugins/styles
|
copy "${{ env.Qt6_DIR }}/plugins/styles/qwindowsvistastyle.dll" upload/plugins/styles
|
||||||
mkdir upload/qBittorrent/plugins/tls
|
mkdir upload/plugins/tls
|
||||||
copy "${{ env.Qt_ROOT_DIR }}/plugins/tls/qschannelbackend.dll" upload/qBittorrent/plugins/tls
|
copy "${{ env.Qt6_DIR }}/plugins/tls/qschannelbackend.dll" upload/plugins/tls
|
||||||
# cmake additionals
|
# cmake additionals
|
||||||
mkdir upload/cmake
|
mkdir upload/cmake
|
||||||
copy build/compile_commands.json upload/cmake
|
copy build/compile_commands.json upload/cmake
|
||||||
copy build/target_graph.dot upload/cmake
|
copy build/target_graph.dot upload/cmake
|
||||||
mkdir upload/cmake/libtorrent
|
mkdir upload/cmake/libtorrent
|
||||||
copy ${{ env.libtorrent_path }}/build/compile_commands.json upload/cmake/libtorrent
|
copy libtorrent/build/compile_commands.json upload/cmake/libtorrent
|
||||||
|
|
||||||
- name: Upload build artifacts
|
- name: Upload build artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: qBittorrent-CI_Windows-x64_libtorrent-${{ matrix.libt_version }}
|
name: qBittorrent-CI_Windows-x64_libtorrent-${{ matrix.libt_version }}
|
||||||
path: upload
|
path: upload
|
||||||
|
|
||||||
- name: Create installer
|
|
||||||
run: |
|
|
||||||
7z x -o"dist/windows/" "dist/windows/NSISPlugins.zip"
|
|
||||||
makensis /DQBT_DIST_DIR="../../upload/qBittorrent" /WX dist/windows/qbittorrent.nsi
|
|
||||||
|
|
||||||
- name: Upload installer
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: qBittorrent-CI_Windows-x64_libtorrent-${{ matrix.libt_version }}-setup
|
|
||||||
path: dist/windows/qbittorrent_*_setup.exe
|
|
||||||
|
81
.github/workflows/coverity-scan.yaml
vendored
81
.github/workflows/coverity-scan.yaml
vendored
@@ -12,85 +12,48 @@ jobs:
|
|||||||
name: Scan
|
name: Scan
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
libt_version: ["2.0.11"]
|
|
||||||
qbt_gui: ["GUI=ON"]
|
|
||||||
qt_version: ["6.5.2"]
|
|
||||||
|
|
||||||
env:
|
|
||||||
boost_path: "${{ github.workspace }}/../boost"
|
|
||||||
coverity_path: "${{ github.workspace }}/../coverity"
|
|
||||||
libtorrent_path: "${{ github.workspace }}/../libtorrent"
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
persist-credentials: false
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install \
|
sudo apt install \
|
||||||
build-essential cmake ninja-build \
|
build-essential cmake ninja-build pkg-config \
|
||||||
libssl-dev libxkbcommon-x11-dev libxcb-cursor-dev zlib1g-dev
|
libboost-dev libssl-dev zlib1g-dev
|
||||||
|
|
||||||
- name: Install boost
|
|
||||||
env:
|
|
||||||
BOOST_MAJOR_VERSION: "1"
|
|
||||||
BOOST_MINOR_VERSION: "86"
|
|
||||||
BOOST_PATCH_VERSION: "0"
|
|
||||||
run: |
|
|
||||||
boost_url="https://archives.boost.io/release/${{ env.BOOST_MAJOR_VERSION }}.${{ env.BOOST_MINOR_VERSION }}.${{ env.BOOST_PATCH_VERSION }}/source/boost_${{ env.BOOST_MAJOR_VERSION }}_${{ env.BOOST_MINOR_VERSION }}_${{ env.BOOST_PATCH_VERSION }}.tar.gz"
|
|
||||||
boost_url2="https://sourceforge.net/projects/boost/files/boost/${{ env.BOOST_MAJOR_VERSION }}.${{ env.BOOST_MINOR_VERSION }}.${{ env.BOOST_PATCH_VERSION }}/boost_${{ env.BOOST_MAJOR_VERSION }}_${{ env.BOOST_MINOR_VERSION }}_${{ env.BOOST_PATCH_VERSION }}.tar.gz"
|
|
||||||
set +e
|
|
||||||
curl -L -o "${{ runner.temp }}/boost.tar.gz" "$boost_url"
|
|
||||||
tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.."; _exitCode="$?"
|
|
||||||
if [ "$_exitCode" -ne "0" ]; then
|
|
||||||
curl -L -o "${{ runner.temp }}/boost.tar.gz" "$boost_url2"
|
|
||||||
tar -xf "${{ runner.temp }}/boost.tar.gz" -C "${{ github.workspace }}/.."; _exitCode="$?"
|
|
||||||
fi
|
|
||||||
mv "${{ github.workspace }}/.."/boost_* "${{ env.boost_path }}"
|
|
||||||
|
|
||||||
- name: Install Qt
|
- name: Install Qt
|
||||||
uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v3
|
||||||
with:
|
with:
|
||||||
version: ${{ matrix.qt_version }}
|
version: "6.5.0"
|
||||||
archives: icu qtbase qtdeclarative qtsvg qttools
|
archives: icu qtbase qtsvg qttools
|
||||||
cache: true
|
|
||||||
|
|
||||||
- name: Install libtorrent
|
- name: Install libtorrent
|
||||||
run: |
|
run: |
|
||||||
git clone \
|
git clone \
|
||||||
--branch v${{ matrix.libt_version }} \
|
--branch "v2.0.9" \
|
||||||
--depth 1 \
|
--depth 1 \
|
||||||
--recurse-submodules \
|
--recurse-submodules \
|
||||||
https://github.com/arvidn/libtorrent.git \
|
https://github.com/arvidn/libtorrent.git
|
||||||
${{ env.libtorrent_path }}
|
cd libtorrent
|
||||||
cd ${{ env.libtorrent_path }}
|
|
||||||
cmake \
|
cmake \
|
||||||
-B build \
|
-B build \
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_CXX_STANDARD=20 \
|
|
||||||
-DBOOST_ROOT="${{ env.boost_path }}" \
|
|
||||||
-Ddeprecated-functions=OFF
|
-Ddeprecated-functions=OFF
|
||||||
cmake --build build
|
cmake --build build
|
||||||
sudo cmake --install build
|
sudo cmake --install build
|
||||||
|
|
||||||
- name: Download Coverity Build Tool
|
- name: Download Coverity Build Tool
|
||||||
run: |
|
run: |
|
||||||
curl \
|
wget \
|
||||||
-L \
|
-q \
|
||||||
-d "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=qbittorrent%2FqBittorrent" \
|
https://scan.coverity.com/download/linux64 \
|
||||||
-o "${{ runner.temp }}/coverity_tool.tgz" \
|
--post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=qbittorrent%2FqBittorrent" \
|
||||||
"https://scan.coverity.com/download/linux64"
|
-O coverity_tool.tgz
|
||||||
mkdir -p ${{ env.coverity_path }}
|
mkdir coverity_tool
|
||||||
tar \
|
tar xzf coverity_tool.tgz --strip 1 -C coverity_tool
|
||||||
-xf "${{ runner.temp }}/coverity_tool.tgz" \
|
|
||||||
-C "${{ env.coverity_path }}" \
|
|
||||||
--strip-components 1
|
|
||||||
|
|
||||||
- name: Build qBittorrent
|
- name: Build qBittorrent
|
||||||
run: |
|
run: |
|
||||||
@@ -98,13 +61,11 @@ jobs:
|
|||||||
-B build \
|
-B build \
|
||||||
-G "Ninja" \
|
-G "Ninja" \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DBOOST_ROOT="${{ env.boost_path }}" \
|
-DGUI=ON \
|
||||||
-DVERBOSE_CONFIGURE=ON \
|
-DQT6=ON \
|
||||||
-D${{ matrix.qbt_gui }}
|
-DVERBOSE_CONFIGURE=ON
|
||||||
PATH="${{ env.coverity_path }}/bin:$PATH" \
|
export PATH="$(pwd)/coverity_tool/bin:$PATH"
|
||||||
cov-build \
|
cov-build --dir cov-int cmake --build build
|
||||||
--dir cov-int \
|
|
||||||
cmake --build build
|
|
||||||
|
|
||||||
- name: Submit the result to Coverity Scan
|
- name: Submit the result to Coverity Scan
|
||||||
run: |
|
run: |
|
||||||
|
@@ -16,5 +16,3 @@ ths = "ths"
|
|||||||
[default.extend-words]
|
[default.extend-words]
|
||||||
BA = "BA"
|
BA = "BA"
|
||||||
helo = "helo"
|
helo = "helo"
|
||||||
Pn = "Pn"
|
|
||||||
UIU = "UIU"
|
|
||||||
|
@@ -1,95 +0,0 @@
|
|||||||
#!/usr/bin/env python3
|
|
||||||
|
|
||||||
# A pre-commit hook for checking items order in grid layouts
|
|
||||||
# Copyright (C) 2024 Mike Tzou (Chocobo1)
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or
|
|
||||||
# modify it under the terms of the GNU General Public License
|
|
||||||
# as published by the Free Software Foundation; either version 2
|
|
||||||
# of the License, or (at your option) any later version.
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with this program; if not, write to the Free Software
|
|
||||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
#
|
|
||||||
# In addition, as a special exception, the copyright holders give permission to
|
|
||||||
# link this program with the OpenSSL project's "OpenSSL" library (or with
|
|
||||||
# modified versions of it that use the same license as the "OpenSSL" library),
|
|
||||||
# and distribute the linked executables. You must obey the GNU General Public
|
|
||||||
# License in all respects for all of the code used other than "OpenSSL". If you
|
|
||||||
# modify file(s), you may extend this exception to your version of the file(s),
|
|
||||||
# but you are not obligated to do so. If you do not wish to do so, delete this
|
|
||||||
# exception statement from your version.
|
|
||||||
|
|
||||||
from collections.abc import Callable, Sequence
|
|
||||||
from typing import Optional
|
|
||||||
import argparse
|
|
||||||
import re
|
|
||||||
import xml.etree.ElementTree as ElementTree
|
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
def traversePostOrder(root: ElementTree.Element, visitFunc: Callable[[ElementTree.Element], None]) -> None:
|
|
||||||
stack = [(root, False)]
|
|
||||||
|
|
||||||
while len(stack) > 0:
|
|
||||||
(element, visit) = stack.pop()
|
|
||||||
if visit:
|
|
||||||
visitFunc(element)
|
|
||||||
else:
|
|
||||||
stack.append((element, True))
|
|
||||||
stack.extend((child, False) for child in reversed(element))
|
|
||||||
|
|
||||||
|
|
||||||
def modifyElement(element: ElementTree.Element) -> None:
|
|
||||||
def getSortKey(e: ElementTree.Element) -> tuple[int, int]:
|
|
||||||
if e.tag == 'item':
|
|
||||||
return (int(e.attrib['row']), int(e.attrib['column']))
|
|
||||||
return (-1, -1) # don't care
|
|
||||||
|
|
||||||
if element.tag == 'layout' and element.attrib['class'] == 'QGridLayout' and len(element) > 0:
|
|
||||||
element[:] = sorted(element, key=getSortKey)
|
|
||||||
|
|
||||||
# workaround_2a: ElementTree will unescape `"` and we need to escape it back
|
|
||||||
if element.tag == 'string' and element.text is not None:
|
|
||||||
element.text = element.text.replace('"', '"')
|
|
||||||
|
|
||||||
|
|
||||||
def main(argv: Optional[Sequence[str]] = None) -> int:
|
|
||||||
parser = argparse.ArgumentParser()
|
|
||||||
parser.add_argument('filenames', nargs='*', help='Filenames to check')
|
|
||||||
args = parser.parse_args(argv)
|
|
||||||
|
|
||||||
for filename in args.filenames:
|
|
||||||
with open(filename, 'r+') as f:
|
|
||||||
orig = f.read()
|
|
||||||
root = ElementTree.fromstring(orig)
|
|
||||||
traversePostOrder(root, modifyElement)
|
|
||||||
ElementTree.indent(root, ' ')
|
|
||||||
|
|
||||||
# workaround_1: cannot use `xml_declaration=True` since it uses single quotes instead of Qt preferred double quotes
|
|
||||||
ret = f'<?xml version="1.0" encoding="UTF-8"?>\n{ElementTree.tostring(root, 'unicode')}\n'
|
|
||||||
|
|
||||||
# workaround_2b: ElementTree will turn `"` into `&quot;`, so revert it back
|
|
||||||
ret = ret.replace('&quot;', '"')
|
|
||||||
|
|
||||||
# workaround_3: Qt prefers no whitespaces in self-closing tags
|
|
||||||
ret = re.sub('<(.+) +/>', r'<\1/>', ret)
|
|
||||||
|
|
||||||
if ret != orig:
|
|
||||||
print(f'Tip: run this script to apply the fix: `python {__file__} {filename}`', file=sys.stderr)
|
|
||||||
|
|
||||||
f.seek(0)
|
|
||||||
f.write(ret)
|
|
||||||
f.truncate()
|
|
||||||
|
|
||||||
return 0
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
sys.exit(main())
|
|
@@ -26,12 +26,9 @@
|
|||||||
# but you are not obligated to do so. If you do not wish to do so, delete this
|
# but you are not obligated to do so. If you do not wish to do so, delete this
|
||||||
# exception statement from your version.
|
# exception statement from your version.
|
||||||
|
|
||||||
from collections.abc import Sequence
|
from typing import Optional, Sequence
|
||||||
from typing import Optional
|
|
||||||
import argparse
|
import argparse
|
||||||
import re
|
import re
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
def main(argv: Optional[Sequence[str]] = None) -> int:
|
def main(argv: Optional[Sequence[str]] = None) -> int:
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
@@ -50,12 +47,12 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
|
|||||||
for line in file:
|
for line in file:
|
||||||
if (match := regex.match(line)) is not None:
|
if (match := regex.match(line)) is not None:
|
||||||
error_buffer += str(f"Defect file: \"{filename}\"\n"
|
error_buffer += str(f"Defect file: \"{filename}\"\n"
|
||||||
f"Line: {line_counter}\n"
|
f"Line: {line_counter}\n"
|
||||||
f"Column span: {match.span()}\n"
|
f"Column span: {match.span()}\n"
|
||||||
f"Part: \"{match.group()}\"\n\n")
|
f"Part: \"{match.group()}\"\n\n")
|
||||||
line_counter += 1
|
line_counter += 1
|
||||||
|
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError as error:
|
||||||
# not a text file, skip
|
# not a text file, skip
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@@ -67,6 +64,5 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
|
|||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
sys.exit(main())
|
exit(main())
|
||||||
|
7
.github/workflows/stale_bot.yaml
vendored
7
.github/workflows/stale_bot.yaml
vendored
@@ -4,16 +4,15 @@ on:
|
|||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
permissions: {}
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stale:
|
stale:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
steps:
|
steps:
|
||||||
- name: Mark and close stale PRs
|
- name: Mark and close stale PRs
|
||||||
uses: actions/stale@v9
|
uses: actions/stale@v8
|
||||||
with:
|
with:
|
||||||
stale-pr-message: "This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity."
|
stale-pr-message: "This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity."
|
||||||
close-pr-message: "This PR was closed because it has been stalled for some time with no activity."
|
close-pr-message: "This PR was closed because it has been stalled for some time with no activity."
|
||||||
|
8
.gitignore
vendored
8
.gitignore
vendored
@@ -17,7 +17,6 @@ Makefile*
|
|||||||
*.o
|
*.o
|
||||||
*.pdb
|
*.pdb
|
||||||
*.exe
|
*.exe
|
||||||
*.dll
|
|
||||||
|
|
||||||
# Generated MOC, resource and UI files
|
# Generated MOC, resource and UI files
|
||||||
moc_*.cpp
|
moc_*.cpp
|
||||||
@@ -25,7 +24,8 @@ moc_*.h
|
|||||||
qrc_*.cpp
|
qrc_*.cpp
|
||||||
ui_*.h
|
ui_*.h
|
||||||
*.moc
|
*.moc
|
||||||
*.qm
|
src/lang/qbittorrent_*.qm
|
||||||
|
src/webui/www/translations/webui_*.qm
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.qmake.stash
|
.qmake.stash
|
||||||
src/qbittorrent.app
|
src/qbittorrent.app
|
||||||
@@ -41,3 +41,7 @@ src/icons/skin/build-icons/icons/*.png
|
|||||||
|
|
||||||
# CMake build directory
|
# CMake build directory
|
||||||
build/
|
build/
|
||||||
|
|
||||||
|
# Web UI tools
|
||||||
|
node_modules
|
||||||
|
package-lock.json
|
||||||
|
@@ -1,12 +1,6 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: local
|
- repo: local
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-grid-order
|
|
||||||
name: Check items order in grid layouts
|
|
||||||
entry: .github/workflows/helper/pre-commit/check_grid_items_order.py
|
|
||||||
language: script
|
|
||||||
files: \.ui$
|
|
||||||
|
|
||||||
- id: check-translation-tag
|
- id: check-translation-tag
|
||||||
name: Check newline characters in <translation> tag
|
name: Check newline characters in <translation> tag
|
||||||
entry: .github/workflows/helper/pre-commit/check_translation_tag.py
|
entry: .github/workflows/helper/pre-commit/check_translation_tag.py
|
||||||
@@ -19,7 +13,7 @@ repos:
|
|||||||
- ts
|
- ts
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
||||||
rev: v5.0.0
|
rev: v4.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-json
|
- id: check-json
|
||||||
name: Check JSON files
|
name: Check JSON files
|
||||||
@@ -41,7 +35,6 @@ repos:
|
|||||||
(?x)^(
|
(?x)^(
|
||||||
src/webui/www/private/css/lib/.* |
|
src/webui/www/private/css/lib/.* |
|
||||||
src/webui/www/private/scripts/lib/.* |
|
src/webui/www/private/scripts/lib/.* |
|
||||||
dist/windows/license.txt |
|
|
||||||
test/testdata/crlf.txt
|
test/testdata/crlf.txt
|
||||||
)$
|
)$
|
||||||
|
|
||||||
@@ -68,18 +61,20 @@ repos:
|
|||||||
exclude_types:
|
exclude_types:
|
||||||
- ts
|
- ts
|
||||||
|
|
||||||
- repo: https://github.com/codespell-project/codespell.git
|
- repo: https://github.com/codespell-project/codespell
|
||||||
rev: v2.4.0
|
rev: v2.2.5
|
||||||
hooks:
|
hooks:
|
||||||
- id: codespell
|
- id: codespell
|
||||||
name: Check spelling (codespell)
|
name: Check spelling (codespell)
|
||||||
args: ["--ignore-words-list", "additionals,categor,curren,fo,ist,ket,notin,searchin,sectionin,superseeding,te,ths"]
|
args: ["--ignore-words-list", "additionals,curren,fo,ket,superseeding,te,ths"]
|
||||||
exclude: |
|
exclude: |
|
||||||
(?x)^(
|
(?x)^(
|
||||||
.*\.desktop |
|
.*\.desktop |
|
||||||
.*\.qrc |
|
.*\.qrc |
|
||||||
|
build-aux/.* |
|
||||||
Changelog |
|
Changelog |
|
||||||
dist/windows/installer-translations/.* |
|
dist/windows/installer-translations/.* |
|
||||||
|
m4/.* |
|
||||||
src/base/3rdparty/.* |
|
src/base/3rdparty/.* |
|
||||||
src/searchengine/nova3/socks.py |
|
src/searchengine/nova3/socks.py |
|
||||||
src/webui/www/private/scripts/lib/.*
|
src/webui/www/private/scripts/lib/.*
|
||||||
@@ -87,8 +82,8 @@ repos:
|
|||||||
exclude_types:
|
exclude_types:
|
||||||
- ts
|
- ts
|
||||||
|
|
||||||
- repo: https://github.com/crate-ci/typos.git
|
- repo: https://github.com/crate-ci/typos
|
||||||
rev: v1.29.4
|
rev: v1.15.5
|
||||||
hooks:
|
hooks:
|
||||||
- id: typos
|
- id: typos
|
||||||
name: Check spelling (typos)
|
name: Check spelling (typos)
|
||||||
@@ -99,8 +94,11 @@ repos:
|
|||||||
.*\.desktop |
|
.*\.desktop |
|
||||||
.*\.qrc |
|
.*\.qrc |
|
||||||
\.pre-commit-config\.yaml |
|
\.pre-commit-config\.yaml |
|
||||||
|
build-aux/.* |
|
||||||
Changelog |
|
Changelog |
|
||||||
|
configure.* |
|
||||||
dist/windows/installer-translations/.* |
|
dist/windows/installer-translations/.* |
|
||||||
|
m4/.* |
|
||||||
src/base/3rdparty/.* |
|
src/base/3rdparty/.* |
|
||||||
src/searchengine/nova3/socks.py |
|
src/searchengine/nova3/socks.py |
|
||||||
src/webui/www/private/scripts/lib/.*
|
src/webui/www/private/scripts/lib/.*
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
[main]
|
[main]
|
||||||
host = https://www.transifex.com
|
host = https://www.transifex.com
|
||||||
|
|
||||||
[o:sledgehammer999:p:qbittorrent:r:qbittorrent_v51x]
|
[o:sledgehammer999:p:qbittorrent:r:qbittorrent_v46x]
|
||||||
file_filter = src/lang/qbittorrent_<lang>.ts
|
file_filter = src/lang/qbittorrent_<lang>.ts
|
||||||
source_file = src/lang/qbittorrent_en.ts
|
source_file = src/lang/qbittorrent_en.ts
|
||||||
source_lang = en
|
source_lang = en
|
||||||
@@ -9,7 +9,7 @@ type = QT
|
|||||||
minimum_perc = 23
|
minimum_perc = 23
|
||||||
lang_map = pt: pt_PT, zh: zh_CN
|
lang_map = pt: pt_PT, zh: zh_CN
|
||||||
|
|
||||||
[o:sledgehammer999:p:qbittorrent:r:qbittorrent_webui_v51x]
|
[o:sledgehammer999:p:qbittorrent:r:qbittorrent_webui_v46x]
|
||||||
file_filter = src/webui/www/translations/webui_<lang>.ts
|
file_filter = src/webui/www/translations/webui_<lang>.ts
|
||||||
source_file = src/webui/www/translations/webui_en.ts
|
source_file = src/webui/www/translations/webui_en.ts
|
||||||
source_lang = en
|
source_lang = en
|
||||||
|
10
AUTHORS
10
AUTHORS
@@ -53,7 +53,7 @@ Images Authors:
|
|||||||
|
|
||||||
* file: src/icons/qbittorrent-tray-dark.svg src/icons/qbittorrent-tray-light.svg
|
* file: src/icons/qbittorrent-tray-dark.svg src/icons/qbittorrent-tray-light.svg
|
||||||
copyright: Daniel Eguren <deguren@gmail.com>
|
copyright: Daniel Eguren <deguren@gmail.com>
|
||||||
modified by: now-im <now-im.d8gcu@simplelogin.com> (@now-im)
|
modified by: Nowshed H. Imran <nowshed.imran@gmail.com> (@now-im)
|
||||||
license: LGPL
|
license: LGPL
|
||||||
|
|
||||||
* folder: src/icons/
|
* folder: src/icons/
|
||||||
@@ -63,7 +63,7 @@ Images Authors:
|
|||||||
media-seek-forward.svg, network-connect.svg, object-locked.svg, queued.svg, ratio.svg, reannounce.svg, slow_off.svg, slow.svg,
|
media-seek-forward.svg, network-connect.svg, object-locked.svg, queued.svg, ratio.svg, reannounce.svg, slow_off.svg, slow.svg,
|
||||||
speedometer.svg, system-log-out.svg, tags.svg, task-complete.svg, task-reject.svg, tracker-error.svg, tracker-warning.svg,
|
speedometer.svg, system-log-out.svg, tags.svg, task-complete.svg, task-reject.svg, tracker-error.svg, tracker-warning.svg,
|
||||||
trackerless.svg, trackers.svg, view-categories.svg
|
trackerless.svg, trackers.svg, view-categories.svg
|
||||||
copyright: now-im <now-im.d8gcu@simplelogin.com> (@now-im) modified from La-Capitaine icon theme (https://github.com/keeferrourke/la-capitaine-icon-theme)
|
copyright: Nowshed H. Imran <nowshed.imran@gmail.com> (@now-im) modified from La-Capitaine icon theme (https://github.com/keeferrourke/la-capitaine-icon-theme)
|
||||||
license: GPLv3+
|
license: GPLv3+
|
||||||
|
|
||||||
* folder: src/icons/
|
* folder: src/icons/
|
||||||
@@ -76,18 +76,18 @@ Images Authors:
|
|||||||
name.svg, network-server.svg, office-chart-line.svg, plugins.svg, preferences-desktop.svg, preferences-other.svg,
|
name.svg, network-server.svg, office-chart-line.svg, plugins.svg, preferences-desktop.svg, preferences-other.svg,
|
||||||
preferences-system-network.svg, security-high.svg, security-low.svg, set-location.svg, torrent-creator.svg, user-group-delete.svg,
|
preferences-system-network.svg, security-high.svg, security-low.svg, set-location.svg, torrent-creator.svg, user-group-delete.svg,
|
||||||
user-group-new.svg, view-preview.svg, view-refresh.svg, view-statistics.svg, wallet-open.svg, webui.svg
|
user-group-new.svg, view-preview.svg, view-refresh.svg, view-statistics.svg, wallet-open.svg, webui.svg
|
||||||
copyright: now-im <now-im.d8gcu@simplelogin.com> (@now-im) modified from Ionicons icon theme (https://github.com/ionic-team/ionicons)
|
copyright: Nowshed H. Imran <nowshed.imran@gmail.com> (@now-im) modified from Ionicons icon theme (https://github.com/ionic-team/ionicons)
|
||||||
license: MIT
|
license: MIT
|
||||||
|
|
||||||
* folder: src/icons/
|
* folder: src/icons/
|
||||||
files: force-recheck.svg
|
files: force-recheck.svg
|
||||||
copyright: now-im <now-im.d8gcu@simplelogin.com> (@now-im) modified from Font-Awesome icon theme (https://github.com/FortAwesome/Font-Awesome)
|
copyright: Nowshed H. Imran <nowshed.imran@gmail.com> (@now-im) modified from Font-Awesome icon theme (https://github.com/FortAwesome/Font-Awesome)
|
||||||
license: CC BY 4.0 License
|
license: CC BY 4.0 License
|
||||||
|
|
||||||
* folder: src/icons/
|
* folder: src/icons/
|
||||||
files: downloading.svg, edit-clear.svg, error.svg, filter-active.svg, filter-inactive.svg, filter-stalled.svg, kt-set-max-download-speed.svg,
|
files: downloading.svg, edit-clear.svg, error.svg, filter-active.svg, filter-inactive.svg, filter-stalled.svg, kt-set-max-download-speed.svg,
|
||||||
kt-set-max-upload-speed.svg, list-add.svg, preferences-web-browser-cookies.svg, stalledDL.svg, stalledUP.svg
|
kt-set-max-upload-speed.svg, list-add.svg, preferences-web-browser-cookies.svg, stalledDL.svg, stalledUP.svg
|
||||||
copyright: now-im <now-im.d8gcu@simplelogin.com> (@now-im)
|
copyright: Nowshed H. Imran <nowshed.imran@gmail.com> (@now-im)
|
||||||
license: BSD 2-Clause License
|
license: BSD 2-Clause License
|
||||||
|
|
||||||
Translations authors:
|
Translations authors:
|
||||||
|
@@ -7,13 +7,15 @@ project(qBittorrent
|
|||||||
)
|
)
|
||||||
|
|
||||||
# version requirements - older versions may work, but you are on your own
|
# version requirements - older versions may work, but you are on your own
|
||||||
set(minBoostVersion 1.76)
|
set(minBoostVersion 1.71)
|
||||||
set(minQt6Version 6.5.0)
|
set(minQt5Version 5.15.2)
|
||||||
set(minOpenSSLVersion 3.0.2)
|
set(minQt6Version 6.2)
|
||||||
|
set(minOpenSSLVersion 1.1.1)
|
||||||
set(minLibtorrent1Version 1.2.19)
|
set(minLibtorrent1Version 1.2.19)
|
||||||
set(minLibtorrentVersion 2.0.10)
|
set(minLibtorrentVersion 2.0.9)
|
||||||
set(minZlibVersion 1.2.11)
|
set(minZlibVersion 1.2.11)
|
||||||
|
|
||||||
|
include(CheckCXXSourceCompiles) # TODO: migrate to CheckSourceCompiles in CMake >= 3.19
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
|
||||||
@@ -23,6 +25,7 @@ include(FeatureOptionsSetup)
|
|||||||
# features, list is loosely sorted by user's interests
|
# features, list is loosely sorted by user's interests
|
||||||
feature_option(GUI "Build GUI application" ON)
|
feature_option(GUI "Build GUI application" ON)
|
||||||
feature_option(WEBUI "Enable built-in HTTP server for remote control" ON)
|
feature_option(WEBUI "Enable built-in HTTP server for remote control" ON)
|
||||||
|
feature_option(QT6 "Build with Qt 6 instead of Qt 5" OFF)
|
||||||
feature_option(STACKTRACE "Enable stacktrace support" ON)
|
feature_option(STACKTRACE "Enable stacktrace support" ON)
|
||||||
feature_option(TESTING "Build internal testing suite" OFF)
|
feature_option(TESTING "Build internal testing suite" OFF)
|
||||||
feature_option(VERBOSE_CONFIGURE "Show information about PACKAGES_FOUND and PACKAGES_NOT_FOUND in the configure output (only useful for debugging the CMake build scripts)" OFF)
|
feature_option(VERBOSE_CONFIGURE "Show information about PACKAGES_FOUND and PACKAGES_NOT_FOUND in the configure output (only useful for debugging the CMake build scripts)" OFF)
|
||||||
|
@@ -276,7 +276,7 @@ struct StructName {};
|
|||||||
|
|
||||||
enum EnumName {};
|
enum EnumName {};
|
||||||
|
|
||||||
using SomeList = QList<ClassName>;
|
typedef QList<ClassName> SomeList;
|
||||||
|
|
||||||
namespace NamespaceName
|
namespace NamespaceName
|
||||||
{
|
{
|
||||||
@@ -318,7 +318,7 @@ The headers should be ordered alphabetically within each group. \
|
|||||||
If there are conditionals for the same header group, then put them at the bottom of the respective group. \
|
If there are conditionals for the same header group, then put them at the bottom of the respective group. \
|
||||||
If there are conditionals that contain headers from several different header groups, then put them above the "qBittorrent's own headers" group.
|
If there are conditionals that contain headers from several different header groups, then put them above the "qBittorrent's own headers" group.
|
||||||
|
|
||||||
One exception is the header containing the library version (for example, QtVersionChecks), this particular header isn't constrained by the aforementioned order.
|
One exception is the header containing the library version (for example, QtGlobal), this particular header isn't constrained by the aforementioned order.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
@@ -331,7 +331,7 @@ Example:
|
|||||||
// exceptions, headers containing version number
|
// exceptions, headers containing version number
|
||||||
#include <boost/version.hpp>
|
#include <boost/version.hpp>
|
||||||
#include <libtorrent/version.hpp>
|
#include <libtorrent/version.hpp>
|
||||||
#include <QtVersionChecks>
|
#include <QtGlobal>
|
||||||
|
|
||||||
// C++ Standard Library headers
|
// C++ Standard Library headers
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
@@ -342,7 +342,7 @@ Example:
|
|||||||
|
|
||||||
// System headers
|
// System headers
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
#include <windows.h>
|
#include <Windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Boost library headers
|
// Boost library headers
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
Version 2, June 1991
|
Version 2, June 1991
|
||||||
|
|
||||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||||
<https://fsf.org/>
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
of this license document, but changing it is not allowed.
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
@@ -304,7 +304,8 @@ the "copyright" line and a pointer to where the full notice is found.
|
|||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License along
|
You should have received a copy of the GNU General Public License along
|
||||||
with this program; if not, see <https://www.gnu.org/licenses/>.
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
@@ -328,8 +329,8 @@ necessary. Here is a sample; alter the names:
|
|||||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
<signature of Moe Ghoul>, 1 April 1989
|
<signature of Ty Coon>, 1 April 1989
|
||||||
Moe Ghoul, President of Vice
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
This General Public License does not permit incorporating your program into
|
This General Public License does not permit incorporating your program into
|
||||||
proprietary programs. If your program is a subroutine library, you may
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
24
INSTALL
24
INSTALL
@@ -3,22 +3,22 @@ qBittorrent - A BitTorrent client in C++ / Qt
|
|||||||
|
|
||||||
1) Install these dependencies:
|
1) Install these dependencies:
|
||||||
|
|
||||||
- Boost >= 1.76
|
- Boost >= 1.71
|
||||||
|
|
||||||
- libtorrent-rasterbar 1.2.19 - 1.2.x || 2.0.10 - 2.0.x
|
- libtorrent-rasterbar 1.2.19 - 1.2.x || 2.0.9 - 2.0.x
|
||||||
* By Arvid Norberg, https://www.libtorrent.org/
|
* By Arvid Norberg, https://www.libtorrent.org/
|
||||||
* Be careful: another library (the one used by rTorrent) uses a similar name
|
* Be careful: another library (the one used by rTorrent) uses a similar name
|
||||||
|
|
||||||
- OpenSSL >= 3.0.2
|
- OpenSSL >= 1.1.1
|
||||||
|
|
||||||
- Qt 6.5.0 - 6.x
|
- Qt 5.15.2 - 5.x || 6.2.0 - 6.x
|
||||||
|
|
||||||
- zlib >= 1.2.11
|
- zlib >= 1.2.11
|
||||||
|
|
||||||
- CMake >= 3.16
|
- pkg-config *
|
||||||
* Compile-time only
|
* Compile-time only on *nix systems
|
||||||
|
|
||||||
- Python >= 3.9.0
|
- Python >= 3.7.0
|
||||||
* Optional, run-time only
|
* Optional, run-time only
|
||||||
* Used by the bundled search engine
|
* Used by the bundled search engine
|
||||||
|
|
||||||
@@ -28,18 +28,16 @@ Please ensure you are building with an officially supported configuration when r
|
|||||||
|
|
||||||
2a) Compile and install qBittorrent with Qt graphical interface
|
2a) Compile and install qBittorrent with Qt graphical interface
|
||||||
|
|
||||||
$ cmake -B build -DCMAKE_BUILD_TYPE=Release
|
$ ./configure
|
||||||
$ cmake --build build
|
$ make && make install
|
||||||
$ cmake --install build
|
|
||||||
$ qbittorrent
|
$ qbittorrent
|
||||||
|
|
||||||
will install and execute qBittorrent.
|
will install and execute qBittorrent.
|
||||||
|
|
||||||
2b) Compile and install qBittorrent without Qt graphical interface
|
2b) Compile and install qBittorrent without Qt graphical interface
|
||||||
|
|
||||||
$ cmake -B build -DCMAKE_BUILD_TYPE=Release -DGUI=OFF
|
$ ./configure --disable-gui
|
||||||
$ cmake --build build
|
$ make && make install
|
||||||
$ cmake --install build
|
|
||||||
$ qbittorrent-nox
|
$ qbittorrent-nox
|
||||||
|
|
||||||
will install and execute qBittorrent.
|
will install and execute qBittorrent.
|
||||||
|
12
README.md
12
README.md
@@ -1,7 +1,8 @@
|
|||||||
qBittorrent - A BitTorrent client in Qt
|
qBittorrent - A BitTorrent client in Qt
|
||||||
------------------------------------------
|
------------------------------------------
|
||||||
|
|
||||||
[](https://github.com/qbittorrent/qBittorrent/actions)
|
[](https://ci.appveyor.com/project/qbittorrent/qBittorrent)
|
||||||
|
[](https://github.com/qbittorrent/qBittorrent/actions)
|
||||||
[](https://scan.coverity.com/projects/5494)
|
[](https://scan.coverity.com/projects/5494)
|
||||||
********************************
|
********************************
|
||||||
### Description:
|
### Description:
|
||||||
@@ -15,8 +16,15 @@ support as well as many features.
|
|||||||
The free [IP to Country Lite database](https://db-ip.com/db/download/ip-to-country-lite) by [DB-IP](https://db-ip.com/) is used for resolving the countries of peers. The database is licensed under the [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).
|
The free [IP to Country Lite database](https://db-ip.com/db/download/ip-to-country-lite) by [DB-IP](https://db-ip.com/) is used for resolving the countries of peers. The database is licensed under the [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/).
|
||||||
|
|
||||||
### Installation:
|
### Installation:
|
||||||
|
For installation, follow the instructions from INSTALL file, but simple:
|
||||||
|
|
||||||
Refer to the [INSTALL](INSTALL) file.
|
```
|
||||||
|
./configure
|
||||||
|
make && make install
|
||||||
|
qbittorrent
|
||||||
|
```
|
||||||
|
|
||||||
|
will install and execute qBittorrent hopefully without any problem.
|
||||||
|
|
||||||
### Public key:
|
### Public key:
|
||||||
Starting from v3.3.4 all source tarballs and binaries are signed.<br />
|
Starting from v3.3.4 all source tarballs and binaries are signed.<br />
|
||||||
|
18
SECURITY.md
18
SECURITY.md
@@ -1,18 +0,0 @@
|
|||||||
# Security Policy
|
|
||||||
|
|
||||||
qBittorrent takes the security of our software seriously, including all source code repositories managed through our GitHub organisation.
|
|
||||||
If you believe you have found a security vulnerability in qBittorrent, please report it to us as described below.
|
|
||||||
|
|
||||||
## Reporting Security Issues
|
|
||||||
|
|
||||||
Please do not report security vulnerabilities through public GitHub issues. Instead, please use GitHubs private vulnerability reporting functionality associated to this repository. Additionally, you may email us with all security-related inquiries and notifications at `security@qbittorrent.org`.
|
|
||||||
|
|
||||||
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
|
||||||
1. Type of issue
|
|
||||||
2. Step-by-step instructions to reproduce the issue
|
|
||||||
3. Proof-of-concept or exploit code (if possible)
|
|
||||||
4. Potential impact of the issue, including how an attacker might exploit the issue
|
|
||||||
|
|
||||||
This information will help us triage your report more quickly. Any and all CVEs will be requested and issued through GitHubs private vulnerability reporting functionality, which will be published alongside the disclosure.
|
|
||||||
|
|
||||||
This security policy only applies to the most recent stable branch of qBittorrent. Flaws in old versions that are not present in the current stable branch will not be fixed.
|
|
4
bootstrap.sh
Executable file
4
bootstrap.sh
Executable file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
aclocal -I m4
|
||||||
|
autoconf
|
348
build-aux/compile
Executable file
348
build-aux/compile
Executable file
File diff suppressed because it is too large
Load Diff
1665
build-aux/config.guess
vendored
Executable file
1665
build-aux/config.guess
vendored
Executable file
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user