arichornlover / uYouEnhanced

uYouEnhanced (by @arichornlover) is an expanded version of uYou+ (made by @qnblackcat) with additional features and mainly made for non jailbroken users!
https://github.com/arichornlover/YouTubeRebornPlus/
2.32k stars 3.55k forks source link

[Questions] Makefile #654

Open Mukul1127 opened 5 months ago

Mukul1127 commented 5 months ago

Is there an existing issue for this?

Do you think this is a bug?

❌ No, I don't think this is a bug. I will explain below

My question

It seems like no matter what the makefile redownloads uYou even though it's included in the project in the correct spot, the makefile checks if it exists and then redownloads it even though it does?

Additional context

before-all::
    @if [[ ! -f $(UYOU_DEB) ]]; then \
        rm -rf $(UYOU_PATH)/*; \
        $(PRINT_FORMAT_BLUE) "Downloading uYou"; \
    fi
before-all::
    @if [[ ! -f $(UYOU_DEB) ]]; then \
        curl -s -L "https://www.dropbox.com/scl/fi/01vvu5lm8nkkicrznku9v/com.miro.uyou_$(UYOU_VERSION)_iphoneos-arm.deb?rlkey=efgz7po8kqqvha8doplk1s3ky&dl=1" -o $(UYOU_DEB); \
    fi; \
    if [[ ! -f $(UYOU_DYLIB) || ! -d $(UYOU_BUNDLE) ]]; then \
        tar -xf Tweaks/uYou/com.miro.uyou_$(UYOU_VERSION)_iphoneos-arm.deb -C Tweaks/uYou; tar -xf Tweaks/uYou/data.tar* -C Tweaks/uYou; \
        if [[ ! -f $(UYOU_DYLIB) || ! -d $(UYOU_BUNDLE) ]]; then \
            $(PRINT_FORMAT_ERROR) "Failed to extract uYou"; exit 1; \
        fi; \
    fi;