Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Jan 21, 2025
1 parent 17ac40a commit 4a305a2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
17 changes: 11 additions & 6 deletions .github/scripts/build_lunatranslator.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ def downloadCurl():
)


def downloadluna():
subprocess.run(f"curl -LO https://image.lunatranslator.org/luna.jpg")

shutil.move(
f"luna.jpg",
f"{rootDir}/LunaTranslator/rendertext",
)


def downloadOCRModel():
os.chdir(rootDir + "\\files")
if not os.path.exists("ocrmodel"):
Expand Down Expand Up @@ -373,17 +382,13 @@ def downloadbass():
os.makedirs("../../py/files/plugins/DLL32", exist_ok=True)
shutil.copy("../builds/_x86/shareddllproxy32.exe", "../../py/files/plugins")
shutil.copy("../builds/_x86/winrtutils.dll", "../../py/files/plugins/DLL32")
shutil.copy(
"../builds/_x86/winsharedutils.dll", "../../py/files/plugins/DLL32"
)
shutil.copy("../builds/_x86/winsharedutils.dll", "../../py/files/plugins/DLL32")
shutil.copy("../builds/_x86/wcocr.dll", "../../py/files/plugins/DLL32")
shutil.copy("../builds/_x86/LunaOCR.dll", "../../py/files/plugins/DLL32")
os.makedirs("../../py/files/plugins/DLL64", exist_ok=True)
shutil.copy("../builds/_x64/shareddllproxy64.exe", "../../py/files/plugins")
shutil.copy("../builds/_x64/winrtutils.dll", "../../py/files/plugins/DLL64")
shutil.copy(
"../builds/_x64/winsharedutils.dll", "../../py/files/plugins/DLL64"
)
shutil.copy("../builds/_x64/winsharedutils.dll", "../../py/files/plugins/DLL64")
shutil.copy("../builds/_x64/wcocr.dll", "../../py/files/plugins/DLL64")
shutil.copy("../builds/_x64/LunaOCR.dll", "../../py/files/plugins/DLL64")

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ docs/.vitepress/cache
docs/node_modules
docs/.vitepress/dist
py/LunaTranslator/rendertext/webview_parsed.html
py/LunaTranslator/rendertext/luna.jpg
2 changes: 1 addition & 1 deletion py/LunaTranslator/rendertext/exampleextrahtml.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</script>
<style>
body::before {
background-image: url("https://image.lunatranslator.org/luna.jpg");
background-image: url("./luna.jpg");
opacity: 0.1;
background-size: 100% auto;
content: '';
Expand Down
8 changes: 4 additions & 4 deletions py/files/defaultconfig/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,11 @@
"isshowrawtext": true,
"kanarate": 0.5,
"rawtextcolor": "#000000",
"backcolor": "#000000",
"transparent": 27,
"backcolor": "#ffaaff",
"transparent": 10,
"transparent_EX": false,
"backcolor_tool": "#000000",
"transparent_tool": 27,
"backcolor_tool": "#ffaaff",
"transparent_tool": 50,
"isshowhira": true,
"locktools": true,
"showfanyisource": false,
Expand Down

0 comments on commit 4a305a2

Please sign in to comment.