forked from flathub/com.visualstudio.code
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.commandline.waveterm.yaml
108 lines (105 loc) · 4.37 KB
/
dev.commandline.waveterm.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
108
app-id: dev.commandline.waveterm
runtime: org.freedesktop.Sdk
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
command: waveterm
tags: [proprietary]
separate-locales: false
finish-args:
- --require-version=0.10.3
- --share=network
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --socket=ssh-auth
- --device=all
- --allow=devel
- --filesystem=host
- --env=LD_LIBRARY_PATH=/app/lib
# required to fix cursor scaling on wayland
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
- --system-talk-name=org.freedesktop.login1
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.secrets
- --talk-name=org.freedesktop.Flatpak
- --talk-name=com.canonical.AppMenu.Registrar
- --talk-name=com.canonical.AppMenu.Registrar.*
cleanup:
- /include
- /lib/pkgconfig
- /share/gtk-doc
- '*.la'
modules:
- shared-modules/libusb/libusb.json
- name: waveterm
buildsystem: simple
build-commands:
- install -D code.sh /app/bin/waveterm
- install -Dm644 vscode_64.png /app/share/icons/hicolor/64x64/apps/dev.commandline.waveterm.png
- install -Dm644 vscode_128.png /app/share/icons/hicolor/128x128/apps/dev.commandline.waveterm.png
- install -Dm644 vscode_256.png /app/share/icons/hicolor/256x256/apps/dev.commandline.waveterm.png
- install -Dm644 vscode_512.png /app/share/icons/hicolor/512x512/apps/dev.commandline.waveterm.png
- install -Dm644 dev.commandline.waveterm.metainfo.xml -t /app/share/metainfo
- install -Dm644 dev.commandline.waveterm.desktop -t /app/share/applications
- install -Dm644 dev.commandline.waveterm-workspace.xml -t /app/share/mime/packages
- install -Dm644 npmrc -t /app/etc
- install -Dm644 flatpak-warning.txt -t /app/share/vscode
- install -D apply_extra -t /app/bin
- cp /usr/bin/ar /app/bin
- ARCH_TRIPLE=$(gcc --print-multiarch) && cp /usr/lib/${ARCH_TRIPLE}/libbfd-*.so
/app/lib
- ARCH_TRIPLE=$(gcc --print-multiarch) && ln -s /usr/lib/${ARCH_TRIPLE}/libtinfo.so/app/lib/libtinfo.so.5
- mkdir /app/tools
sources:
- type: script
dest-filename: apply_extra
commands:
- ar x waveterm.deb
- tar xf data.tar.xz
- mv usr/share/Wave waveterm
- rm -r waveterm.deb control.tar.* data.tar.xz debian-binary usr
- type: file
path: dev.commandline.waveterm.metainfo.xml
- type: file
path: dev.commandline.waveterm.desktop
- type: file
dest-filename: waveterm.deb
only-arches: [x86_64]
url: https://dl.waveterm.dev/releases-w2/waveterm-linux-amd64-0.8.12.deb
sha512: qLZI7/VoAP2T0gOkTr+LrSlvLabHiMCguYJQZWaI9nwMxuVHhHOHOfDtbewXsVQdSdif/bCFaX3WNB5xCJs8Pw==
# x-checker-data:
# type: json
# url: https://api.github.com/repos/wavetermdev/waveterm/releases/latest
# version-query: .tag_name
# timestamp-query: .published_at
# url-query: '"https://dl.waveterm.dev/releases-w2/waveterm-linux-amd64-" + $version + "/linux-deb-x64/stable"'
# is-main-source: true
- type: file
dest-filename: waveterm.deb
only-arches: [aarch64]
url: https://dl.waveterm.dev/releases-w2/waveterm-linux-amd64-0.8.12.deb
sha512: ZVMYgjxu48akGB5NYj4qlatsR/z+42EI3PdTphtadl5IgqhwcLcGNpA6UA3ef6GN00H9RdpFBHfd9RBJ9D0K4g==
# x-checker-data:
# type: json
# url: https://api.github.com/repos/microsoft/vscode/releases/latest
# version-query: .tag_name
# timestamp-query: .published_at
# url-query: '"https://update.code.visualstudio.com/" + $version + "/linux-deb-arm64/stable"'
- name: host-spawn
buildsystem: simple
build-commands:
- install -Dm755 host-spawn /app/bin/host-spawn
sources:
- type: file
url: https://github.com/1player/host-spawn/releases/download/1.5.0/host-spawn-x86_64
sha256: dbf67e7e111c4fe1edb0c642cbb4193064ca5b384aeb1054fc2befba6ed88b83
dest-filename: host-spawn
only-arches: [x86_64]
- type: file
url: https://github.com/1player/host-spawn/releases/download/1.5.0/host-spawn-aarch64
sha256: c42c12be6cdd83e374b847bec836659fb45231215797777c9ee1c9c0ae9e3783
dest-filename: host-spawn
only-arches: [aarch64]