try fixing imagamagick issues

This commit is contained in:
Bryan Gerlach
2025-02-26 16:10:48 -06:00
parent ac114152de
commit 1b56fa5833
2 changed files with 10 additions and 10 deletions

View File

@@ -483,9 +483,9 @@ jobs:
env:
JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
run: |
echo "MAGICK_MEMORY_LIMIT=512MiB" >> $GITHUB_ENV
echo "MAGICK_MAP_LIMIT=256MiB" >> $GITHUB_ENV
echo "MAGICK_DISK_LIMIT=1GiB" >> $GITHUB_ENV
echo "MAGICK_MEMORY_LIMIT=512MiB" >> $GITHUB_ENV || true
echo "MAGICK_MAP_LIMIT=256MiB" >> $GITHUB_ENV || true
echo "MAGICK_DISK_LIMIT=1GiB" >> $GITHUB_ENV || true
export PATH=/usr/lib/jvm/java-17-openjdk-amd64/bin:$PATH
# temporary use debug sign config
sed -i "s/signingConfigs.release/signingConfigs.debug/g" ./flutter/android/app/build.gradle
@@ -499,8 +499,8 @@ jobs:
if [[ "${{ inputs.iconlink }}" != "false" ]]; then
mv ./flutter/assets/icon.svg ./flutter/assets/icon.svg.bak
convert ./res/icon.png ./flutter/assets/icon.svg
convert ./res/128x128.png -resize 200% ./flutter/assets/128x128@2x.png
convert ./res/icon.png ./res/scalable.svg
convert ./res/128x128.png -resize 200% ./flutter/assets/128x128@2x.png || true
cp ./flutter/assets/icon.svg ./res/scalable.svg
fi
# build flutter
pushd flutter

View File

@@ -528,13 +528,13 @@ jobs:
wget -O ./flutter/assets/logo.png ${{ fromJson(inputs.logolink).url }}/get_png?filename=${{ fromJson(inputs.logolink).file }}"&"uuid=${{ fromJson(inputs.logolink).uuid }}
fi
if [[ "${{ inputs.iconlink }}" != "false" ]]; then
echo "MAGICK_MEMORY_LIMIT=512MiB" >> $GITHUB_ENV
echo "MAGICK_MAP_LIMIT=256MiB" >> $GITHUB_ENV
echo "MAGICK_DISK_LIMIT=1GiB" >> $GITHUB_ENV
echo "MAGICK_MEMORY_LIMIT=512MiB" >> $GITHUB_ENV || true
echo "MAGICK_MAP_LIMIT=256MiB" >> $GITHUB_ENV || true
echo "MAGICK_DISK_LIMIT=1GiB" >> $GITHUB_ENV || true
mv ./flutter/assets/icon.svg ./flutter/assets/icon.svg.bak
convert ./res/icon.png ./flutter/assets/icon.svg
convert ./res/128x128.png -resize 200% ./flutter/assets/128x128@2x.png
convert ./res/icon.png ./res/scalable.svg
convert ./res/128x128.png -resize 200% ./flutter/assets/128x128@2x.png || true
cp ./flutter/assets/icon.svg ./res/scalable.svg
pushd ./flutter
flutter pub get
dart run flutter_launcher_icons