Skip to content

Commit

Permalink
ci: update different icons
Browse files Browse the repository at this point in the history
  • Loading branch information
JangOetama authored Dec 17, 2024
1 parent 2c3946f commit a67e327
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/convert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,24 @@ jobs:
output_name="$output_path/$name.ico"
output_hash_name="$output_hash_path/$name.ico"
echo "Converting $name..."
echo "Processing $name..."
if [[ -f "$output_hash_name" && "$hash" != "$(cat $output_hash_name)" ]]; then
echo "Different hash, delete $name..."
[[ -f "$output_name" ]] && rm "$output_name"
[[ -f "$output_hash_name" ]] && rm "$output_hash_name"
fi
if [[ -f "$output_name" && -f "$output_hash_name" && "$hash" == "$(cat $output_hash_name)" ]]; then
echo "$name is already exist."
continue
fi
install_dependencies
changed=true
[[ -f "$output_name" ]] && rm "$output_name"
[[ -f "$output_hash_name" ]] && rm "$output_hash_name"
echo "Converting $name..."
svgexport "$input_name" "$temp_name" png 1024:1024
convert -background transparent "$temp_name" -define icon:auto-resize="256,128,96,64,48,32,16" "$output_name"
Expand Down

0 comments on commit a67e327

Please sign in to comment.