mirror of
https://github.com/wez/wezterm.git
synced 2024-12-02 01:46:43 +03:00
1e27cded2f
Looking at this because the build failed in the latest release: https://github.com/flathub/org.wezfurlong.wezterm/pull/16
24 lines
1.0 KiB
Bash
Executable File
24 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
set -xe
|
|
|
|
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
|
|
flatpak install --noninteractive --user flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08 org.freedesktop.Sdk.Extension.rust-stable//23.08
|
|
|
|
flatpak install --noninteractive --user org.freedesktop.appstream-glib
|
|
|
|
# Disabled for now: seems like it has an OpenSSL problem and fails to use SSL when
|
|
# validating the screenshot URLs
|
|
#flatpak run --env=G_DEBUG=fatal-criticals org.freedesktop.appstream-glib validate assets/wezterm.appdata.xml
|
|
|
|
python3 -m pip install toml aiohttp
|
|
curl -L 'https://github.com/flatpak/flatpak-builder-tools/raw/master/cargo/flatpak-cargo-generator.py' > /tmp/flatpak-cargo-generator.py
|
|
python3 /tmp/flatpak-cargo-generator.py Cargo.lock -o assets/flatpak/generated-sources.json
|
|
|
|
if [ "${CI}" != "yes" ] ; then
|
|
flatpak-builder \
|
|
--state-dir /var/tmp/wezterm-flatpak-builder \
|
|
--install /var/tmp/wezterm-flatpak-repo \
|
|
assets/flatpak/org.wezfurlong.wezterm.json \
|
|
--force-clean --user -y
|
|
fi
|