Skip to content

Commit 60b7a46

Browse files
committed
fix(1.105): move new feat/fixes to stable [skip ci]
1 parent f81d3d5 commit 60b7a46

File tree

4 files changed

+37
-27
lines changed

4 files changed

+37
-27
lines changed

.github/workflows/stable-spearhead.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ jobs:
7171
run: ./prepare_src.sh
7272
if: env.SHOULD_BUILD == 'yes'
7373

74+
- name: Upload sourcemaps
75+
env:
76+
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
77+
GITHUB_USERNAME: ${{ github.repository_owner }}
78+
run: ./upload_sourcemaps.sh
79+
if: env.SHOULD_BUILD == 'yes'
80+
7481
- name: Release source
7582
env:
7683
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}

stores/snapcraft/insider/snap/snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ parts:
9696
apps:
9797
codium:
9898
command: electron-launch $SNAP/usr/share/codium-insiders/bin/codium-insiders --no-sandbox
99-
desktop: usr/share/applications/codium-insiders.desktop
99+
common-id: codium-insiders.desktop
100100

101101
url-handler:
102102
command: electron-launch $SNAP/usr/share/codium-insiders/bin/codium-insiders --open-url --no-sandbox

stores/snapcraft/stable/snap/local/bin/electron-launch

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ copy_env_variable GDK_BACKEND
109109
copy_env_variable GTK_PATH
110110
copy_env_variable GTK_EXE_PREFIX
111111
copy_env_variable GTK_IM_MODULE_FILE
112-
copy_env_variable LIBGL_DRIVERS_PATH
113112

114113
# XDG Config
115114
prepend_dir XDG_CONFIG_DIRS "$SNAP/etc/xdg"
@@ -121,16 +120,12 @@ prepend_dir XDG_DATA_DIRS "$SNAP/data-dir"
121120
prepend_dir XDG_DATA_DIRS "$SNAP_USER_DATA"
122121

123122
# Set XDG_DATA_HOME to local path
124-
ensure_dir_exists "$SNAP_USER_DATA/.local/share"
123+
export XDG_DATA_HOME="$SNAP_USER_DATA/.local/share"
124+
ensure_dir_exists "$XDG_DATA_HOME"
125125

126126
# Workaround for GLib < 2.53.2 not searching for schemas in $XDG_DATA_HOME:
127127
# https://bugzilla.gnome.org/show_bug.cgi?id=741335
128-
prepend_dir XDG_DATA_DIRS "$SNAP_USER_DATA/.local/share"
129-
130-
# Use the snap MESA drivers to launch the snap.
131-
# This is required by wayland, but electron will make better use under X11 too
132-
prepend_dir LIBGL_DRIVERS_PATH "$SNAP/usr/lib/dri"
133-
prepend_dir LIBGL_DRIVERS_PATH "$SNAP/usr/lib/$ARCH/dri"
128+
prepend_dir XDG_DATA_DIRS "$XDG_DATA_HOME"
134129

135130
# Set cache folder to local path
136131
if [[ -d "$SNAP_USER_DATA/.cache" && ! -e "$SNAP_USER_COMMON/.cache" ]]; then
@@ -158,30 +153,47 @@ if [[ -n "$XDG_RUNTIME_DIR" && -z "$DISABLE_WAYLAND" ]] && \
158153
if [ -n "$WAYLAND_DISPLAY" ]; then
159154
wdisplay="$WAYLAND_DISPLAY"
160155
fi
156+
wayland_sockpath="$XDG_RUNTIME_DIR/../$wdisplay"
161157
wayland_snappath="$XDG_RUNTIME_DIR/$wdisplay"
162-
if [ -S "$wayland_snappath" ]; then
158+
if [ -S "$wayland_sockpath" ]; then
163159
# if running under wayland, use it
164160
#export WAYLAND_DEBUG=1
165161
# shellcheck disable=SC2034
166162
wayland_available=true
163+
# create the compat symlink for now
164+
if [ ! -e "$wayland_snappath" ]; then
165+
ln -s "$wayland_sockpath" "$wayland_snappath"
166+
fi
167167
fi
168168
fi
169169

170170
# Keep an array of data dirs, for looping through them
171171
IFS=':' read -r -a data_dirs_array <<< "$XDG_DATA_DIRS"
172172

173-
# Build mime.cache
174-
# needed for gtk and qt icon
173+
# Font Config
174+
export FONTCONFIG_PATH="/etc/fonts"
175+
export FONTCONFIG_FILE="/etc/fonts/fonts.conf"
176+
175177
if [ "$needs_update" = true ]; then
176-
rm -rf "$SNAP_USER_DATA/.local/share/mime"
177-
if [ ! -f "$SNAP/usr/share/mime/mime.cache" ]; then
178-
if command -v update-mime-database >/dev/null; then
179-
cp --preserve=timestamps -dR "$SNAP/usr/share/mime" "$SNAP_USER_DATA/.local/share"
180-
async_exec update-mime-database "$SNAP_USER_DATA/.local/share/mime"
181-
fi
178+
rm -rf "$XDG_DATA_HOME"/fonts
179+
180+
if [ -d "$SNAP_REAL_HOME/.local/share/fonts" ]; then
181+
ln -s "$SNAP_REAL_HOME/.local/share/fonts" "$XDG_DATA_HOME/fonts"
182182
fi
183183
fi
184184

185+
# Build mime.cache needed for gtk and qt icon
186+
# @TODO: Re-enable this once we move to core22
187+
if [ "$needs_update" = true ]; then
188+
rm -rf "$SNAP_USER_DATA/.local/share/mime"
189+
# if [ ! -f "$SNAP/usr/share/mime/mime.cache" ]; then
190+
# if command -v update-mime-database >/dev/null; then
191+
# cp --preserve=timestamps -dR "$SNAP/usr/share/mime" "$SNAP_USER_DATA/.local/share"
192+
# async_exec update-mime-database "$SNAP_USER_DATA/.local/share/mime"
193+
# fi
194+
# fi
195+
fi
196+
185197
# Gio modules and cache (including gsettings module)
186198
export GIO_MODULE_DIR="$SNAP_USER_COMMON/.cache/gio-modules"
187199
function compile_giomodules {

stores/snapcraft/stable/snap/snapcraft.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ parts:
5959
- libnss3
6060
- libpango-1.0-0
6161
- libsecret-1-0
62-
- libvulkan1
6362
- libwayland-egl1
6463
- libxcomposite1
6564
- libxdamage1
@@ -70,20 +69,14 @@ parts:
7069
- libxss1
7170
- locales-all
7271
- packagekit-gtk3-module
73-
- gnome-settings-daemon-common
7472
- xdg-utils
7573
prime:
76-
- -lib/udev
77-
- -usr/lib/systemd
7874
- -usr/share/doc
7975
- -usr/share/fonts
8076
- -usr/share/icons
8177
- -usr/share/lintian
8278
- -usr/share/man
8379
- -usr/share/codium/chrome-sandbox
84-
- -usr/share/@@NAME@@/libEGL.so*
85-
- -usr/share/@@NAME@@/libGLESv2.so*
86-
- -usr/share/@@NAME@@/libvulkan.so*
8780
build-attributes:
8881
- enable-patchelf
8982
override-prime: |
@@ -103,9 +96,7 @@ parts:
10396
apps:
10497
codium:
10598
command: electron-launch $SNAP/usr/share/codium/bin/codium --no-sandbox
106-
desktop: usr/share/applications/codium.desktop
10799
common-id: codium.desktop
108100

109101
url-handler:
110102
command: electron-launch $SNAP/usr/share/codium/bin/codium --open-url --no-sandbox
111-
desktop: usr/share/applications/codium-url-handler.desktop

0 commit comments

Comments
 (0)