Skip to content

Commit

Permalink
🥳Release v2.0.1 🥳
Browse files Browse the repository at this point in the history
  • Loading branch information
antony-jr committed Mar 30, 2021
1 parent 613f1ae commit 5ee5386
Show file tree
Hide file tree
Showing 9 changed files with 830 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,17 @@ jobs:
run: |
Xvfb :100 -ac &
export DISPLAY=:100.0
source /opt/qt*/bin/qt*-env.sh || true
cd ..
mkdir test-build
cd test-build
cmake -DBUILD_TESTS=ON ..
make -j$(nproc)
./tests/QAppImageUpdateTests
cd ..
rm -rf test-build
mkdir build
cd build
source /opt/qt*/bin/qt*-env.sh || true
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DDECENTRALIZED_UPDATE_ENABLED=ON -DBUILD_TESTS=ON ..
make -j$(nproc)
cd tests
Expand Down
2 changes: 2 additions & 0 deletions src/qappimageupdate_p.cc
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ void QAppImageUpdatePrivate::handleCheckForUpdateError(short code) {
emit error(code, n_CurrentAction);
}

#ifdef DECENTRALIZED_UPDATE_ENABLED
void QAppImageUpdatePrivate::handleSeedError(short code) {
b_Canceled = b_Started = b_Running = false;
b_Finished = false;
Expand Down Expand Up @@ -688,6 +689,7 @@ void QAppImageUpdatePrivate::handleSeedCancel() {
QJsonObject r { };
emit finished(r, n_CurrentAction);
}
#endif // DECENTRALIZED_UPDATE_ENABLED

void QAppImageUpdatePrivate::redirectUpdateCheck(QJsonObject info) {
disconnect(m_UpdateInformation.data(), SIGNAL(info(QJsonObject)),
Expand Down
5 changes: 5 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,10 @@ if(QUICK_TEST)
add_definitions(-DQUICK_TEST)
endif()

if(DECENTRALIZED_UPDATE_ENABLED)
message("-- [*] IMPORTANT: Decentralized update feature will be TESTED.")
add_definitions(-DDECENTRALIZED_UPDATE_ENABLED)
endif()

add_executable(QAppImageUpdateTests main.cc QAppImageUpdateTests.hpp SimpleDownload.hpp)
target_link_libraries(QAppImageUpdateTests PRIVATE QAppImageUpdate Qt5::Test Qt5::Concurrent)
2 changes: 2 additions & 0 deletions tests/QAppImageUpdateTests.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ class QAppImageUpdateTests : public QObject {
QVERIFY(action == QAppImageUpdate::Action::Update);
}

#ifdef DECENTRALIZED_UPDATE_ENABLED
void actionUpdateWithTorrent() {
short action = 0;
QJsonObject result;
Expand Down Expand Up @@ -509,6 +510,7 @@ class QAppImageUpdateTests : public QObject {
}
}
}
#endif // DECENTRALIZED_UPDATE_ENABLED

//// This should not crash the test
//// That is the test.
Expand Down
8 changes: 8 additions & 0 deletions website/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,14 @@
"version-2.0.0/version-2.0.0-UsingPlugin": {
"title": "Build QAppImageUpdate as Qt Plugin",
"sidebar_label": "Building as Qt Plugin"
},
"version-2.0.1/version-2.0.1-ClassQAppImageUpdate": {
"title": "Class QAppImageUpdate",
"sidebar_label": "Class QAppImageUpdate"
},
"version-2.0.1/version-2.0.1-PluginInterface": {
"title": "QAppImageUpdate Plugin Interface",
"sidebar_label": "Qt Plugin Interface"
}
},
"links": {
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"devDependencies": {
"docusaurus": "^1.14.4"
},
"version": "0.0.0"
"version": "2.0.1"
}
Loading

0 comments on commit 5ee5386

Please sign in to comment.