Skip to content

Commit cf14b41

Browse files
committed
chore: Add RainYun mirror
* Thanks!
1 parent 65415ac commit cf14b41

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/components/input/SoftwareDownloadButton.tsx

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ const SoftwareDownloadButton = ({
157157
GitHub
158158
</span>
159159
)}
160+
{name === "rainyun" && (
161+
<span className="ml-2 text-xs rounded-full py-0.5 px-2 bg-cyan-500/80 text-write-800">
162+
雨云
163+
</span>
164+
)}
160165
{download.sha256 !== null &&
161166
copied === download.sha256 && (
162167
<span className="ml-2 text-xs rounded-full py-0.5 px-2 bg-green-200/80 text-green-800">
@@ -167,10 +172,10 @@ const SoftwareDownloadButton = ({
167172
)}
168173
</div>
169174
<div className="text-gray-700 dark:text-gray-300 text-xs inline-flex items-center w-full">
170-
{download.sha256 !== null && (
175+
{name === "application" && (
171176
<span className="truncate">{download.sha256}</span>
172177
)}
173-
{download.sha256 !== null && (
178+
{name === "application" && (
174179
<button
175180
className="ml-2 h-6 w-6"
176181
onClick={(evt) => {
@@ -182,6 +187,14 @@ const SoftwareDownloadButton = ({
182187
<CloneIcon className="h-4 w-4" />
183188
</button>
184189
)}
190+
{name === "rainyun" && (
191+
<a href="https://www.rainyun.com/home">
192+
<span className="underline">
193+
<b>雨云</b>提供下载支持 -
194+
点此直接在雨云游戏服务器上运行!
195+
</span>
196+
</a>
197+
)}
185198
</div>
186199
</div>
187200
</a>

0 commit comments

Comments
 (0)