mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-26 07:04:12 +08:00
.
This commit is contained in:
parent
c336a822b4
commit
7fc3578ec3
21
.github/scripts/build_lunatranslator.py
vendored
21
.github/scripts/build_lunatranslator.py
vendored
@ -264,36 +264,33 @@ def downloadbass():
|
|||||||
|
|
||||||
os.chdir(rootDir + "\\temp")
|
os.chdir(rootDir + "\\temp")
|
||||||
subprocess.run(f"curl -LO https://www.un4seen.com/files/bass24.zip")
|
subprocess.run(f"curl -LO https://www.un4seen.com/files/bass24.zip")
|
||||||
subprocess.run(f"7z x bass24.zip -oALL")
|
subprocess.run(f"7z x bass24.zip -obass24")
|
||||||
shutil.move(
|
shutil.move(
|
||||||
"ALL/bass.dll",
|
"bass24/bass.dll",
|
||||||
f"{rootDir}/files/plugins/DLL32",
|
f"{rootDir}/files/plugins/DLL32",
|
||||||
)
|
)
|
||||||
shutil.move(
|
shutil.move(
|
||||||
"ALL/x64/bass.dll",
|
"bass24/x64/bass.dll",
|
||||||
f"{rootDir}/files/plugins/DLL64",
|
f"{rootDir}/files/plugins/DLL64",
|
||||||
)
|
)
|
||||||
subprocess.run(f"curl -LO https://www.un4seen.com/files/z/2/bass_spx24.zip")
|
subprocess.run(f"curl -LO https://www.un4seen.com/files/z/2/bass_spx24.zip")
|
||||||
subprocess.run(f"7z x bass_spx24.zip -oALL")
|
subprocess.run(f"7z x bass_spx24.zip -obass_spx24")
|
||||||
shutil.move(
|
shutil.move(
|
||||||
"ALL/bass_spx.dll",
|
"bass_spx24/bass_spx.dll",
|
||||||
f"{rootDir}/files/plugins/DLL32",
|
f"{rootDir}/files/plugins/DLL32",
|
||||||
)
|
)
|
||||||
shutil.move(
|
shutil.move(
|
||||||
"ALL/x64/bass_spx.dll",
|
"bass_spx24/x64/bass_spx.dll",
|
||||||
f"{rootDir}/files/plugins/DLL64",
|
f"{rootDir}/files/plugins/DLL64",
|
||||||
)
|
)
|
||||||
subprocess.run(f"curl -LO https://www.un4seen.com/files/z/2/bass_aac24.zip")
|
subprocess.run(f"curl -LO https://www.un4seen.com/files/z/2/bass_aac24.zip")
|
||||||
subprocess.run(f"7z x bass_aac24.zip -oALL")
|
subprocess.run(f"7z x bass_aac24.zip -obass_aac24")
|
||||||
for _dir, _, _fs in os.walk('ALL'):
|
|
||||||
for _f in _fs:
|
|
||||||
print(os.path.normpath(os.path.abspath(os.path.join(_dir, _f))))
|
|
||||||
shutil.move(
|
shutil.move(
|
||||||
"ALL/bass_aac.dll",
|
"bass_aac24/bass_aac.dll",
|
||||||
f"{rootDir}/files/plugins/DLL32",
|
f"{rootDir}/files/plugins/DLL32",
|
||||||
)
|
)
|
||||||
shutil.move(
|
shutil.move(
|
||||||
"ALL/x64/bass_aac.dll",
|
"bass_aac24/x64/bass_aac.dll",
|
||||||
f"{rootDir}/files/plugins/DLL64",
|
f"{rootDir}/files/plugins/DLL64",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1765,12 +1765,18 @@ class IndexBuilder(object):
|
|||||||
self.makemdds(_filename, _targetfilenamebase)
|
self.makemdds(_filename, _targetfilenamebase)
|
||||||
|
|
||||||
def makemdds(self, _filename, _targetfilenamebase):
|
def makemdds(self, _filename, _targetfilenamebase):
|
||||||
for end in (".mdd", ".1.mdd"):
|
i = 0
|
||||||
|
while True:
|
||||||
|
extra = "" if i == 0 else ".%d" % i
|
||||||
|
i += 1
|
||||||
|
end = extra + ".mdd"
|
||||||
if os.path.isfile(_filename + end):
|
if os.path.isfile(_filename + end):
|
||||||
self._mdd_files.append(_filename + end)
|
self._mdd_files.append(_filename + end)
|
||||||
self._mdd_dbs.append(_targetfilenamebase + end + ".db")
|
self._mdd_dbs.append(_targetfilenamebase + end + ".db")
|
||||||
if not os.path.isfile(self._mdd_dbs[-1]):
|
if not os.path.isfile(self._mdd_dbs[-1]):
|
||||||
self._make_mdd_index(self._mdd_files[-1], self._mdd_dbs[-1])
|
self._make_mdd_index(self._mdd_files[-1], self._mdd_dbs[-1])
|
||||||
|
else:
|
||||||
|
break
|
||||||
|
|
||||||
def _replace_stylesheet(self, txt):
|
def _replace_stylesheet(self, txt):
|
||||||
# substitute stylesheet definition
|
# substitute stylesheet definition
|
||||||
|
Loading…
x
Reference in New Issue
Block a user