From 16fa54453c03366b592d4a3ae068841c82ba610b Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Sat, 13 Aug 2022 12:50:39 -0500 Subject: [PATCH] fix: switch back to inkscape for transparent pngs --- .github/workflows/build-publish.yml | 3 +++ Makefile | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index 8ddd3e6..319f718 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -23,6 +23,9 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Get Inkscape + run: sudo apt-get update && sudo apt-get install -y inkscape + - name: Setup PDM uses: pdm-project/setup-pdm@v2 diff --git a/Makefile b/Makefile index daadd5c..c5094cd 100644 --- a/Makefile +++ b/Makefile @@ -19,8 +19,8 @@ all: ## generate all of the logo pngs pngs: $(PNGS) -./docs/png/%.png: ./docs/svg/%.svg - convert $< -scale 1024 $@ +docs/png/%.png: docs/svg/%.svg + @inkscape --export-filename=$@ $< .PHONY: logos ## generate all of the logo svgs @@ -61,4 +61,4 @@ help: ## try `make help` if (helpMessage) { helpCommand = substr($$1, 0, index($$1, ":")-1); \ helpMessage = substr(lastLine, RSTART + 3, RLENGTH); \ printf "\033[36m%-9s\033[0m - %s\n", \ - helpCommand, helpMessage;}} { lastLine = $$0 }' $(MAKEFILE_LIST) \ No newline at end of file + helpCommand, helpMessage;}} { lastLine = $$0 }' $(MAKEFILE_LIST)