feat: 支持 dpkg-buildpackage 打包

支持 dpkg-buildpackage 打包

Log: 支持 dpkg-buildpackage 打包;整理项目目录结构
This commit is contained in:
zty199
2022-11-20 17:49:00 +08:00
parent 1aed5532a3
commit 1b3d161f4d
26 changed files with 192 additions and 723 deletions

9
debian/changelog vendored Normal file
View File

@@ -0,0 +1,9 @@
spark-webapp-runtime (1.6.5-1) stable; urgency=medium
* Support dpkg-buildpackage
* Support open external links in default browser
* Add single instance limitation for apps using same title
* Fix wrong Accept-Language http request header
-- shenmo <shenmo@spark-app.store> Sun, 20 Nov 2022 17:00:00 +0800

1
debian/compat vendored Normal file
View File

@@ -0,0 +1 @@
11

36
debian/control vendored Normal file
View File

@@ -0,0 +1,36 @@
Source: spark-webapp-runtime
Maintainer: shenmo <shenmo@spark-app.store>
Section: utils
Priority: optional
Build-Depends:
debhelper (>= 9),
pkg-config,
qtchooser (>= 55-gc9562a1-1~),
libqt5core5a,
libqt5gui5,
libqt5widgets5,
libqt5concurrent5,
libqt5svg5-dev,
qtwebengine5-dev,
qttools5-private-dev,
libdtkcore-dev (>= 5.0),
libdtkgui-dev (>= 5.0),
libdtkwidget-dev (>= 5.0)
Standards-Version: 1.0
Homepage: https://gitee.com/deepin-community-store/spark-web-app-runtime
Package: spark-webapp-runtime
Architecture: any
Depends:${shlibs:Depends}, ${misc:Depends},
libqt5core5a,
libqt5gui5,
libqt5widgets5,
libqt5concurrent5,
libqt5svg5,
libqt5webenginewidgets5,
libdtkcore5,
libdtkgui5,
libdtkwidget5
Description: Spark WebApp Runtime
A simple solution for packaging web apps.

22
debian/copyright vendored Normal file
View File

@@ -0,0 +1,22 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: spark-webapp-runtime
Source: https://gitee.com/deepin-community-store/spark-web-app-runtime
Files: *
Copyright: The Spark Project Developers
License: GPL-3+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General

39
debian/rules vendored Executable file
View File

@@ -0,0 +1,39 @@
#!/usr/bin/make -f
export QT_SELECT=5
include /usr/share/dpkg/default.mk
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DH_AUTO_ARGS = --parallel --buildsystem=qmake
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
%:
dh $@ --parallel
override_dh_auto_clean:
rm -rf $(CURDIR)/build
override_dh_auto_configure:
mkdir -p $(CURDIR)/build
dh_auto_configure MAKEFLAGS=-j$(JOBS) -- spark-webapp-runtime.pro \
-spec linux-g++ CONFIG+=qtquickcompiler \
-o $(CURDIR)/build/
override_dh_auto_build:
make -C $(CURDIR)/build -j$(JOBS)
override_dh_auto_install:
make -C $(CURDIR)/build install \
INSTALL_ROOT=$(CURDIR)/debian/spark-webapp-runtime
# Ignore the dpkg-shlibdeps: warning (it uses none of the library's symbols)
# Qt Mutidedia lib will ref to network libraray.
override_dh_shlibdeps:
dh_shlibdeps --dpkg-shlibdeps-params=--warnings=0

1
debian/source/format vendored Normal file
View File

@@ -0,0 +1 @@
3.0 (native)

12
debian/spark-webapp-runtime.postinst vendored Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
case "$1" in
configure)
# Create symbol links for binary files
ln -s -f /opt/durapps/spark-webapp-runtime/bin/spark-webapp-runtime /usr/bin/spark-webapp-runtime
ln -s -f /opt/durapps/spark-webapp-runtime/share/spark-webapp-runtime /usr/share/spark-webapp-runtime
;;
*)
;;
esac

7
debian/spark-webapp-runtime.prerm vendored Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [ "$1" = "remove" -o "$1" = "purge" ] ; then
# Remove residual symbol links
rm -f /usr/bin/spark-webapp-runtime
rm -rf /usr/share/spark-webapp-runtime
fi