mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-28 16:20:18 +00:00
Make magick cmd available across CI envs
This commit is contained in:
4
.github/workflows/appimage-build.yml
vendored
4
.github/workflows/appimage-build.yml
vendored
@@ -38,6 +38,10 @@ jobs:
|
||||
perl python3 python3-minimal python3-dev python3-cffi mono-devel desktop-file-utils \
|
||||
fonts-noto-color-emoji breeze-gtk-theme \
|
||||
patchelf file curl imagemagick
|
||||
if ! command -v magick >/dev/null 2>&1 && command -v convert >/dev/null 2>&1; then
|
||||
printf '%s\n' '#!/bin/sh' 'exec convert "$@"' | sudo tee /usr/local/bin/magick >/dev/null
|
||||
sudo chmod +x /usr/local/bin/magick
|
||||
fi
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
|
||||
4
.github/workflows/flatpak-build.yml
vendored
4
.github/workflows/flatpak-build.yml
vendored
@@ -29,6 +29,10 @@ jobs:
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends imagemagick
|
||||
if ! command -v magick >/dev/null 2>&1 && command -v convert >/dev/null 2>&1; then
|
||||
printf '%s\n' '#!/bin/sh' 'exec convert "$@"' > /usr/local/bin/magick
|
||||
chmod +x /usr/local/bin/magick
|
||||
fi
|
||||
|
||||
- name: Build Flatpak
|
||||
id: flatpak_builder
|
||||
|
||||
4
.github/workflows/manjaro-package-build.yml
vendored
4
.github/workflows/manjaro-package-build.yml
vendored
@@ -43,6 +43,10 @@ jobs:
|
||||
python-cffi \
|
||||
pciutils \
|
||||
imagemagick
|
||||
if ! command -v magick >/dev/null 2>&1 && command -v convert >/dev/null 2>&1; then
|
||||
printf '%s\n' '#!/bin/sh' 'exec convert "$@"' > /usr/local/bin/magick
|
||||
chmod +x /usr/local/bin/magick
|
||||
fi
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
6
.github/workflows/windows-build.yml
vendored
6
.github/workflows/windows-build.yml
vendored
@@ -40,6 +40,12 @@ jobs:
|
||||
python -m pip install cffi
|
||||
python -m pip install zstandard
|
||||
choco install imagemagick -y --no-progress
|
||||
if (-not (Get-Command magick -ErrorAction SilentlyContinue)) {
|
||||
$magickDir = Get-ChildItem 'C:\Program Files\ImageMagick-*' -Directory -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending | Select-Object -First 1
|
||||
if ($magickDir) {
|
||||
$magickDir.FullName | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
}
|
||||
}
|
||||
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
function Download-WithRetry {
|
||||
|
||||
Reference in New Issue
Block a user