内置lib以解决20和23使用同一包导致的兼容性问题

This commit is contained in:
gfdgd xi 2024-05-02 20:49:30 +08:00
parent 06dac3e8fc
commit d214329625
3 changed files with 29 additions and 13 deletions

8
gxde-kernel-manager-runner.sh Executable file

@ -0,0 +1,8 @@
#!/bin/bash
set -e
programPath=$(cd $(dirname $0); pwd)
arch=$(dpkg --print-architecture)
if [[ -d "$programPath/lib/$arch" ]]; then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$programPath/lib/$arch
fi
$programPath/gxde-kernel-manager

@ -5,6 +5,6 @@ Name[zh_CN]=内核管理器
Comment=Kernel Manager
Comment[zh_CN]=
Type=Application
Exec=/opt/apps/gxde-kernel-manager/gxde-kernel-manager
Exec=bash /opt/apps/gxde-kernel-manager/gxde-kernel-manager-runner.sh
Icon=/opt/apps/gxde-kernel-manager/icon.svg
Categories=System

@ -35,24 +35,32 @@ else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
unix:!macx: LIBS += -lqtermwidget5
aptsource.path=/etc/apt/sources.list.d/
aptsource.files=$$PWD/AptSources/gxde-kernel-manager.list
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
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
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
uosdesktop.path = /opt/apps/gxde-kernel-manager/entries/applications
uosdesktop.files = $$PWD/gxde-kernel-manager.desktop
icon.path=/opt/apps/gxde-kernel-manager/
icon.files=$$PWD/icon/icon.svg
icon.path = /opt/apps/gxde-kernel-manager/
icon.files = $$PWD/icon/icon.svg
target.path=/opt/apps/gxde-kernel-manager/
targetrunner.path = /opt/apps/gxde-kernel-manager/
targetrunner.files = $$PWD/gxde-kernel-manager-runner.sh
INSTALLS+= aptsourcegpg aptsource target debiandesktop uosdesktop icon
libinclude.path = /opt/apps/gxde-kernel-manager/
libinclude.files = $$PWD/lib
target.path = /opt/apps/gxde-kernel-manager/
INSTALLS += aptsourcegpg aptsource target debiandesktop uosdesktop icon targetrunner libinclude
TRANSLATIONS += translation/gxde-kernel-manager_zh_CN.ts