Compare commits
2 Commits
bed4c66530
...
32f983e2cc
| Author | SHA1 | Date | |
|---|---|---|---|
| 32f983e2cc | |||
| e0b30c6af7 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -72,3 +72,5 @@ CMakeLists.txt.user*
|
||||
|
||||
# Visual Studio Code
|
||||
.vscode
|
||||
|
||||
build/
|
||||
|
||||
88
CMakeLists.txt
Normal file
88
CMakeLists.txt
Normal file
@ -0,0 +1,88 @@
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
project(gxde-kernel-manager VERSION 1.0 LANGUAGES C CXX)
|
||||
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
# Set up AUTOMOC and some sensible defaults for runtime execution
|
||||
# When using Qt 6.3, you can replace the code block below with
|
||||
# qt_standard_project_setup()
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
include(GNUInstallDirs)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
|
||||
find_package(QT NAMES Qt6 REQUIRED COMPONENTS Core)
|
||||
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui Network)
|
||||
find_package(Qt${QT_VERSION_MAJOR} OPTIONAL_COMPONENTS Widgets)
|
||||
|
||||
qt_add_executable(gxde-kernel-manager WIN32 MACOSX_BUNDLE
|
||||
aboutwindow.cpp aboutwindow.h aboutwindow.ui
|
||||
aptpkginfo.cpp aptpkginfo.h
|
||||
kernelinformation.cpp kernelinformation.h
|
||||
kernelinformationdialog.cpp kernelinformationdialog.h kernelinformationdialog.ui
|
||||
kernelinstaller.cpp kernelinstaller.h kernelinstaller.ui
|
||||
main.cpp
|
||||
mainwindow.cpp mainwindow.h mainwindow.ui
|
||||
programinfo.cpp programinfo.h
|
||||
)
|
||||
target_link_libraries(gxde-kernel-manager PRIVATE
|
||||
Qt::Core
|
||||
Qt::Gui
|
||||
Qt::Network
|
||||
)
|
||||
|
||||
|
||||
# Resources:
|
||||
set(Resource_resource_files
|
||||
"Donate/Alipay.jpg"
|
||||
"Donate/QQ.png"
|
||||
"Donate/Wechat.png"
|
||||
"Donate/advertisement0.jpg"
|
||||
"data/new/en_US.html"
|
||||
"data/new/zh_CN.html"
|
||||
"data/version"
|
||||
"icon/dialog-apply.svg"
|
||||
"icon/dialog-cancel.svg"
|
||||
"icon/dialog-error.svg"
|
||||
"icon/dialog-information.svg"
|
||||
"icon/dialog-ok.svg"
|
||||
"icon/dialog-question.svg"
|
||||
"icon/dialog-warning.svg"
|
||||
"icon/gxde-kernel-manager.svg"
|
||||
"icon/icon1.png"
|
||||
"icon/tux.png"
|
||||
"shell/kernel-installer-reconfigure-template.sh"
|
||||
"shell/kernel-installer-remove-template.sh"
|
||||
"shell/kernel-installer-root-loader-template.sh"
|
||||
"shell/kernel-installer-template.sh"
|
||||
"shell/kernel-installer-update-template.sh"
|
||||
"shell/kernel-installer-upgrade-template.sh"
|
||||
"translation/gxde-kernel-manager_zh_CN.qm"
|
||||
)
|
||||
|
||||
qt_add_resources(gxde-kernel-manager "Resource"
|
||||
PREFIX
|
||||
"/"
|
||||
FILES
|
||||
${Resource_resource_files}
|
||||
)
|
||||
|
||||
if((QT_VERSION_MAJOR GREATER 4))
|
||||
target_link_libraries(gxde-kernel-manager PRIVATE
|
||||
Qt::Widgets
|
||||
)
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT MACOS)
|
||||
target_link_libraries(gxde-kernel-manager PRIVATE
|
||||
qtermwidget6
|
||||
)
|
||||
endif()
|
||||
|
||||
install(TARGETS gxde-kernel-manager
|
||||
BUNDLE DESTINATION .
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
|
||||
# Consider using qt_generate_deploy_app_script() for app deployment if
|
||||
# the project can use Qt 6.3. In that case rerun qmake2cmake with
|
||||
# --min-qt-version=6.3.
|
||||
@ -20,14 +20,13 @@ AboutWindow::AboutWindow(QWidget *parent) :
|
||||
info += tr("Built Time: ") + QString(__DATE__) + " " + __TIME__ + "\n";
|
||||
info += tr("QQ Group: 881201853") + "\n";
|
||||
info += "</pre>";
|
||||
info += "<hr/>";
|
||||
/*info += "<hr/>";
|
||||
info += ProgramInfo::updateInfo();
|
||||
info += "<hr/>";
|
||||
info += "<hr/>";*/
|
||||
info += "<h3>" + tr("Website") + "</h3>";
|
||||
info += "<p>Gitee: <a href='https://gitee.com/GXDE-OS/gxde-kernel-manager'>https://gitee.com/GXDE-OS/gxde-kernel-manager</a></p>";
|
||||
info += "<p>Github: <a href='https://github.com/GXDE-OS/gxde-kernel-manager'>https://github.com/GXDE-OS/gxde-kernel-manager</a></p>";
|
||||
info += "<p>Sourceforge: <a href='https://sourceforge.net/projects/gxde-kernel-manager/'>https://sourceforge.net/projects/gxde-kernel-manager/</a></p>";
|
||||
info += "<p>GXDE Homepage: <a href='https://www.gxde.org'>https://www.gxde.org</a></p>";
|
||||
info += "<p>GXDE Homepage: <a href='https://www.gxde.top'>https://www.gxde.top</a></p>";
|
||||
info += "<hr/>\n";
|
||||
info += "<h1>©2023~" + QDateTime::currentDateTime().toString("yyyy") + " gfdgd xi</h1>\n";
|
||||
ui->textBrowser->setHtml(info);
|
||||
|
||||
@ -169,7 +169,7 @@ void AptPkgInfo::SetPkgName(QString pkgName)
|
||||
|
||||
QString AptPkgInfo::GetPkgInfo(QString pkgName) const
|
||||
{
|
||||
if(pkgName == NULL) {
|
||||
if(pkgName == "") {
|
||||
pkgName = this->pkgName;
|
||||
}
|
||||
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
|
||||
|
||||
@ -1 +1 @@
|
||||
1.1.1
|
||||
1.3.0
|
||||
|
||||
19
debian/changelog
vendored
19
debian/changelog
vendored
@ -1,17 +1,6 @@
|
||||
gxde-kernel-manager (1.2.2) UNRELEASED; urgency=medium
|
||||
gxde-kernel-manager (1.3.0) UNRELEASED; urgency=medium
|
||||
|
||||
* ※1、支持从 apt 源读取内核数据并显示安装
|
||||
* ※2、支持只显示与当前系统相同架构的内核
|
||||
* ※3、下载/更新内核时支持调用 aptss 提升下载速度
|
||||
* ※4、新增卸载所有内核时的窗口警告
|
||||
* 5、优化表格显示效果
|
||||
* 6、支持显示内核描述和版本
|
||||
* 使用 qt6 进行构建
|
||||
|
||||
|
||||
* ※1. Support getting kernel data from apt database.
|
||||
* ※2. Support showing only kernels that are the same as the local system architecture.
|
||||
* ※3. Support using aptss to download packages faster.
|
||||
* ※4. Show a warning message box when removing all kernels.
|
||||
* 5. Optimize the effect of the kernels table.
|
||||
* 6. Support showing kernel descriptions and versions.
|
||||
|
||||
-- gfdgd_xi <3025613752@qq.com> Sun, 13 Oct 2024 10:56:49 +0800
|
||||
-- gfdgd_xi <3025613752@qq.com> Fri, 29 Aug 2025 12:35:50 +0800
|
||||
|
||||
11
debian/control
vendored
11
debian/control
vendored
@ -5,11 +5,12 @@ Maintainer: gfdgd_xi <3025613752@qq.com>
|
||||
Rules-Requires-Root: no
|
||||
Build-Depends:
|
||||
debhelper-compat (= 10),
|
||||
qtbase5-dev,
|
||||
qtbase5-dev-tools,
|
||||
qtbase5-private-dev,
|
||||
libqtermwidget5-1-dev | libqtermwidget5-0-dev,
|
||||
qttools5-dev-tools
|
||||
qt6-base-dev,
|
||||
qt6-base-dev-tools,
|
||||
qt6-base-private-dev,
|
||||
libqtermwidget-dev,
|
||||
qt6-tools-dev-tools,
|
||||
qt6-5compat-dev
|
||||
Standards-Version: 4.6.2
|
||||
Homepage: https://gitee.com/GXDE-OS/gxde-kernel-manager
|
||||
Vcs-Git: https://gitee.com/GXDE-OS/gxde-kernel-manager.git
|
||||
|
||||
@ -1,82 +0,0 @@
|
||||
QT += core gui network
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
|
||||
CONFIG += c++17
|
||||
|
||||
# You can make your code fail to compile if it uses deprecated APIs.
|
||||
# In order to do so, uncomment the following line.
|
||||
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||
|
||||
SOURCES += \
|
||||
aboutwindow.cpp \
|
||||
aptpkginfo.cpp \
|
||||
kernelinformation.cpp \
|
||||
kernelinformationdialog.cpp \
|
||||
kernelinstaller.cpp \
|
||||
main.cpp \
|
||||
mainwindow.cpp \
|
||||
programinfo.cpp
|
||||
|
||||
HEADERS += \
|
||||
aboutwindow.h \
|
||||
aptpkginfo.h \
|
||||
kernelinformation.h \
|
||||
kernelinformationdialog.h \
|
||||
kernelinstaller.h \
|
||||
mainwindow.h \
|
||||
programinfo.h
|
||||
|
||||
FORMS += \
|
||||
aboutwindow.ui \
|
||||
kernelinformationdialog.ui \
|
||||
kernelinstaller.ui \
|
||||
mainwindow.ui
|
||||
|
||||
# 更新翻译
|
||||
system(lrelease translation/gxde-kernel-manager_zh_CN.ts translation/gxde-kernel-manager_zh_CN.qm)
|
||||
|
||||
# Default rules for deployment.
|
||||
qnx: target.path = /tmp/$${TARGET}/bin
|
||||
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||
!isEmpty(target.path): INSTALLS += target
|
||||
unix:!macx: LIBS += -lqtermwidget5
|
||||
|
||||
# 使用 GXDE 系统源里含有的内核
|
||||
#aptsource.path = /etc/apt/sources.list.d/
|
||||
#aptsource.files = $$PWD/AptSources/gxde-kernel-manager.list
|
||||
|
||||
aptsourcegpg.path = /etc/apt/trusted.gpg.d/
|
||||
aptsourcegpg.files = $$PWD/AptSources/gxde-kernel-manager.gpg
|
||||
|
||||
debiandesktop.path = /usr/share/applications/
|
||||
debiandesktop.files = $$PWD/gxde-kernel-manager.desktop
|
||||
|
||||
#uosdesktop.path = /opt/apps/gxde-kernel-manager/entries/applications
|
||||
#uosdesktop.files = $$PWD/gxde-kernel-manager.desktop
|
||||
|
||||
icon.path = /usr/share/icons/
|
||||
icon.files = $$PWD/icon/gxde-kernel-manager.svg
|
||||
#icon.path = /opt/apps/gxde-kernel-manager/
|
||||
#icon.files = $$PWD/icon/icon.svg
|
||||
|
||||
# GXDE 下不需要该脚本
|
||||
#targetrunner.path = /opt/apps/gxde-kernel-manager/
|
||||
#targetrunner.files = $$PWD/gxde-kernel-manager-runner.sh
|
||||
|
||||
#libinclude.path = /opt/apps/gxde-kernel-manager/
|
||||
#libinclude.files = $$PWD/lib
|
||||
|
||||
#target.path = /opt/apps/gxde-kernel-manager/
|
||||
target.path = /usr/bin
|
||||
|
||||
sysbro.path = /usr/share/GXDE/gxde-system-assistant/tool-extensions
|
||||
sysbro.files = $$PWD/gxde-kernel-manager.desktop
|
||||
|
||||
#INSTALLS += aptsourcegpg aptsource target debiandesktop uosdesktop icon targetrunner
|
||||
INSTALLS += target icon sysbro
|
||||
|
||||
TRANSLATIONS += translation/gxde-kernel-manager_zh_CN.ts
|
||||
|
||||
RESOURCES += \
|
||||
Resource.qrc
|
||||
@ -3,7 +3,8 @@
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
#include <qtermwidget5/qtermwidget.h>
|
||||
//#include <qtermwidget5/qtermwidget.h>
|
||||
#include <qtermwidget6/qtermwidget.h>
|
||||
|
||||
namespace Ui {
|
||||
class KernelInstaller;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user