Skip to content

Commit

Permalink
Merge pull request #356 from jeffshuai/release/eagle
Browse files Browse the repository at this point in the history
feat: base master  merge into release/eagle
  • Loading branch information
max-lvs authored Jul 15, 2024
2 parents 64cc343 + ae15170 commit 9ae5209
Show file tree
Hide file tree
Showing 219 changed files with 5,690 additions and 1,767 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/backup-to-gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ concurrency:
jobs:
backup-to-gitlabwh:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitlabwh.yml@master
secrets:
BRIDGETOKEN: ${{ secrets.BRIDGETOKEN }}
secrets: inherit

backup-to-gitee:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitee.yml@master
secrets:
GITEE_SYNC_TOKEN: ${{ secrets.GITEE_SYNC_TOKEN }}
secrets: inherit
17 changes: 0 additions & 17 deletions .github/workflows/call-build-deb.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .github/workflows/call-chatOps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ on:
jobs:
chatopt:
uses: linuxdeepin/.github/.github/workflows/chatOps.yml@master
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/cppcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: export
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
Expand Down
43 changes: 43 additions & 0 deletions .obs/workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
test_build:
steps:
- link_package:
source_project: deepin:Develop:dde
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

- name: debian
paths:
- target_project: deepin:CI
target_repository: debian_sid
architectures:
- x86_64

filters:
event: pull_request

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

commit_build:
steps:
- trigger_services:
project: deepin:Develop:dde
package: %{SCM_REPOSITORY_NAME}
filters:
event: push
14 changes: 12 additions & 2 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Upstream-Contact: UnionTech Software Technology Co., Ltd. <>
Source: https://github.com/linuxdeepin/deepin-system-monitor

# ci
Files: .github/*
Files: .github/* .obs/workflows.yml
Copyright: None
License: CC0-1.0

Expand All @@ -18,6 +18,11 @@ Files: *.toml *.json *conf *.yaml *.sh *.xml *.pc.in
Copyright: None
License: CC0-1.0

# assets
Files: assets/*
Copyright: UnionTech Software Technology Co., Ltd.
License: GPL-3.0-or-later

# debian
Files: debian/*
Copyright: None
Expand All @@ -44,7 +49,7 @@ Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later

# translations
Files: deepin-system-monitor-main/translations/* deepin-system-monitor-plugin/translations/* deepin-system-monitor-plugin-popup/translations/*
Files: deepin-system-monitor-main/translations/* deepin-system-monitor-plugin/translations/* deepin-system-monitor-plugin-popup/translations/* deepin-system-monitor-system-server/translations/*
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later

Expand Down Expand Up @@ -148,6 +153,11 @@ Files: deepin-system-monitor-plugin-popup/system/*
Copyright: UnionTech Software Technology Co., Ltd.
License: GPL-3.0-or-later

# deepin-system-monitor-system-server
Files: deepin-system-monitor-system-server/misc/*
Copyright: UnionTech Software Technology Co., Ltd.
License: GPL-3.0-or-later

# *.service
Files: *.service
Copyright: UnionTech Software Technology Co., Ltd.
Expand Down
17 changes: 12 additions & 5 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,43 @@ host = https://www.transifex.com
minimum_perc = 80
mode = developer

[deepin-system-monitor.deepin-system-monitor]
[o:linuxdeepin:p:deepin-system-monitor:r:deepin-system-monitor]
file_filter = deepin-system-monitor-main/translations/deepin-system-monitor_<lang>.ts
source_file = deepin-system-monitor-main/translations/deepin-system-monitor.ts
source_lang = en_US
type = QT

[deepin-system-monitor.deepin-system-monitor-desktop]
[o:linuxdeepin:p:deepin-system-monitor:r:deepin-system-monitor-desktop]
file_filter = deepin-system-monitor-main/translations/desktop/desktop_<lang>.ts
source_file = deepin-system-monitor-main/translations/desktop/desktop.ts
source_lang = en_US
type = QT

[deepin-system-monitor.deepin-system-monitor-policy]
[o:linuxdeepin:p:deepin-system-monitor:r:deepin-system-monitor-policy]
file_filter = deepin-system-monitor-main/translations/policy/policy_<lang>.ts
source_file = deepin-system-monitor-main/translations/policy/policy.ts
preTranlate_file = deepin-system-monitor-main/translations/policy/policy.policy
source_lang = en_US
type = QT

#popup
[deepin-system-monitor.deepin-system-monitor-plugin-popup]
[o:linuxdeepin:p:deepin-system-monitor:r:deepin-system-monitor-plugin-popup]
file_filter = deepin-system-monitor-plugin-popup/translations/deepin-system-monitor-plugin-popup_<lang>.ts
source_file = deepin-system-monitor-plugin-popup/translations/deepin-system-monitor-plugin-popup.ts
source_lang = en_US
type = QT

#plugin
[deepin-system-monitor.deepin-system-monitor-plugin]
[o:linuxdeepin:p:deepin-system-monitor:r:deepin-system-monitor-plugin]
file_filter = deepin-system-monitor-plugin/translations/deepin-system-monitor-plugin_<lang>.ts
source_file = deepin-system-monitor-plugin/translations/deepin-system-monitor-plugin.ts
source_lang = en_US
type = QT

#system-server
[o:linuxdeepin:p:deepin-system-monitor:r:deepin-system-monitor-system-server-policy]
file_filter = deepin-system-monitor-system-server/translations/policy/policy_<lang>.ts
source_file = deepin-system-monitor-system-server/translations/policy/policy.ts
preTranlate_file = deepin-system-monitor-system-server/misc/com.deepin.deepin-system-monitor-system-server.policy
source_lang = en_US
type = QT
2 changes: 1 addition & 1 deletion .tx/deepin.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[transifex]
branch = m20
branch = m20
32 changes: 32 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,41 @@ ADD_SUBDIRECTORY(deepin-system-monitor-plugin-popup)
ADD_SUBDIRECTORY(deepin-system-monitor-daemon)
#系统监视器提示
ADD_SUBDIRECTORY(deepin-system-monitor-server)
#系统监视器后端提权处理服务
ADD_SUBDIRECTORY(deepin-system-monitor-system-server)

#单元测试
if(DOTEST)
ADD_SUBDIRECTORY(tests)
endif()

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/config.h)

#安装日志收集工具配置
set(journel_system_monitor_main assets/logconfig/org.deepin.system-monitor.json)
install(FILES ${journel_system_monitor_main} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/deepin-log-viewer/deepin-log.conf.d/)

#安装DConfig配置
set(APPID org.deepin.system-monitor)
set(system_monitor_main assets/configs/org.deepin.system-monitor.json)
set(system_monitor_daemon assets/configs/org.deepin.system-monitor.daemon.json)
set(system_monitor_plugin assets/configs/org.deepin.system-monitor.plugin.json)
set(system_monitor_plugin_popup assets/configs/org.deepin.system-monitor.plugin.popup.json)
set(system_monitor_plugin_server assets/configs/org.deepin.system-monitor.server.json)

if (DEFINED DSG_DATA_DIR)
dconfig_meta_files(APPID ${APPID} FILES ${system_monitor_main})
dconfig_meta_files(APPID ${APPID} FILES ${system_monitor_daemon})
dconfig_meta_files(APPID ${APPID} FILES ${system_monitor_plugin})
dconfig_meta_files(APPID ${APPID} FILES ${system_monitor_plugin_popup})
dconfig_meta_files(APPID ${APPID} FILES ${system_monitor_plugin_server})
message("-- DConfig is supported by DTK")
else()
install(FILES ${system_monitor_main} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/dsg/configs/${APPID}/)
install(FILES ${system_monitor_daemon} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/dsg/configs/${APPID}/)
install(FILES ${system_monitor_plugin} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/dsg/configs/${APPID}/)
install(FILES ${system_monitor_plugin_popup} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/dsg/configs/${APPID}/)
install(FILES ${system_monitor_plugin_server} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/dsg/configs/${APPID}/)

message("-- DConfig is not supported by DTK")
endif()
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Thanks a lot for [Lily Rivers](https://github.com/VioletDarkKitty/system-monito

## Dependencies

* sudo apt install libpcap-dev libncurses5-dev libprocps-dev libxtst-dev libxcb-util0-dev
* sudo apt install libpcap-dev libncurses5-dev libxtst-dev libxcb-util0-dev

## Installation

Expand Down
2 changes: 1 addition & 1 deletion README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Thanks a lot for [Lily Rivers](https://github.com/VioletDarkKitty/system-monito

## 依赖关系

* sudo apt install libpcap-dev libncurses5-dev libprocps-dev libxtst-dev libxcb-util0-dev
* sudo apt install libpcap-dev libncurses5-dev libxtst-dev libxcb-util0-dev

## 安装

Expand Down
19 changes: 19 additions & 0 deletions assets/configs/org.deepin.system-monitor.daemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"magic": "dsg.config.meta",
"version": "1.0",
"contents": {
"log_rules": {
"value": "*.debug=false;*.info=false;*.warning=true",
"serial": 0,
"flags": [
"global"
],
"name": "log rules",
"name[zh_CN]": "日志规则",
"description": "log rules",
"description[zh_CN]": "日志规则",
"permissions": "readwrite",
"visibility": "public"
}
}
}
19 changes: 19 additions & 0 deletions assets/configs/org.deepin.system-monitor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"magic": "dsg.config.meta",
"version": "1.0",
"contents": {
"log_rules": {
"value": "*.debug=false;*.info=false;*.warning=true",
"serial": 0,
"flags": [
"global"
],
"name": "log rules",
"name[zh_CN]": "日志规则",
"description": "log rules",
"description[zh_CN]": "日志规则",
"permissions": "readwrite",
"visibility": "public"
}
}
}
19 changes: 19 additions & 0 deletions assets/configs/org.deepin.system-monitor.plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"magic": "dsg.config.meta",
"version": "1.0",
"contents": {
"log_rules": {
"value": "*.debug=false;*.info=false;*.warning=true",
"serial": 0,
"flags": [
"global"
],
"name": "log rules",
"name[zh_CN]": "日志规则",
"description": "log rules",
"description[zh_CN]": "日志规则",
"permissions": "readwrite",
"visibility": "public"
}
}
}
19 changes: 19 additions & 0 deletions assets/configs/org.deepin.system-monitor.plugin.popup.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"magic": "dsg.config.meta",
"version": "1.0",
"contents": {
"log_rules": {
"value": "*.debug=false;*.info=false;*.warning=true",
"serial": 0,
"flags": [
"global"
],
"name": "log rules",
"name[zh_CN]": "日志规则",
"description": "log rules",
"description[zh_CN]": "日志规则",
"permissions": "readwrite",
"visibility": "public"
}
}
}
19 changes: 19 additions & 0 deletions assets/configs/org.deepin.system-monitor.server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"magic": "dsg.config.meta",
"version": "1.0",
"contents": {
"log_rules": {
"value": "*.debug=false;*.info=false;*.warning=true",
"serial": 0,
"flags": [
"global"
],
"name": "log rules",
"name[zh_CN]": "日志规则",
"description": "log rules",
"description[zh_CN]": "日志规则",
"permissions": "readwrite",
"visibility": "public"
}
}
}
29 changes: 29 additions & 0 deletions assets/logconfig/org.deepin.system-monitor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "deepin-system-monitor",
"group": "",
"submodules": [
{
"name": "deepin-system-monitor",
"filter": "",
"exec": "/usr/bin/deepin-system-monitor",
"logType": "journal",
"logPath": ""
},
{
"name": "deepin-system-monitor-plugin-popup",
"filter": "",
"exec": "/usr/bin/deepin-system-monitor-plugin-popup",
"logType": "journal",
"logPath": ""
},
{
"name": "deepin-system-monitor-server",
"filter": "",
"exec": "/usr/bin/deepin-system-monitor-server",
"logType": "journal",
"logPath": ""
}
],
"visible": true,
"version": "V1.0"
}
Loading

0 comments on commit 9ae5209

Please sign in to comment.