mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
Fix bug 75287
This commit is contained in:
@ -76,9 +76,12 @@ for file in filesReplace:
|
||||
testDevelopVersion = sdkjsDirectory + "/.git"
|
||||
if not os.path.isdir(testDevelopVersion):
|
||||
print("Not in develop version, skipping x2t cache update")
|
||||
x2tDir = curDirectory + "/../FileConverter/bin"
|
||||
cur_dir = os.getcwd()
|
||||
os.chdir(x2tDir)
|
||||
x2tBin = curDirectory + "/../FileConverter/bin/x2t"
|
||||
if ("windows" == platform.system().lower()):
|
||||
x2tBin += ".exe"
|
||||
subprocess.call([x2tBin, "-create-js-cache"], stderr=subprocess.STDOUT, shell=True)
|
||||
command = x2tBin + " -create-js-cache"
|
||||
subprocess.call(command, stderr=subprocess.STDOUT, shell=True)
|
||||
subprocess.call(["x2t.exe", "-create-js-cache"], stderr=subprocess.STDOUT, shell=True)
|
||||
else:
|
||||
subprocess.call("x2t -create-js-cache", stderr=subprocess.STDOUT, shell=True)
|
||||
os.chdir(cur_dir)
|
||||
|
||||
Reference in New Issue
Block a user