ytdownloader: disable updates

This commit is contained in:
John Garcia 2024-06-02 22:50:04 +01:00
parent c9cc328009
commit ed75226cdf

View File

@ -49,6 +49,9 @@ buildNpmPackage rec {
--replace-fail $\{__dirname}/../ffmpeg '${lib.getExe ffmpeg}' \
--replace-fail 'path.join(os.homedir(), ".ytDownloader", "ytdlp")' '`${lib.getExe yt-dlp}`' \
--replace-fail '!!localStorage.getItem("fullYtdlpBinPresent")' 'true'
# Disable auto-updates
substituteInPlace src/preferences.js \
--replace-warn 'const autoUpdateDisabled = getId("autoUpdateDisabled");' 'const autoUpdateDisabled = "true";'
'';
postInstall = ''