-
Notifications
You must be signed in to change notification settings - Fork 46
/
linglong.yaml
executable file
·107 lines (95 loc) · 6.18 KB
/
linglong.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# SPDX-FileCopyrightText: 2023-2024 UnionTech Software Technology Co., Ltd.
#
# SPDX-License-Identifier: GPL-3.0-or-later
version: "1"
package:
id: org.deepin.manual
name: "deepin-manual"
version: 6.5.7.1
kind: app
description: |
manual for deepin os.
base: org.deepin.base/23.1.0
runtime: org.deepin.runtime.dtk/23.1.0
command:
- dman
build: |
cat /var/lib/dpkg/status|grep "^Package: " > ${PREFIX}/packages.list
bash ./install_dep linglong/sources "${PREFIX}"
# 修改webengine库的查找
find ${PREFIX} -name "Qt5WebEngineCoreConfig.cmake" -exec sed -i "s|NO_DEFAULT_PATH||g" {} +
find ${PREFIX} -name "Qt5WebEngineWidgetsConfig.cmake" -exec sed -i "s|NO_DEFAULT_PATH||g" {} +
find ${PREFIX} -name "Qt5WebChannelConfig.cmake" -exec sed -i "s|NO_DEFAULT_PATH||g" {} +
#修改服务使用玲珑启动
sed -i "s|ExecStart=/usr/bin/dman --dbus|ExecStart=/usr/bin/ll-cli run org.deepin.manual --exec \"dman --dbus\"|g" $PWD/misc/deepin-manual.service
# 获取版本号
VERSION=$(head -1 debian/changelog | awk -F'[()]' '{print $2}')
cmake -B build ${conf_args} \
-DSYSTEMD_USER_UNIT_DIR=${PREFIX}/lib/systemd/user \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="${PREFIX}" \
-DVERSION=${VERSION}
cmake --build build -j`nproc`
cmake --build build --target install >app.install 2>&1
# 拷贝webengine相关资源到应用
echo "copy webengine bin and resources into bin ..."
cp ${PREFIX}/share/qt5/resources/* ${PREFIX}/bin/
cp ${PREFIX}/lib/${TRIPLET}/qt5/libexec/* ${PREFIX}/bin/
sources:
# - kind: git
# url: https://github.com/linuxdeepin/deepin-manual
# commit: b07176cfb8b8f657d1abf1f57d2981bd64401889
# linglong:gen_deb_source sources amd64 https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2 beige main community
# 玲珑运行环境已包含dtk和Qt通用库
# linglong:gen_deb_source install libmng1, libqt5positioning5, libqt5positioning5-plugins, libqt5positioningquick5, libqt5webchannel5, libqt5webchannel5-dev, libqt5webengine5, libqt5webenginecore5, libqt5webengine-data, libqt5webenginewidgets5, libre2-10, libsass1, libsass-dev, libxslt1.1, lshw, qtpositioning5-dev, qtwebengine5-dev
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libm/libmng/libmng1_1.0.10+dfsg-3.1-deepin1_amd64.deb
digest: 256423c8e3c4afcbdf72973db84b1e919187b65955c685ee16f9a5635d436943
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/q/qtlocation-opensource-src/libqt5positioning5_5.15.8-2deepin1+rb1_amd64.deb
digest: 4aeabf9312cb326115b6824a7b856c0ad93ed63a0a27f7437e613b9eb26e65cf
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/q/qtlocation-opensource-src/libqt5positioning5-plugins_5.15.8-2deepin1+rb1_amd64.deb
digest: 7319f6fe88bcaa6f3a84eb9aeee4b96fbc0e55e2f7cfc3db0a56191b7b3f1307
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/q/qtlocation-opensource-src/libqt5positioningquick5_5.15.8-2deepin1+rb1_amd64.deb
digest: 86581004e108259c00dccc804ed92f566e4b561c40741ec57920608eba8f2d1d
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/q/qtwebchannel-opensource-src/libqt5webchannel5_5.15.8-1+dde_amd64.deb
digest: cde95e06363ff244cb0d2f988a8d0d3f041d48cc7c03d74826b0ac096d824636
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/q/qtwebchannel-opensource-src/libqt5webchannel5-dev_5.15.8-1+dde_amd64.deb
digest: cee1b0d8dfaef388fc9c70b0acacfe4daf164cf101a645334d37e2cbf14179a6
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/q/qtwebengine-opensource-src/libqt5webengine5_5.15.15+dfsg-3deepin2_amd64.deb
digest: 348e4e581f311a9c1ab73afb9724b5fb6d1d22c7bcd2de3ad7da01a58417cba2
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/q/qtwebengine-opensource-src/libqt5webenginecore5_5.15.15+dfsg-3deepin2_amd64.deb
digest: fb20829569b7066c9eb65a35421bcf46d6327b7054898250e9c45772d4de2289
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/q/qtwebengine-opensource-src/libqt5webengine-data_5.15.15+dfsg-3deepin2_all.deb
digest: 014ac337ba116a54894b95be55bd60b6fab0fc3bcfa0efc99074a15858f6237c
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/q/qtwebengine-opensource-src/libqt5webenginewidgets5_5.15.15+dfsg-3deepin2_amd64.deb
digest: 9055c0758a3d50f7cf32773b8509857d4573ffc9f4ae7f86ac453d8a90d1a6f0
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/r/re2/libre2-10_20230301-3_amd64.deb
digest: 68265eb4da32e0a47b9918ac4185aa842f8eb9f960e416b9cbf767c8ba5ba6f7
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libs/libsass/libsass1_3.6.5+20220909-3_amd64.deb
digest: e2d0b9145ec4567752ab5af210cf47e3b280a2892061b1fdd2c12254540b3d3c
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libs/libsass/libsass-dev_3.6.5+20220909-3_amd64.deb
digest: 799706a36b898ae00c8e2e73baf90c96918efbfe9219c6f1a009d1a5e7cb74a6
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/libx/libxslt/libxslt1.1_1.1.34-4_amd64.deb
digest: 57b60e3910615c73c78c090eb6f5a3d69c13638e2f212fe651a610e6b6d72ced
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/l/lshw/lshw_02.19.git.2021.06.19.996aaad9c7-2_amd64.deb
digest: 3b773a5d680074868c46ef1a8712b98b8614a2a1749430946061db3a8a21c073
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/q/qtlocation-opensource-src/qtpositioning5-dev_5.15.8-2deepin1+rb1_amd64.deb
digest: 4bfacd6d2d8f45d456d2cd7d65c631a6d1eb81f3a90210fcbecfd5362e8b50b3
- kind: file
url: https://ci.deepin.com/repo/deepin/deepin-community/backup/rc2/pool/main/q/qtwebengine-opensource-src/qtwebengine5-dev_5.15.15+dfsg-3deepin2_amd64.deb
digest: a991e9f035389d4e2163280b643a0c3d024ff2dbcdfafa34fe534e60fe3d5bbb