This commit is contained in:
恍兮惚兮 2024-09-04 06:22:38 +08:00
parent 2050c81f9c
commit fad30d6fe2
2 changed files with 5 additions and 3 deletions

View File

@ -46,8 +46,10 @@ class Commonloadchromium:
statuslabelsettext(self, "端口冲突")
def gencmd(self, path, port):
fmt = '"%s" --remote-allow-origins=* --remote-debugging-port=%d '
call = fmt % (path, port)
hash_ = hashlib.md5(path.encode("utf8")).hexdigest()
cache = os.path.abspath(os.path.join("chrome_cache", hash_))
fmt = '"%s" --disable-extensions --remote-allow-origins=* --disable-gpu --no-first-run --remote-debugging-port=%d --user-data-dir="%s"'
call = fmt % (path, port, cache)
return call
def getpath(self):

View File

@ -29,7 +29,7 @@ include(generate_product_version)
set(VERSION_MAJOR 5)
set(VERSION_MINOR 33)
set(VERSION_PATCH 7)
set(VERSION_PATCH 6)
add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h)