Skip to content

Commit ddbf82b

Browse files
committed
feat(pages/download): 新增 oma Termux 版安装指南
1 parent a7c53ac commit ddbf82b

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

i18n/locales/zh-cn/download.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101
"omaTagLine": "简明好用的 APT 软件包管理界面",
102102
"omaSystemSupportInfo": [
103103
"使用终端运行该命令可在 Debian、Ubuntu、Linux Mint 及衍生版,以及 deepin、",
104-
"开放麒麟 (openKylin) 等发行版安装小熊猫包管理"
104+
"开放麒麟 (openKylin) 等发行版安装小熊猫包管理",
105+
"在 Termux (>= 0.118.2) 终端运行该命令即可安装小熊猫包管理"
105106
]
106107
}
107108
}

pages/download/index.vue

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,8 @@ const omaNavigationList = [
272272
// url: 'https://github.com/AOSC-Dev/oma/releases/tag/v1.8.2'
273273
// }
274274
];
275-
const omaInstallScript = 'curl -sSf https://repo.aosc.io/get-oma.sh | sudo sh';
275+
const omaInstallScriptDistro = 'curl -sSf https://repo.aosc.io/get-oma.sh | sudo sh';
276+
const omaInstallScriptTermux = 'pkg install oma';
276277
// #endregion
277278
278279
// #region Fetch
@@ -499,12 +500,22 @@ if (recipeError || recipeI18nError) {
499500
:use-hljs="false"
500501
code-class="text-white"
501502
button-class="ml-6 mt-[2px] bg-white"
502-
:code-text="omaInstallScript" />
503+
:code-text="omaInstallScriptDistro" />
503504
<p class="mt-[6px] text-[10pt]">
504505
<span>{{ textValue.omaSystemSupportInfo[0] }}</span>
505506
<br />
506507
<span>{{ textValue.omaSystemSupportInfo[1] }}</span>
507508
</p>
509+
<CopyCodeHighlight
510+
class="mt-4 w-fit bg-black/60 py-2 pr-6"
511+
language="bash"
512+
:use-hljs="false"
513+
code-class="text-white"
514+
button-class="ml-6 mt-[2px] bg-white"
515+
:code-text="omaInstallScriptTermux" />
516+
<p class="mt-[6px] text-[10pt]">
517+
<span>{{ textValue.omaSystemSupportInfo[2] }}</span>
518+
</p>
508519
</div>
509520
</div>
510521
</template>

0 commit comments

Comments
 (0)