mirror of
https://github.com/wez/wezterm.git
synced 2024-12-27 07:18:13 +03:00
21 lines
948 B
Bash
Executable File
21 lines
948 B
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//21.08 org.freedesktop.Sdk//21.08 org.freedesktop.Sdk.Extension.rust-stable//21.08
|
|
|
|
flatpak install --noninteractive --user org.freedesktop.appstream-glib
|
|
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
|