mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-03-25 14:59:44 +08:00
update:添加构建deb脚本与debian文件
This commit is contained in:
16
debian/control
vendored
16
debian/control
vendored
@@ -5,14 +5,14 @@ Priority: optional
|
||||
Build-Depends:
|
||||
debhelper (>= 9),
|
||||
pkg-config,
|
||||
qtchooser (>= 55-gc9562a1-1~) | qt5-default,
|
||||
qtbase5-dev | qtbase6-dev,
|
||||
qtchooser (>= 55-gc9562a1-1~) | qt5-default | qt6-base-dev,
|
||||
qtbase5-dev | qt6-base-dev,
|
||||
libqt5svg5-dev | libqt6svg6-dev,
|
||||
qttools5-dev-tools | qt6-tools-dev,
|
||||
qtwebengine5-dev | qt6-webengine-dev,
|
||||
libdtkcore-dev (>= 5.0),
|
||||
libdtkgui-dev (>= 5.0),
|
||||
libdtkwidget-dev (>= 5.0)
|
||||
libdtkcore-dev (>= 5.0) | libdtk6core-dev (>= 6.0),
|
||||
libdtkgui-dev (>= 5.0) | libdtk6gui-dev (>= 6.0),
|
||||
libdtkwidget-dev (>= 5.0) | libdtk6widget-dev (>= 6.0)
|
||||
Standards-Version: 4.1.7
|
||||
Homepage: https://www.spark-app.store/
|
||||
|
||||
@@ -20,6 +20,9 @@ Package: spark-store
|
||||
Architecture: any
|
||||
Provides: spark-store-console-in-container
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends},
|
||||
libdtkcore5 (>= 5.0) | libdtk6core (>= 6.0),
|
||||
libdtkgui5 (>= 5.0) | libdtk6gui (>= 6.0),
|
||||
libdtkwidget5 (>= 5.0) | libdtk6widget (>= 6.0),
|
||||
dde-qt5integration | dde-qt6integration,
|
||||
curl,
|
||||
openssl,
|
||||
@@ -28,9 +31,10 @@ Depends: ${shlibs:Depends}, ${misc:Depends},
|
||||
zenity,
|
||||
policykit-1 | pkexec,
|
||||
libnotify-bin,
|
||||
qtwayland5,
|
||||
qtwayland5 | qt6-wayland,
|
||||
desktop-file-utils,
|
||||
dpkg-dev,
|
||||
lsb-release,
|
||||
Description: Spark Store
|
||||
A community powered app store, based on DTK.
|
||||
Supports both Qt5 and Qt6 versions.
|
||||
|
||||
1
debian/debhelper-build-stamp
vendored
Normal file
1
debian/debhelper-build-stamp
vendored
Normal file
@@ -0,0 +1 @@
|
||||
spark-store
|
||||
20
debian/rules
vendored
20
debian/rules
vendored
@@ -1,6 +1,18 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
export QT_SELECT = qt5
|
||||
# Determine Qt version based on QT_VERSION environment variable
|
||||
# Default to Qt5 if not specified
|
||||
# Usage: QT_VERSION=qt6 dpkg-buildpackage -us -uc -b
|
||||
QT_VERSION ?= qt5
|
||||
|
||||
ifeq ($(QT_VERSION),qt6)
|
||||
export QT_SELECT = qt6
|
||||
QMAKE_CMD = qmake6
|
||||
else
|
||||
export QT_SELECT = qt5
|
||||
QMAKE_CMD = qmake
|
||||
endif
|
||||
|
||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
include /usr/share/dpkg/default.mk
|
||||
|
||||
@@ -22,7 +34,7 @@ override_dh_auto_clean:
|
||||
override_dh_auto_configure:
|
||||
mkdir -p $(CURDIR)/build-$(DEB_HOST_MULTIARCH)
|
||||
|
||||
qmake BUILD_VERSION=$(DEB_VERSION_UPSTREAM) spark-store-project.pro \
|
||||
$(QMAKE_CMD) BUILD_VERSION=$(DEB_VERSION_UPSTREAM) spark-store-project.pro \
|
||||
-spec linux-g++ CONFIG+=force_debug_info \
|
||||
-o $(CURDIR)/build-$(DEB_HOST_MULTIARCH)/
|
||||
|
||||
@@ -34,8 +46,8 @@ override_dh_auto_install:
|
||||
INSTALL_ROOT=$(CURDIR)/debian/spark-store
|
||||
|
||||
# Ignore the dpkg-shlibdeps: warning (it uses none of the library's symbols)
|
||||
# Qt Mutidedia lib will ref to network libraray.
|
||||
# Qt Multimedia lib will ref to network library.
|
||||
override_dh_shlibdeps:
|
||||
dh_shlibdeps --dpkg-shlibdeps-params=--warnings=0 --exclude=opt/durapps/spark-store/bin/ss-feedback/
|
||||
override_dh_strip:
|
||||
dh_strip --exclude=opt/durapps/spark-store/bin/ss-feedback/
|
||||
dh_strip --exclude=opt/durapps/spark-store/bin/ss-feedback/
|
||||
|
||||
Reference in New Issue
Block a user