Skip to content

Commit

Permalink
Fix site generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Mar 31, 2023
1 parent a65d728 commit 6737bd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ jobs:
~/.local/bin
~/.local/lib/python*/site-packages
- name: Install ImageMagick
run: |
sudo apt-get install fuse
sudo apt-get install librsvg2-bin
- name: Check Out
uses: actions/checkout@v3
with:
Expand Down
7 changes: 2 additions & 5 deletions gradle/icons.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@ private void createPng(
) {

exec {
final List<Integer> dimensions = getSvgDimensions(svg)
if (dimensions[0] > dimensions[1])
commandLine("rsvg-convert", "-w", width, "-o", "$buildDir/$out", svg)
else
commandLine("rsvg-convert", "-h", height, "-o", "$buildDir/$out", svg)
final String geometry = "${width}x${height}"
commandLine("convert", "-background", "none", "-resize", geometry, svg, "$buildDir/$out")
}

exec {
Expand Down

0 comments on commit 6737bd7

Please sign in to comment.