diff --git a/app/[locale]/download/components/DownloadWebgalTerre.tsx b/app/[locale]/download/components/DownloadWebgalTerre.tsx
index 14a14a0..8be003b 100644
--- a/app/[locale]/download/components/DownloadWebgalTerre.tsx
+++ b/app/[locale]/download/components/DownloadWebgalTerre.tsx
@@ -3,10 +3,10 @@
import Button from '@/components/Button/Button'
import useWebgalTerreAssets from '@/hooks/useWebgalTerreAssets'
import Link from 'next/link'
-import {RiGithubFill, RiMicrosoftFill, RiAppleFill, RiUbuntuFill} from 'react-icons/ri'
+import { RiGithubFill, RiMicrosoftFill, RiAppleFill, RiUbuntuFill, RiAndroidFill } from 'react-icons/ri'
import styles from '../Download.module.css'
-import {useLocale, useTranslations} from 'next-intl'
-import {i18n} from '@/i18n'
+import { useLocale, useTranslations } from 'next-intl'
+import { i18n } from '@/i18n'
const DownloadWebgalTerre = () => {
@@ -28,20 +28,21 @@ const DownloadWebgalTerre = () => {
: null
const platformMap = [
- {platform: 'windows', icon: , label: t('downloadWindows')},
- {platform: 'windowsSetup', icon: , label: t('downloadWindowsSetup')},
- {platform: 'windowsArm64', icon: , label: t('downloadWindowsArm64')},
- {platform: 'windowsArm64Setup', icon: , label: t('downloadWindowsArm64Setup')},
- {platform: 'macos', icon: , label: t('downloadMacos')},
- {platform: 'linux', icon: , label: t('downloadLinux')},
- {platform: 'linuxArm64', icon: , label: t('downloadLinuxArm64')},
+ { platform: 'windows', icon: , label: t('downloadWindows') },
+ { platform: 'windowsSetup', icon: , label: t('downloadWindowsSetup') },
+ { platform: 'windowsArm64', icon: , label: t('downloadWindowsArm64') },
+ { platform: 'windowsArm64Setup', icon: , label: t('downloadWindowsArm64Setup') },
+ { platform: 'macos', icon: , label: t('downloadMacos') },
+ { platform: 'linux', icon: , label: t('downloadLinux') },
+ { platform: 'linuxArm64', icon: , label: t('downloadLinuxArm64') },
+ { platform: 'android', icon: , label: t('downloadAndroid') }
]
const downloadUrls = webgalTerreAssets?.downloadUrl
.map((item) => {
const test = platformMap.find(platform => item.platform === platform.platform)
if (test)
- return {url: item.url, ...test}
+ return { url: item.url, ...test }
})
const isZh = locale === 'zh-cn'
@@ -63,21 +64,21 @@ const DownloadWebgalTerre = () => {
{t('releaseNote')}: {!(releaseNote) && t('fetching')}
{
releaseNote &&
- < div dangerouslySetInnerHTML={{__html: releaseNote}} className={styles['release-note']}/>
+ < div dangerouslySetInnerHTML={{ __html: releaseNote }} className={styles['release-note']} />
}
{
downloadUrls &&
downloadUrls.map((item) =>
item?.url &&
-
+
)
}
@@ -85,22 +86,22 @@ const DownloadWebgalTerre = () => {
{
isZh && downloadUrls &&
{/*
*/}
-
- {t('otherDownloadLinkInfo')}
-
-
- {
- downloadUrls &&
- downloadUrls.map((item) =>
- item?.url &&
-
- )
- }
-
- {/* */}
+
+ {t('otherDownloadLinkInfo')}
+
+
+ {
+ downloadUrls &&
+ downloadUrls.map((item) =>
+ item?.url &&
+
+ )
+ }
+ {/**/}
+
}
)
diff --git a/hooks/useWebgalTerreAssets.ts b/hooks/useWebgalTerreAssets.ts
index 6064639..031c28a 100644
--- a/hooks/useWebgalTerreAssets.ts
+++ b/hooks/useWebgalTerreAssets.ts
@@ -23,8 +23,8 @@ const useWebgalTerreAssets = (webgalTerreApiUrl: string) => {
{ platform: 'macos', url: findAssetsUrl(data.assets, 'mac.*.zip') },
{ platform: 'linux', url: findAssetsUrl(data.assets, 'Linux.*.zip') },
{ platform: 'linuxArm64', url: findAssetsUrl(data.assets, 'Linux_Arm64.*.zip') },
+ { platform: 'android', url: findAssetsUrl(data.assets, 'Android.*.apk') }
]
-
}
))
} catch (error) {
diff --git a/locales/en.json b/locales/en.json
index 20f3808..43381bf 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -74,7 +74,7 @@
},
"multiplatform": {
"title": "Multi Platform",
- "line0": "WebGAL Terre support Windows / macOS / Linux",
+ "line0": "WebGAL Terre support Windows / macOS / Linux / android",
"line1": "Export game support Web / Windows / macOS / Linux / android"
}
},
@@ -95,6 +95,7 @@
"downloadMacos": "Download macOS zip",
"downloadLinux": "Download Linux zip",
"downloadLinuxArm64": "Download Linux Arm64 zip",
+ "downloadAndroid": "Download Android apk",
"otherDownloadLink": "Other Download Link",
"otherDownloadLinkInfo": "If the above download address is slow, please try using the following download address",
"systemRequirements": {
@@ -145,4 +146,4 @@
"bilibili": "Bilibili",
"links": "Links"
}
-}
+}
\ No newline at end of file
diff --git a/locales/ja.json b/locales/ja.json
index 8500604..9fa6aa1 100644
--- a/locales/ja.json
+++ b/locales/ja.json
@@ -74,7 +74,7 @@
},
"multiplatform": {
"title": "マルチプラットフォームのサポート",
- "line0": "WebGAL Terre が Windows / macOS / Linux での開発をサポート",
+ "line0": "WebGAL Terre が Windows / macOS / Linux / android での開発をサポート",
"line1": "開発したゲームは Web / Windows / macOS / Linux / Android でプレイできる"
}
},
@@ -95,6 +95,7 @@
"downloadMacos": "macOS zip をダウンロード",
"downloadLinux": "Linux zip をダウンロード",
"downloadLinuxArm64": "Linux Arm64 zip をダウンロード",
+ "downloadAndroid": "Android apk をダウンロード",
"otherDownloadLink": "その他のダウンロードリンク",
"otherDownloadLinkInfo": "上記のダウンロードリンクが遅い場合は、以下のダウンロードリンクをお試しください",
"systemRequirements": {
@@ -145,4 +146,4 @@
"bilibili": "Bilibili",
"links": "フレンドリーリンク"
}
-}
+}
\ No newline at end of file
diff --git a/locales/zh-cn.json b/locales/zh-cn.json
index 4c6ebf5..716b8ae 100644
--- a/locales/zh-cn.json
+++ b/locales/zh-cn.json
@@ -74,7 +74,7 @@
},
"multiplatform": {
"title": "多平台支持",
- "line0": "WebGAL Terre 支持 Windows / macOS / Linux",
+ "line0": "WebGAL Terre 支持 Windows / macOS / Linux / android",
"line1": "导出游戏支持 Web / Windows / macOS / Linux / android"
}
},
@@ -95,6 +95,7 @@
"downloadMacos": "下载 macOS 压缩包",
"downloadLinux": "下载 Linux 压缩包",
"downloadLinuxArm64": "下载 Linux Arm64 压缩包",
+ "downloadAndroid": "下载 Android apk",
"otherDownloadLink": "其它下载地址",
"otherDownloadLinkInfo": "如果上面的下载地址下载速度比较慢,请尝试使用以下下载地址",
"systemRequirements": {
@@ -145,4 +146,4 @@
"bilibili": "哔哩哔哩",
"links": "友情链接"
}
-}
+}
\ No newline at end of file