mirror of
https://github.com/ONLYOFFICE/build_tools.git
synced 2026-04-07 14:06:31 +08:00
Add support version for v8_89
This commit is contained in:
@ -7,6 +7,25 @@ import base
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
def clean():
|
||||||
|
if base.is_dir("depot_tools"):
|
||||||
|
base.delete_dir_with_access_error("depot_tools")
|
||||||
|
base.delete_dir("depot_tools")
|
||||||
|
if base.is_dir("v8"):
|
||||||
|
base.delete_dir_with_access_error("v8")
|
||||||
|
base.delete_dir("v8")
|
||||||
|
if base.is_exist("./.gclient"):
|
||||||
|
base.delete_file("./.gclient")
|
||||||
|
if base.is_exist("./.gclient_entries"):
|
||||||
|
base.delete_file("./.gclient_entries")
|
||||||
|
if base.is_exist("./.gclient_previous_sync_commits"):
|
||||||
|
base.delete_file("./.gclient_previous_sync_commits")
|
||||||
|
if base.is_exist("./.gcs_entries"):
|
||||||
|
base.delete_file("./.gcs_entries")
|
||||||
|
if base.is_exist("./.cipd"):
|
||||||
|
base.delete_dir("./.cipd")
|
||||||
|
return
|
||||||
|
|
||||||
def change_bootstrap():
|
def change_bootstrap():
|
||||||
base.move_file("./depot_tools/bootstrap/manifest.txt", "./depot_tools/bootstrap/manifest.txt.bak")
|
base.move_file("./depot_tools/bootstrap/manifest.txt", "./depot_tools/bootstrap/manifest.txt.bak")
|
||||||
content = "# changed by build_tools\n\n"
|
content = "# changed by build_tools\n\n"
|
||||||
@ -149,6 +168,8 @@ def make():
|
|||||||
if not base.is_dir(base_dir):
|
if not base.is_dir(base_dir):
|
||||||
base.create_dir(base_dir)
|
base.create_dir(base_dir)
|
||||||
|
|
||||||
|
base.common_check_version("v8", "1", clean)
|
||||||
|
|
||||||
if ("mac" == base.host_platform()):
|
if ("mac" == base.host_platform()):
|
||||||
base.cmd("git", ["config", "--global", "http.postBuffer", "157286400"], True)
|
base.cmd("git", ["config", "--global", "http.postBuffer", "157286400"], True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user