Browse Source

Install chromium only once (#2100)

* install chromium only once

* Update Makefile

* Update Makefile
மனோஜ்குமார் பழனிச்சாமி 1 năm trước cách đây
mục cha
commit
f3f5768b4f
1 tập tin đã thay đổi với 8 bổ sung1 xóa
  1. 8 1
      Makefile

+ 8 - 1
Makefile

@@ -142,7 +142,14 @@ install-python-dependencies:
 		poetry run pip install playwright; \
 		poetry run playwright install chromium; \
 	else \
-		poetry run playwright install --with-deps chromium; \
+		if [ ! -f cache/playwright_chromium_is_installed.txt ]; then \
+			echo "Running playwright install --with-deps chromium..."; \
+			poetry run playwright install --with-deps chromium; \
+			mkdir -p cache; \
+			touch cache/playwright_chromium_is_installed.txt; \
+		else \
+			echo "Setup already done. Skipping playwright installation."; \
+		fi \
 	fi
 	@echo "$(GREEN)Python dependencies installed successfully.$(RESET)"