jcefbuild/scripts/patch_cmake.py
2023-08-07 16:42:31 +02:00

22 lines
426 B
Python

#Small script to patch our cmake download locations
#Usage: python patch_cmake.py <file>
import sys
input = sys.argv[1]
print("Patching "+input+" to use spotify for downloads again...")
f = open(input, "r")
result = ""
for x in f:
result += x.replace("https://cache-redirector.jetbrains.com/intellij-jbr/", "https://cef-builds.spotifycdn.com/")
f.close()
f = open(input, "w")
f.write(result)
f.close()
print("Done.")