-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlinglong.yaml
42 lines (32 loc) · 1.38 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
version: "1"
package:
id: com.xmly.deepin
name: com.xmly.deepin
version: 1.0.0.1
kind: app
description: |
signed_com.xmly.deepin_4.0.3.418deepin7_amd64.deb
base: org.deepin.base.wine/23.2.0
runtime: org.deepin.runtime.wine/23.2.1
command:
- /opt/apps/com.xmly.deepin/files/run.sh
sources:
- kind: file
url: https://winedata-dev.deepin.com/apps/com.xmly.deepin/11d2fcb/signed_com.xmly.deepin_4.0.3.418deepin7_amd64.deb
digest: 907cafa7bc5130fee85babadaba42f34c5c4eedce34724b63c049ea25cac87e8
build: |
set -x
SOURCES="linglong/sources"
dpkg-deb -x $SOURCES/signed_com.xmly.deepin_4.0.3.418deepin7_amd64.deb $SOURCES/com.xmly.deepin
# run.sh替换
FILE_PATH="$SOURCES/com.xmly.deepin/opt/apps/com.xmly.deepin/files/run.sh"
sed -i -e 's|/opt/deepin-wine8-stable|/runtime/deepin-wine8-stable|g' \
-e 's|/opt/deepin-wine6-stable|/runtime/deepin-wine6-stable|g' \
-e 's|/opt/deepinwine|/runtime/deepinwine|g' \
-e 's|/opt/deepin-box86|/runtime/deepin-box86|g' \
-e 's|BOTTLEPATH="$HOME/.deepinwine/$BOTTLENAME"|BOTTLEPATH="$HOME/.linglong/$BOTTLENAME"|g' "$FILE_PATH"
install -d $PREFIX/share
install -d $PREFIX/bin
# move files
cp -r $SOURCES/com.xmly.deepin/opt/apps/com.xmly.deepin/entries/* $PREFIX/share
cp -r $SOURCES/com.xmly.deepin/opt/apps/com.xmly.deepin/files/* $PREFIX