mirror of
https://github.com/go-gitea/gitea
synced 2025-09-18 14:48:13 +00:00
Switch to @resvg/resvg-wasm
for generate-images
(#35415)
Use the WASM module of [`resvg-js`](https://github.com/thx/resvg-js) to replace `fabric` and the problematic native `canvas` dependency. WASM works cross-platform so we can include it in the main `package.json`.
This commit is contained in:
8
Makefile
8
Makefile
@@ -230,7 +230,7 @@ node-check:
|
||||
|
||||
.PHONY: clean-all
|
||||
clean-all: clean ## delete backend, frontend and integration files
|
||||
rm -rf $(WEBPACK_DEST_ENTRIES) node_modules tools/node_modules
|
||||
rm -rf $(WEBPACK_DEST_ENTRIES) node_modules
|
||||
|
||||
.PHONY: clean
|
||||
clean: ## delete backend and integration files
|
||||
@@ -847,10 +847,6 @@ node_modules: pnpm-lock.yaml
|
||||
pnpm install --frozen-lockfile
|
||||
@touch node_modules
|
||||
|
||||
tools/node_modules: tools/package.json
|
||||
cd tools && pnpm install
|
||||
@touch tools/node_modules
|
||||
|
||||
.venv: uv.lock
|
||||
uv sync
|
||||
@touch .venv
|
||||
@@ -925,7 +921,7 @@ generate-gitignore: ## update gitignore files
|
||||
$(GO) run build/generate-gitignores.go
|
||||
|
||||
.PHONY: generate-images
|
||||
generate-images: | node_modules tools/node_modules ## generate images (requires cairo development packages)
|
||||
generate-images: | node_modules ## generate images
|
||||
cd tools && node generate-images.js $(TAGS)
|
||||
|
||||
.PHONY: generate-manpage
|
||||
|
Reference in New Issue
Block a user