feat: WSL support on Windows

This commit is contained in:
hstyi
2025-06-25 11:52:53 +08:00
committed by hstyi
parent 01d0f9d4bd
commit 3d47840aa8
27 changed files with 622 additions and 68 deletions

View File

@@ -212,6 +212,9 @@ termora.new-host.tunneling.delete=${termora.remove}
termora.new-host.rdp.desktop-placeholder=Default full screen (e.g. 1920×1080)
termora.new-host.rdp.resolution=Resolution
termora.new-host.wsl.distribution=DistroName
termora.new-host.test-connection=Test Connection
termora.new-host.test-connection-successful=Connection successful

View File

@@ -205,6 +205,8 @@ termora.new-host.tunneling.delete=${termora.remove}
termora.new-host.rdp.desktop-placeholder=默认全屏例如1920×1080
termora.new-host.rdp.resolution=分辨率
termora.new-host.wsl.distribution=分发版
termora.new-host.jump-hosts=跳板机
# Key manager

View File

@@ -204,6 +204,8 @@ termora.new-host.tunneling.delete=${termora.remove}
termora.new-host.rdp.desktop-placeholder=預設全螢幕例如1920×1080
termora.new-host.rdp.resolution=解析度
termora.new-host.wsl.distribution=分發版
termora.new-host.jump-hosts=跳板機
# Key manager

View File

@@ -0,0 +1 @@
<svg t="1750821026851" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2837" width="16" height="16"><path d="M892.32 569.44c38.624-2.976 69.824 22.272 72.8 60.896 2.976 40.128-25.28 72.8-63.872 75.776a68.032 68.032 0 0 1-72.8-62.4c-2.976-40.096 23.776-69.824 63.872-74.272z" fill="#86DA2F" p-id="2838"></path><path d="M422.848 885.888c0-38.624 29.728-68.352 65.376-68.352s69.824 32.704 69.824 69.824c0 35.68-29.696 66.88-63.872 68.352-43.072 0-71.328-26.752-71.328-69.824z" fill="#24C2FF" p-id="2839"></path><path d="M528.32 452.064c-5.92 2.976-8.896-1.472-10.4-5.92-54.944-102.528-38.624-231.776 57.952-309.024 25.28-20.8 72.8-25.28 93.6-4.48 8.928 7.456 10.4 16.352 11.872 26.752 2.976 22.304 7.424 44.576 22.304 62.4 16.32 19.328 37.12 26.752 60.896 25.28 20.8 0 41.6-2.976 54.976 20.8 7.424 13.344 4.48 65.344-7.424 75.744-5.952 4.48-10.4 1.504-14.848 0-34.176-13.376-69.824-13.376-105.504-7.424-11.872 1.472-17.824-1.472-17.824-14.848-1.472-22.304-5.92-43.104-17.824-62.4-22.272-40.128-63.872-41.6-90.624-4.48-22.272 29.76-28.224 65.376-34.176 101.056-5.92 31.2-4.448 63.872-2.976 96.544 0 0-1.472 0 0 0z" fill="#FFCB12" p-id="2840"></path><path d="M565.472 474.368c-2.976-4.48-1.472-8.928 2.976-11.904 84.672-77.248 210.976-92.096 309.024-16.32 25.248 20.8 41.6 63.872 28.224 89.12-5.952 10.4-13.376 14.88-22.304 17.824-20.8 8.928-40.096 17.856-53.472 37.152-13.376 19.328-16.32 41.6-10.4 65.376 4.48 19.296 11.904 40.096-7.424 57.92-10.4 10.4-60.928 19.328-74.272 10.4-5.952-4.448-4.48-8.896-2.976-14.848 4.448-37.12-4.48-71.296-17.824-104-4.48-11.872-2.976-17.824 8.896-20.8 20.8-5.92 40.128-16.32 54.976-31.2 32.672-31.2 25.28-71.296-17.824-89.12-34.176-14.88-69.824-11.904-104-8.928-32.672 1.504-63.872 10.4-93.6 19.328z" fill="#86DA2F" p-id="2841"></path><path d="M546.144 512.96c4.48-4.448 7.456-2.944 11.904 0 98.048 59.456 148.544 176.8 104 291.2-11.904 29.728-50.528 59.456-78.72 52-11.904-2.944-17.856-8.896-23.808-16.32-13.376-17.856-28.224-34.176-50.496-41.6-23.776-7.424-44.576-2.976-65.376 8.896-17.824 10.4-35.648 23.776-57.92 10.4-13.376-7.424-35.68-53.472-31.232-68.32 2.976-5.952 8.928-5.952 14.88-5.952 37.12-5.952 66.848-23.776 95.072-47.552 8.928-7.424 16.32-7.424 23.776 2.976 11.872 17.824 26.752 32.672 46.048 43.072 38.624 22.304 75.776 2.976 80.224-41.6 4.48-37.12-8.928-69.792-20.8-102.496a589.632 589.632 0 0 0-47.552-84.672z" fill="#24C2FF" p-id="2842"></path><path d="M498.624 521.92c-5.952 29.696-19.328 57.92-37.12 83.2-53.504 80.192-130.752 112.896-225.856 104-34.144-3.008-62.4-31.232-65.344-59.456-1.504-11.872 1.472-20.8 8.896-29.696 10.4-13.376 19.328-25.28 23.776-41.6 8.928-32.704-2.976-59.424-26.752-83.2-32.672-32.704-28.224-62.4 10.4-86.176 4.48-2.976 10.4-5.952 16.352-8.928 8.928-4.448 16.32-4.448 19.328 5.952 13.344 34.176 40.096 59.424 69.824 80.224 10.4 8.928 10.4 14.848 1.472 25.28a110.304 110.304 0 0 0-29.696 69.792c-2.976 32.704 16.32 53.504 49.024 53.504 20.8 0 40.096-7.424 57.92-16.32 46.08-23.808 81.728-57.952 115.904-93.632 4.448-1.472 5.92-4.448 11.872-2.976z" fill="#0069DA" p-id="2843"></path><path d="M254.976 209.92c2.976 0 10.4 1.472 17.824 2.976 54.976 10.4 89.152-8.928 106.976-60.928 11.872-34.176 37.12-44.576 69.824-26.752 1.472 0 1.472 1.504 2.976 1.504 34.176 19.296 34.176 22.272 13.376 52-17.824 23.776-26.752 50.496-31.2 78.72-2.976 16.352-8.928 19.328-23.776 13.376-23.776-8.896-49.024-8.896-74.304 0-28.224 8.928-40.096 34.176-31.168 62.4 11.872 37.12 44.544 53.504 72.768 72.8 28.256 19.328 60.928 29.728 92.128 43.072 4.48 1.504 11.872 1.504 10.4 8.928-1.472 4.48-7.424 4.48-13.376 4.48-66.88 2.944-130.72-7.456-182.72-52.032-49.024-40.096-84.704-89.12-78.752-157.44 4.48-22.304 20.8-38.656 49.024-43.104z" fill="#FF4649" p-id="2844"></path><path d="M133.152 627.392c-35.648 4.48-71.296-25.28-74.272-62.4-2.976-35.648 26.72-71.328 60.896-74.272 38.624-4.48 74.272 22.272 77.248 57.92 1.504 34.176-20.8 75.776-63.872 78.72z" fill="#0069DA" p-id="2845"></path><path d="M757.12 98.496c37.12-2.976 72.8 26.752 75.776 63.904 2.976 35.648-26.752 69.824-62.4 72.768-38.624 2.976-72.8-25.248-75.776-62.4-2.976-37.12 23.776-71.296 62.4-74.24z" fill="#FFCB12" p-id="2846"></path><path d="M369.376 126.72c4.48 38.624-22.304 71.296-62.4 77.248-34.176 4.48-69.824-23.776-74.272-56.448-4.48-43.072 19.296-74.272 59.424-78.72 37.12-4.48 72.768 23.744 77.248 57.92z" fill="#FF4649" p-id="2847"></path></svg>

After

Width:  |  Height:  |  Size: 4.3 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

@@ -0,0 +1 @@
<svg t="1750820989771" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2335" width="16" height="16"><path d="M962 512.0140625C962 263.48046875 760.52304688 62 511.99296875 62 263.571875 62 62.17578125 263.31171875 62 511.69765625v348.23671875c0.13359375 56.39765625 45.87539063 102.05507812 102.30820312 102.05507812h347.86757813C760.625 961.89101563 962 760.48085937 962 512.0140625" fill="#294172" p-id="2336"></path><path d="M644.1171875 168.54804688c-116.39882812 0-211.09570313 94.69335938-211.09570313 211.09570312v112.04296875H321.44257813c-116.39882812 0-211.09570313 94.70039062-211.09570313 211.09921875 0 116.3953125 94.696875 211.09570313 211.09570313 211.09570313s211.09570313-94.70039062 211.09570312-211.09570313v-112.04648438h111.57890625c116.39882812 0 211.09921875-94.696875 211.09921875-211.09570312 0-116.40234375-94.70039062-211.09570313-211.09921875-211.09570313z m-210.31523438 534.23789062c0 61.95234375-50.40351563 112.35585937-112.359375 112.35585937s-112.359375-50.40351563-112.359375-112.35585937c0-61.95585938 50.40351563-112.359375 112.359375-112.359375h111.57890625v0.31289062h0.78046875v112.04648438z m210.31523438-210.7828125h-111.57890625v-0.31640625h-0.77695313v-112.04296875c0-61.95585938 50.40351563-112.359375 112.35585938-112.359375s112.359375 50.40351563 112.359375 112.359375-50.40703125 112.359375-112.359375 112.359375z" fill="#3C6EB4" p-id="2337"></path><path d="M690.77304688 174.95c-16.3828125-4.28203125-28.96171875-6.27890625-46.65585938-6.27890625-116.63789062 0-211.20117188 94.56679688-211.20117188 211.19765625v111.94453125h-88.45312499c-27.58007813 0-49.86914063 21.67382813-49.8515625 49.2046875 0 27.35859375 22.04296875 49.12382813 49.33125 49.12382813l73.23398437 0.0140625c8.69414062 0 15.74648438 7.03125 15.74648438 15.71132812v96.86601563c-0.10898438 61.49179688-49.98867188 111.30117187-111.48046876 111.30117187-20.83007813 0-25.9875-2.728125-40.20820312-2.728125-29.87226563 0-49.85859375 20.025-49.85859375 47.559375 0.00703125 22.77773438 19.52578125 42.35976563 43.4109375 48.61054688 16.3828125 4.28203125 28.96171875 6.28242187 46.65585937 6.28242187 116.63789062 0 211.20117188-94.56679688 211.20117188-211.20117187v-111.94101563h88.453125c27.58007813 0 49.86914063-21.67382813 49.8515625-49.2046875 0-27.36210938-22.04296875-49.12382813-49.33125-49.12382812l-73.23398438-0.0140625a15.73242188 15.73242188 0 0 1-15.74648437-15.71484375V379.69296875c0.10898438-61.49179688 49.98867188-111.30117187 111.48046875-111.30117187 20.83007813 0 25.9875 2.73164062 40.20820312 2.73164062 29.87226563 0 49.85859375-20.02851563 49.85859375-47.559375-0.00703125-22.78125-19.52578125-42.36328125-43.4109375-48.6140625" fill="#FFFFFF" p-id="2338"></path></svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@@ -0,0 +1 @@
<svg t="1750821074847" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3059" width="16" height="16"><path d="M962 511.54954912c0 248.64864873-201.80180214 449.54954912-449.54954912 449.54955S62 760.19819785 62 511.54954912 263.80180215 62 511.54954912 62c248.64864873 0 450.45045088 201.80180214 450.45045088 449.54954912z" fill="#DD4814" p-id="3060"></path><path d="M206.14414414 452.09009023a60.36036065 60.36036065 0 1 0 60.36036065 60.36036065c0-33.33333339-27.02702724-60.36036065-60.36036065-60.36036065z m428.82882891 272.97297247c-28.82882901 16.21621583-38.73873867 53.15315273-21.62162198 81.98198261 16.21621583 28.82882901 53.15315273 38.73873867 81.98198262 21.6216211 28.82882901-16.21621583 38.73873867-53.15315273 21.6216211-81.98198174-17.1171167-28.82882901-53.15315273-38.73873867-81.98198174-21.62162198zM336.7747751 511.54954912c0-56.75675713 27.92792813-110.81081075 74.77477471-143.24324238l-44.14414483-72.97297383c-53.15315273 35.13513516-91.89189229 89.18918877-108.10810811 151.35135205 36.03603604 29.72972988 41.44144131 82.88288261 12.61261319 118.91891866-3.60360352 4.5045044-8.10810791 8.10810791-12.61261319 12.6126123 16.21621583 62.1621624 54.95495537 116.21621602 108.10810811 151.35135205l44.14414483-73.87387471c-46.84684658-33.33333339-74.77477471-86.48648613-74.77477471-144.14414414z m174.77477402-174.77477402c90.99099141 0 166.66666699 69.36936943 174.7747749 160.36035996l85.58558614-0.90090088c-4.5045044-63.96396416-31.53153164-124.32432393-77.47747735-169.36936963-43.24324307 16.21621583-91.89189229-5.40540528-109.00900898-48.64864833-1.80180176-5.40540528-3.60360352-10.81081055-4.50450528-16.21621583-62.1621624-17.1171167-127.92792832-10.81081055-185.58558545 18.01801758l41.44144131 74.77477471c24.32432461-12.61261231 49.54954922-18.01801846 74.77477471-18.01801758z m0 350.4504498c-25.22522549 0-50.4504501-5.40540528-73.87387383-16.21621582l-41.44144131 74.77477471c57.65765801 28.82882901 123.42342305 35.13513516 185.58558545 18.01801758 7.20720703-45.9459457 50.4504501-77.47747734 96.39639669-69.36936856 5.40540528 0.90090088 10.81081055 2.70270263 16.21621669 4.5045044 45.9459457-45.04504482 72.97297295-105.40540547 77.47747735-169.36936963l-85.58558614-0.90090088c-8.10810791 89.18918877-83.78378349 158.5585582-174.7747749 158.5585582z m123.42342393-388.28828759c28.82882901 16.21621583 65.76576592 6.30630615 81.98198174-21.62162198 16.21621583-28.82882901 6.30630615-65.76576592-21.6216211-81.98198174-29.72972988-17.1171167-65.76576592-7.20720703-82.8828835 21.6216211-16.21621583 28.82882901-6.30630615 65.76576592 22.52252286 81.98198262z" fill="#FFFFFF" p-id="3061"></path></svg>

After

Width:  |  Height:  |  Size: 2.6 KiB