-
Notifications
You must be signed in to change notification settings - Fork 2
/
com.vscodium.codium-insiders.yaml
184 lines (184 loc) · 7.14 KB
/
com.vscodium.codium-insiders.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
id: com.vscodium.codium-insiders
sdk: org.freedesktop.Sdk
runtime: org.freedesktop.Sdk
runtime-version: '24.08'
base: org.electronjs.Electron2.BaseApp
base-version: '24.08'
command: codium-insiders
finish-args:
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --socket=pulseaudio
- --socket=ssh-auth
- --share=network
- --device=all
- --filesystem=host
- --persist=.vscodium-insiders
- --allow=devel
- --talk-name=org.freedesktop.secrets
- --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-insiders
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
# this patch set the correct `desktopName` on wayland sessions
- patch --fuzz=3 usr/share/codium-insiders/resources/app/package.json -i package.json.patch
- mv usr/share/codium-insiders /app/share
# use patch because desktop-file-edit can't modify different group keys
- patch -u usr/share/applications/codium-insiders.desktop -i codium-insiders.desktop.patch
- patch -u usr/share/applications/codium-insiders-url-handler.desktop -i codium-insiders-url-handler.desktop.patch
# use install instead of desktop-file-install because can't rename the output file
- install -Dm644 usr/share/applications/codium-insiders.desktop /app/share/applications/$FLATPAK_ID.desktop
- install -Dm644 usr/share/applications/codium-insiders-url-handler.desktop
/app/share/applications/$FLATPAK_ID-url-handler.desktop
- install -Dm644 usr/share/mime/packages/codium-insiders-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 *.patch
- mkdir /app/tools
sources:
- type: file
url: https://github.com/VSCodium/vscodium-insiders/releases/download/1.96.0.24341-insider/codium-insiders_1.96.0.24341_amd64.deb
sha256: 7db9ce134799482c7c68bbe530676cecd6db51c958619a745d0f7fb4e8decbc9
dest-filename: codium.deb
only-arches: [x86_64]
x-checker-data:
type: json
url: https://api.github.com/repos/VSCodium/vscodium-insiders/releases/latest
tag-query: .tag_name
version-query: .tag_name
timestamp-query: .published_at
url-query: '[.assets[] | select(.name|test("codium-insiders_.+_amd64.deb$"))][0]
| .browser_download_url'
- type: file
url: https://github.com/VSCodium/vscodium-insiders/releases/download/1.96.0.24341-insider/codium-insiders_1.96.0.24341_arm64.deb
sha256: cb1b20c1a9326ea59e8c910199038da0643c33b08fa65ee0ce62b035056272b3
dest-filename: codium.deb
only-arches: [aarch64]
x-checker-data:
type: json
url: https://api.github.com/repos/VSCodium/vscodium-insiders/releases/latest
tag-query: .tag_name
version-query: .tag_name
timestamp-query: .published_at
url-query: '[.assets[] | select(.name|test("codium-insiders_.+_arm64.deb$"))][0]
| .browser_download_url'
- type: file
path: assets/icon/code.svg
- type: file
path: com.vscodium.codium-insiders.metainfo.xml
- type: file
path: patches/package.json.patch
- type: file
path: patches/codium-insiders.desktop.patch
- type: file
path: patches/codium-insiders-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.0/host-spawn-x86_64
sha256: 75159f0d3924a0bd6d230c6414d19ad44609b5a16671db6624681c910f9bb4ff
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.0/host-spawn-aarch64
sha256: 00f9617c139b9447e6c453a27602ca87f28cdac3aa62b04dcb38d215b2758165
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: ide-flatpak-wrapper
buildsystem: meson
config-opts:
- -Deditor_binary=/app/share/codium-insiders/codium-insiders
- >-
-Deditor_args=[
'/app/share/codium-insiders/resources/app/out/cli.js',
'--extensions-dir', '$XDG_DATA_HOME/codium-insiders/extensions'
]
- -Dprogram_name=codium-insiders
- -Deditor_title=VSCodium - Insiders
- -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-insiders
sources:
- type: git
url: https://github.com/flathub-infra/ide-flatpak-wrapper.git
commit: 7b72347aad88e21a49d6d5299fcd94cedd16624a
- type: file
path: README.md
- type: file
path: sdk_update.md