From 0bcbdc1baa57fe8d644604d202f377f2753a03be Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 17 Feb 2023 11:33:35 -0700 Subject: [PATCH] ci: maybe fix appimage build --- .github/workflows/gen_ubuntu20.04.yml | 3 +++ .github/workflows/gen_ubuntu20.04_continuous.yml | 3 +++ .github/workflows/gen_ubuntu20.04_tag.yml | 3 +++ ci/appimage.sh | 2 ++ ci/generate-workflows.py | 2 ++ 5 files changed, 13 insertions(+) diff --git a/.github/workflows/gen_ubuntu20.04.yml b/.github/workflows/gen_ubuntu20.04.yml index f426f880d..b0562d475 100644 --- a/.github/workflows/gen_ubuntu20.04.yml +++ b/.github/workflows/gen_ubuntu20.04.yml @@ -80,6 +80,9 @@ jobs: - name: "Package" shell: bash run: "bash ci/deploy.sh" + - name: "Install libfuse2" + shell: bash + run: "apt-get install -y libfuse2" - name: "Source Tarball" shell: bash run: "bash ci/source-archive.sh" diff --git a/.github/workflows/gen_ubuntu20.04_continuous.yml b/.github/workflows/gen_ubuntu20.04_continuous.yml index 3f7f3f15f..b869da803 100644 --- a/.github/workflows/gen_ubuntu20.04_continuous.yml +++ b/.github/workflows/gen_ubuntu20.04_continuous.yml @@ -84,6 +84,9 @@ jobs: - name: "Package" shell: bash run: "bash ci/deploy.sh" + - name: "Install libfuse2" + shell: bash + run: "apt-get install -y libfuse2" - name: "Source Tarball" shell: bash run: "bash ci/source-archive.sh" diff --git a/.github/workflows/gen_ubuntu20.04_tag.yml b/.github/workflows/gen_ubuntu20.04_tag.yml index 17a0eb642..d3113889b 100644 --- a/.github/workflows/gen_ubuntu20.04_tag.yml +++ b/.github/workflows/gen_ubuntu20.04_tag.yml @@ -68,6 +68,9 @@ jobs: - name: "Package" shell: bash run: "bash ci/deploy.sh" + - name: "Install libfuse2" + shell: bash + run: "apt-get install -y libfuse2" - name: "Source Tarball" shell: bash run: "bash ci/source-archive.sh" diff --git a/ci/appimage.sh b/ci/appimage.sh index 311884d57..21bce595a 100755 --- a/ci/appimage.sh +++ b/ci/appimage.sh @@ -1,6 +1,8 @@ #!/bin/bash rm -rf AppDir *.AppImage *.zsync +set -e + mkdir AppDir install -Dsm755 -t AppDir/usr/bin target/release/wezterm-mux-server diff --git a/ci/generate-workflows.py b/ci/generate-workflows.py index 553ba5042..2cc803de1 100755 --- a/ci/generate-workflows.py +++ b/ci/generate-workflows.py @@ -393,6 +393,8 @@ cargo build --all --release""", } steps = [RunStep("Package", "bash ci/deploy.sh", env=deploy_env)] if self.app_image: + # AppImage needs fuse + steps += self.install_system_package('libfuse2') steps.append(RunStep("Source Tarball", "bash ci/source-archive.sh")) steps.append(RunStep("Build AppImage", "bash ci/appimage.sh")) return steps