Update Makefile

This commit is contained in:
aricloverGitHub (INACTIVE)
2025-02-04 04:38:29 -06:00
committed by GitHub
parent 3a097e08f6
commit 1411675b86

View File

@@ -57,10 +57,14 @@ internal-clean::
ifneq ($(JAILBROKEN),1) ifneq ($(JAILBROKEN),1)
before-all:: before-all::
@if [[ ! -f $(YTLITE_DEB) ]]; then \ @if [[ ! -f $(YTLITE_DEB) ]]; then \
rm -rf $(YTLITE_PATH)/*; \ rm -rf $(YTLITE_PATH)/*; \
$(PRINT_FORMAT_BLUE) "Downloading YTLite"; \ $(PRINT_FORMAT_BLUE) "Downloading YTLite"; \
echo "YTLITE_VERSION: $(YTLITE_VERSION)"; \ fi
before-all::
@if [[ ! -f $(YTLITE_DEB) ]]; then \
curl -s -L "https://github.com/dayanch96/YTLite/releases/download/v$(YTLITE_VERSION)/com.dvntm.ytlite_$(YTLITE_VERSION)_iphoneos-arm64.deb" -o $(YTLITE_DEB); \ curl -s -L "https://github.com/dayanch96/YTLite/releases/download/v$(YTLITE_VERSION)/com.dvntm.ytlite_$(YTLITE_VERSION)_iphoneos-arm64.deb" -o $(YTLITE_DEB); \
fi; \
if [[ ! -f $(YTLITE_DYLIB) || ! -d $(YTLITE_BUNDLE) ]]; then \
tar -xf $(YTLITE_DEB) -C $(YTLITE_PATH); tar -xf $(YTLITE_PATH)/data.tar* -C $(YTLITE_PATH); \ tar -xf $(YTLITE_DEB) -C $(YTLITE_PATH); tar -xf $(YTLITE_PATH)/data.tar* -C $(YTLITE_PATH); \
if [[ ! -f $(YTLITE_DYLIB) || ! -d $(YTLITE_BUNDLE) ]]; then \ if [[ ! -f $(YTLITE_DYLIB) || ! -d $(YTLITE_BUNDLE) ]]; then \
$(PRINT_FORMAT_ERROR) "Failed to extract YTLite"; exit 1; \ $(PRINT_FORMAT_ERROR) "Failed to extract YTLite"; exit 1; \