-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathcom.vscodium.codium.yaml
186 lines (186 loc) · 6.87 KB
/
com.vscodium.codium.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
id: com.vscodium.codium
sdk: org.freedesktop.Sdk
runtime: org.freedesktop.Sdk
runtime-version: '24.08'
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
command: codium
finish-args:
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --socket=ssh-auth
- --share=network
- --device=all
- --filesystem=host
- --persist=.vscode-oss
- --allow=devel
- --talk-name=org.freedesktop.secrets
- --talk-name=org.kde.kwalletd5
- --talk-name=org.freedesktop.Flatpak
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
- --filesystem=xdg-run/gnupg:ro
- --filesystem=xdg-config/kdeglobals:ro
- --talk-name=com.canonical.AppMenu.Registrar
- --system-talk-name=org.freedesktop.login1
separate-locales: false
add-extensions:
com.visualstudio.code.tool:
directory: tools
subdirectories: true
version: '24.08'
add-ld-path: lib
no-autodownload: true
cleanup:
- /include
- /lib/pkgconfig
- /share/gtk-doc
- '*.la'
modules:
- shared-modules/libusb/libusb.json
# fix libsecret under flatpak
# https://github.com/flathub/org.signal.Signal/pull/756/commits/2caf105b18f906e7707f67b3cf7384a21f461564
- name: libsecret
buildsystem: meson
config-opts:
- -Dmanpage=false
- -Dcrypto=disabled
- -Dvapi=false
- -Dgtk_doc=false
- -Dintrospection=false
- -Dbash_completion=disabled
cleanup:
- /bin
- /include
- /lib/pkgconfig
- /share/man
sources:
- type: archive
url: https://download.gnome.org/sources/libsecret/0.21/libsecret-0.21.4.tar.xz
sha256: 163d08d783be6d4ab9a979ceb5a4fecbc1d9660d3c34168c581301cd53912b20
x-checker-data:
type: gnome
name: libsecret
stable-only: true
- name: codium
buildsystem: simple
build-commands:
- install -Dm644 code.svg /app/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg
- install -Dm644 $FLATPAK_ID.metainfo.xml -t /app/share/metainfo
- ar x codium.deb
- tar xf data.tar.xz
# fix kde wayland window icons
- patch --fuzz=3 usr/share/codium/resources/app/package.json -i package.json.patch
- mv usr/share/codium /app/share
# use patches because desktop-file-edit can't modify different group keys
- patch -u usr/share/applications/codium.desktop -i codium.desktop.patch
- patch -u usr/share/applications/codium-url-handler.desktop -i codium-url-handler.desktop.patch
# use install instead of desktop-file-install because can't rename the output file
- install -Dm644 usr/share/applications/codium.desktop /app/share/applications/$FLATPAK_ID.desktop
- install -Dm644 usr/share/applications/codium-url-handler.desktop /app/share/applications/$FLATPAK_ID-url-handler.desktop
- install -Dm644 usr/share/mime/packages/codium-workspace.xml /app/share/mime/packages/$FLATPAK_ID-workspace.xml
# Sugested by desktop-file-validate
- desktop-file-edit --add-category="Utility" /app/share/applications/$FLATPAK_ID.desktop
- rm -r codium.deb control.tar.* data.tar.xz debian-binary usr
- mkdir /app/tools
sources:
- type: file
url: https://github.com/VSCodium/vscodium/releases/download/1.96.2.24355/codium_1.96.2.24355_amd64.deb
sha256: 5cc4e148b3228a7eaad8082861a243a922e109bcd8c1f471ffe7c6afd1f24f5b
dest-filename: codium.deb
only-arches:
- x86_64
x-checker-data:
type: json
url: https://api.github.com/repos/VSCodium/vscodium/releases/latest
tag-query: .tag_name
version-query: .tag_name
timestamp-query: .published_at
url-query: '[.assets[] | select(.name|test("codium_.+_amd64.deb$"))][0]
| .browser_download_url'
- type: file
url: https://github.com/VSCodium/vscodium/releases/download/1.96.2.24355/codium_1.96.2.24355_arm64.deb
sha256: c4948ed4849182c2148cfe2cf94b61924dd31523fb6ba0ecb4faaa30e1cea724
dest-filename: codium.deb
only-arches:
- aarch64
x-checker-data:
type: json
url: https://api.github.com/repos/VSCodium/vscodium/releases/latest
tag-query: .tag_name
version-query: .tag_name
timestamp-query: .published_at
url-query: '[.assets[] | select(.name|test("codium_.+_arm64.deb$"))][0]
| .browser_download_url'
- type: file
path: assets/icon/code.svg
- type: file
path: com.vscodium.codium.metainfo.xml
- type: file
path: patches/package.json.patch
- type: file
path: patches/codium.desktop.patch
- type: file
path: patches/codium-url-handler.desktop.patch
- 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/v1.6.1/host-spawn-x86_64
sha256: 733746ab498e07d065cbecf80bacd447eb21846d1462e8fe23fdd9d9dc977b50
dest-filename: host-spawn
only-arches: [x86_64]
x-checker-data:
type: json
url: https://api.github.com/repos/1player/host-spawn/releases/latest
tag-query: .tag_name
version-query: .tag_name
timestamp-query: .published_at
url-query: '[.assets[] | select(.name|test(".+x86_64$"))][0] | .browser_download_url'
- type: file
url: https://github.com/1player/host-spawn/releases/download/v1.6.1/host-spawn-aarch64
sha256: 71b7744a4d0b29279523cc0f0ed1a7af5e9555510bd9e6d4685391b59faefaac
dest-filename: host-spawn
only-arches: [aarch64]
x-checker-data:
type: json
url: https://api.github.com/repos/1player/host-spawn/releases/latest
tag-query: .tag_name
version-query: .tag_name
timestamp-query: .published_at
url-query: '[.assets[] | select(.name|test(".+aarch64$"))][0] | .browser_download_url'
- name: wrapper-flatpak-wrapper
buildsystem: meson
config-opts:
- -Deditor_binary=/app/share/codium/codium
- >-
-Deditor_args=[
'/app/share/codium/resources/app/out/cli.js',
'--extensions-dir', '$XDG_DATA_HOME/codium/extensions'
]
- -Dprogram_name=codium
- -Deditor_title=VSCodium
- -Dzypak=enabled
- -Dzypak_args=[ 'host', '-' ]
- >-
-Denvs=[
"ELECTRON_RUN_AS_NODE=1"
]
- >-
-Denvs_inner=[
"ZYPAK_SPAWN_LATEST_ON_REEXEC=0",
]
- -Dfirst_run_template=README.md
- -Dsdk_update_template=sdk_update.md
- -Dflagfile_prefix=flatpak-vscodium
sources:
- type: git
url: https://github.com/flathub-infra/ide-flatpak-wrapper.git
commit: e39b1d775dad273a6ec8d88a52e961511ab6aeba
- type: file
path: README.md
- type: file
path: sdk_update.md