Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.8.0 #38

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/backup-to-gitlab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: backup to gitlab
on: [push]

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
backup-to-gitlabwh:
uses: deepin-community/.github/.github/workflows/backup-to-gitlabwh.yml@release
secrets:
BRIDGETOKEN: ${{ secrets.BRIDGETOKEN }}
16 changes: 0 additions & 16 deletions .github/workflows/call-auto-tag.yml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/call-build-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: tag build
on:
push:
tags: "*"

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
build:
uses: deepin-community/.github/.github/workflows/build-tag.yml@master
secrets:
BridgeToken: ${{ secrets.BridgeToken }}
9 changes: 9 additions & 0 deletions .github/workflows/call-chatOps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: chatOps
on:
issue_comment:
types: [created]

jobs:
chatopt:
uses: deepin-community/.github/.github/workflows/chatOps.yml@master
secrets: inherit
11 changes: 0 additions & 11 deletions .github/workflows/call-commitlint.yml

This file was deleted.

16 changes: 0 additions & 16 deletions .github/workflows/call-license-check.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/cppcheck.yml

This file was deleted.

6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
linglong (1.8.0-1) unstable; urgency=medium

* release 1.8.0

-- dengbo <[email protected]> Wed, 25 Dec 2024 17:11:45 +0800

linglong (1.5.6-1) unstable; urgency=medium

* fix: layer size error when export layer repeatedly
Expand Down
36 changes: 36 additions & 0 deletions debian/deepin/workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
test_build:
steps:
- link_package:
source_project: deepin:Develop:main
source_package: %{SCM_REPOSITORY_NAME}
target_project: deepin:CI

- configure_repositories:
project: deepin:CI
repositories:
- name: deepin_develop
paths:
- target_project: deepin:CI
target_repository: deepin_develop
architectures:
- x86_64
- aarch64

filters:
event: pull_request

tag_build:
steps:
- trigger_services:
project: deepin:Unstable:main
package: %{SCM_REPOSITORY_NAME}
filters:
event: tag_push

commit_build:
steps:
- trigger_services:
project: deepin:Develop:main
package: %{SCM_REPOSITORY_NAME}
filters:
event: push
1 change: 1 addition & 0 deletions debian/linglong-bin.install
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ usr/bin/ll-cli
usr/bin/llpkg
usr/lib/linglong/*
usr/lib/systemd/system-environment-generators/61-linglong
usr/lib/systemd/user-generators/linglong-user-systemd-generator
usr/lib/systemd/system/org.deepin.linglong.PackageManager.service lib/systemd/system/
usr/lib/systemd/user/linglong-session-helper.service
usr/lib/sysusers.d/linglong.conf
Expand Down
26 changes: 26 additions & 0 deletions libs/linglong/src/linglong/cli/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include "linglong/cli/cli.h"

#include "linglong/api/dbus/v1/dbus_peer.h"
#include "linglong/api/types/v1/InteractionReply.hpp"
#include "linglong/api/types/v1/InteractionRequest.hpp"
#include "linglong/api/types/v1/PackageManager1InstallParameters.hpp"
Expand Down Expand Up @@ -1032,6 +1033,7 @@ int Cli::installFromFile(const QFileInfo &fileInfo, const api::types::v1::Common
return -1;
}

updateAM();
return this->lastState == linglong::api::types::v1::State::Succeed ? 0 : -1;
}

Expand Down Expand Up @@ -1149,6 +1151,7 @@ int Cli::install()
}
loop.exec();

updateAM();
return this->lastState == linglong::api::types::v1::State::Succeed ? 0 : -1;
}

Expand Down Expand Up @@ -1258,6 +1261,7 @@ int Cli::upgrade()
}
loop.exec();

updateAM();
if (this->lastState != linglong::api::types::v1::State::Succeed) {
return -1;
}
Expand Down Expand Up @@ -1536,6 +1540,7 @@ int Cli::uninstall()
}
loop.exec();

updateAM();
return this->lastState == linglong::api::types::v1::State::Succeed ? 0 : -1;
}

Expand Down Expand Up @@ -2409,4 +2414,25 @@ Cli::ensureCache(const package::Reference &ref,

return appCache;
}

void Cli::updateAM() noexcept
{
// NOTE: make sure AM refresh the cache of desktop
if ((QSysInfo::productType() == "Deepin" || QSysInfo::productType() == "deepin")
&& this->lastState == linglong::api::types::v1::State::Succeed) {
QDBusConnection conn = QDBusConnection::systemBus();
if (!conn.isConnected()) {
qWarning() << "Failed to connect to the system bus";
}

auto peer = linglong::api::dbus::v1::DBusPeer("org.desktopspec.ApplicationUpdateNotifier1",
"/org/desktopspec/ApplicationUpdateNotifier1",
conn);
auto reply = peer.Ping();
reply.waitForFinished();
if (!reply.isValid()) {
qWarning() << "Failed to ping org.desktopspec.ApplicationUpdateNotifier1" << reply.error();
}
}
}
} // namespace linglong::cli
1 change: 1 addition & 0 deletions libs/linglong/src/linglong/cli/cli.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class Cli : public QObject
ensureCache(const package::Reference &ref,
const api::types::v1::RepositoryCacheLayersItem &appLayerItem) noexcept;
QDBusReply<QString> authorization();
void updateAM() noexcept;

private Q_SLOTS:
// maybe use in the future
Expand Down
Loading
Loading