diff --git a/.vitepress/theme/components/DownloadLink.vue b/.vitepress/theme/components/DownloadLink.vue index f739f79..0371d02 100644 --- a/.vitepress/theme/components/DownloadLink.vue +++ b/.vitepress/theme/components/DownloadLink.vue @@ -17,7 +17,7 @@ texts.quarkDownload }} {{ texts.mirrorChyanDownload }} - {{ + {{ texts.blockhaityapi }} {{ texts.cnbDownload }} @@ -59,8 +59,9 @@ export default { }, methods: { detectLanguage() { - const urlPath = window.location.pathname - const browserLang = navigator.language.toLowerCase() + const hasBrowserApi = typeof window !== 'undefined' && typeof navigator !== 'undefined' + const urlPath = hasBrowserApi ? window.location.pathname : '' + const browserLang = hasBrowserApi ? navigator.language.toLowerCase() : '' const textDict = { zh: { currentVersion: '当前最新版本:', @@ -78,7 +79,7 @@ export default { blockhaityapi: "BlockHaity's API", sourceCodePath: '/zh_CN/docs/manual/source-code', dockerPath: '/zh_CN/docs/manual/quick-start', - androidPath: 'https://bas.blockhaity.qzz.io?target=/2025/02/10/BAAH%E5%9C%A8%E9%80%86%E5%A4%A9%E7%8E%AF%E5%A2%83%E4%B8%8B%E7%9A%84%E8%BF%90%E8%A1%8C/' + androidPath: 'https://bas.blockhaity.eu.org?target=/2025/02/10/BAAH%E5%9C%A8%E9%80%86%E5%A4%A9%E7%8E%AF%E5%A2%83%E4%B8%8B%E7%9A%84%E8%BF%90%E8%A1%8C/' }, en: { currentVersion: 'Current Latest Version: ', @@ -97,7 +98,7 @@ export default { blockhaityapi: "BlockHaity's API", sourceCodePath: '/en_US/docs/manual/source-code', dockerPath: '/en_US/docs/manual/quick-start', - androidPath: 'https://bas.blockhaity.qzz.io?target=/2025/02/10/BAAH%E5%9C%A8%E9%80%86%E5%A4%A9%E7%8E%AF%E5%A2%83%E4%B8%8B%E7%9A%84%E8%BF%90%E8%A1%8C/' + androidPath: 'https://bas.blockhaity.eu.org?target=/2025/02/10/BAAH%E5%9C%A8%E9%80%86%E5%A4%A9%E7%8E%AF%E5%A2%83%E4%B8%8B%E7%9A%84%E8%BF%90%E8%A1%8C/' } } @@ -119,6 +120,9 @@ export default { this.releaseBody = this.texts.loading }, detectPlatform() { + if (typeof navigator === 'undefined') { + return + } const platform = navigator.platform.toLowerCase() if (platform.includes('win')) { this.platform = 'windows' diff --git a/src/en_US/docs/manual/QA.md b/src/en_US/docs/manual/QA.md index d9dafbd..75bbe34 100644 --- a/src/en_US/docs/manual/QA.md +++ b/src/en_US/docs/manual/QA.md @@ -11,10 +11,23 @@ description: Quick solutions to common BAAH automation script issues update over ## 0. How to update BAAH -Download BAAH1.x.xx_update.zip from [GitHub Release](https://github.com/BlueArchiveArisHelper/BAAH/releases/) or [Gitee Release](https://gitee.com/sammusen/BAAH/releases) or QQ group or by clicking the update button in the GUI, then extract all contents to the BAAH folder and overwrite. +Download BAAH1.x.xx_update.zip from [GitHub Release](https://github.com/BlueArchiveArisHelper/BAAH/releases/) or the [download page](/en_US/download), or by clicking the update button in the GUI, then extract all contents to the BAAH folder and overwrite. Or just double click `UPDATE.exe` to update BAAH. +### About containers + +When using containers, updates may fail due to network issues (this mostly happens in mainland China). You can run this script to switch to a mirror download source: +```bash +# Inside the container: +aria2c https://baah.sanmusen.top/res/change-source.sh -d . -o change-source.sh && bash change-source.sh && rm change-source.sh +# Outside the container +## docker +docker exec -it bash -c "aria2c https://baah.sanmusen.top/res/change-source.sh -d /root -o change-source.sh && bash /root/change-source.sh && rm /root/change-source.sh" +## podman +podman exec -it bash -c "aria2c https://baah.sanmusen.top/res/change-source.sh -d /root -o change-source.sh && bash /root/change-source.sh && rm /root/change-source.sh" +``` + ## 1. How to provide feedback Please: @@ -73,7 +86,7 @@ BAAH is compatible with ALAS and MAA, but: ## 10. BAAH.exe disappeared after extraction -Please add the BAAH folder to your antivirus software's whitelist and extract again. BAAH is completely open source. As long as you download BAAH from GitHub Release, MirrorChyan, the Quark Cloud Disk link at the beginning of this document, or the QQ group, you can use it safely. +Please add the BAAH folder to your antivirus software's whitelist and extract again. BAAH is completely open source. As long as you download BAAH from GitHub Release, MirrorChyan, or the official download page, you can use it safely. ## 11. How to make BAAH run on a schedule diff --git a/src/en_US/docs/manual/get-support.md b/src/en_US/docs/manual/get-support.md index 16d36d4..5ca0151 100644 --- a/src/en_US/docs/manual/get-support.md +++ b/src/en_US/docs/manual/get-support.md @@ -23,19 +23,19 @@ BAAH has comprehensive community support. If you encounter any problems while us You can get help through the following channels. -[QQ Group Q&A Group](https://qm.qq.com/q/K2wAMIovqQ): 985729020 +[GitHub Discussions](https://github.com/BlueArchiveArisHelper/BAAH/discussions) (Recommended for international users) -[Tencent Channel](https://pd.qq.com/s/5atxio0vq) +[GitHub Issues](https://github.com/BlueArchiveArisHelper/BAAH/issues) -[GitHub Discussions](https://github.com/BlueArchiveArisHelper/BAAH/discussions) +[QQ Group Q&A Group](https://qm.qq.com/q/K2wAMIovqQ): 985729020 (For Chinese users) -> :memo: **Note:** Please prioritize consulting in the group. +> :memo: **Note:** Please prioritize GitHub Discussions / Issues for international users, and the QQ group for Chinese users. ### Before Asking Questions 1. Please make sure you have watched the tutorial videos and this documentation as suggested, as they can solve the vast majority of problems. 2. Check if the software has an [update](/en_US/docs/manual/QA.md#0-how-to-update-baah), and try updating to the latest version. -3. If you are in the QQ group, you can first browse through the group chat history to see if there are similar situations and how they were resolved. +3. Search GitHub [Discussions](https://github.com/BlueArchiveArisHelper/BAAH/discussions) and closed [Issues](https://github.com/BlueArchiveArisHelper/BAAH/issues?q=is%3Aissue%20state%3Aclosed) to see if there are similar situations and how they were resolved. (Chinese users can also browse the QQ group chat history.) 4. Read GitHub [Issues](https://github.com/BlueArchiveArisHelper/BAAH/issues), including closed [Issues](https://github.com/BlueArchiveArisHelper/BAAH/issues?q=is%3Aissue%20state%3Aclosed), to see if there are similar problems. ### When Asking Questions diff --git a/src/en_US/docs/manual/introduction/assault.md b/src/en_US/docs/manual/introduction/assault.md index f495a1d..b977898 100644 --- a/src/en_US/docs/manual/introduction/assault.md +++ b/src/en_US/docs/manual/introduction/assault.md @@ -43,7 +43,7 @@ This feature allows Team 1 in Assault to use Assistant. Please leave an empty sl 1. Go to the team formation interface and enter the student borrowing screen. 2. Click the `ASSAULT HELPER STUDENT` button. ![assist Student](/img/assault/assault_helper_1.webp) -1. In the popup window, use the left mouse button to select the students you want to borrow. +3. In the popup window, use the left mouse button to select the students you want to borrow. ![Select Students](/img/assault/assault_helper_2.webp) > :memo: **Note:** If you need to borrow SPECIAL students, please check `Whether assault helper is support role` to enable this feature. You only need to leave an empty slot in the back row, and select the SPECIAL students you want to borrow. diff --git a/src/en_US/docs/manual/introduction/explore-stage.md b/src/en_US/docs/manual/introduction/explore-stage.md index b25d496..4293bb5 100644 --- a/src/en_US/docs/manual/introduction/explore-stage.md +++ b/src/en_US/docs/manual/introduction/explore-stage.md @@ -5,7 +5,7 @@ If `Use simple explore` is selected, the function to skip grid movement will be used. Please note that this will not collect all rewards, but it can increase the success rate of stage exploration (especially in the early game when your students' levels are low and you can't form a complete team). -Some grid-based stages cannot be cleared in one run to collect all rewards (Mission Obbjectives, Special Gift Boxes(50 Pyroxenes), and challenge achievements). For these stages, repeated battles will be performed to ensure all rewards are collected. +Some grid-based stages cannot be cleared in one run to collect all rewards (Mission Objectives, Special Gift Boxes (50 Pyroxenes), and challenge achievements). For these stages, repeated battles will be performed to ensure all rewards are collected. ::: ::: warning diff --git a/src/en_US/docs/manual/introduction/notification.md b/src/en_US/docs/manual/introduction/notification.md index 7e1483a..352bcd0 100644 --- a/src/en_US/docs/manual/introduction/notification.md +++ b/src/en_US/docs/manual/introduction/notification.md @@ -59,7 +59,7 @@ Please check the `API Notification` option to enable this feature. ::: -You can use API to get notifications, which can be used to push to WeChat Official Accounts, QQ groups, etc. This requires some third-party services, please look it up on the internet yourself. +You can use API to get notifications, which can be used to push to messaging services such as Telegram, Discord, etc. This requires some third-party services, please look it up on the internet yourself. 1. Enter your API address in the `API Notification URL` field. > :memo: **Note:** You can click the `PUSHPLUS`, `SERVERCHAN` or `TELEGRAM BOT` buttons below the API address tab to automatically add the API addresses for [PushPlus](https://www.pushplus.plus/), [ServerChan](https://sct.ftqq.com/) or [Telegram Bot](https://t.me/BotFather). @@ -109,10 +109,10 @@ In the `Customize the email content` field, you can fill in the following **fiel | 12 | %ASSAULT_DATE% | Total assault date | Date | | 13 | %CRAFT_FAILED% | Craft failed | Reason | | 14 | %EVENT_DATE% | Event date | Date | -| 13 | %SCREENSHOT_READ_FAIL_TIMES% | Number of screenshot read failures | Number | -| 14 | %RESTART_EMULATOR_TIMES% | Number of emulator restarts | Number | -| 15 | %SCREENSHOT_DATA% | Screenshot data | RGB value or None when screenshot mode is pipe | -| 16 | %CURRENT_PERIOD_TASK_INDEX% | Executed task sequence number | Number, -1 means no task has been executed | +| 15 | %SCREENSHOT_READ_FAIL_TIMES% | Number of screenshot read failures | Number | +| 16 | %RESTART_EMULATOR_TIMES% | Number of emulator restarts | Number | +| 17 | %SCREENSHOT_DATA% | Screenshot data | RGB value or None when screenshot mode is pipe | +| 18 | %CURRENT_PERIOD_TASK_INDEX% | Executed task sequence number | Number, -1 means no task has been executed | ::: details Example diff --git a/src/en_US/docs/manual/introduction/shop.md b/src/en_US/docs/manual/introduction/shop.md index 59ea422..fa345b1 100644 --- a/src/en_US/docs/manual/introduction/shop.md +++ b/src/en_US/docs/manual/introduction/shop.md @@ -9,4 +9,4 @@ The shop locates items to be purchased based on row and column relationships, yo - If you want to purchase all items, please check `Buy All`. - `Refresh times` refers to the number of times clicking the **Refresh** button after purchase, which consumes Pyroxene. - If you don't want to buy items in a certain row, just leave it blank, which will prompt **No tasks set here**. -- The shop is divided into Normal Shop and Tacticial Challenge Shop, which can be filled in independently. +- The shop is divided into Normal Shop and Tactical Challenge Shop, which can be filled in independently. diff --git a/src/en_US/docs/manual/quick-start.md b/src/en_US/docs/manual/quick-start.md index 9d23a99..699ee44 100644 --- a/src/en_US/docs/manual/quick-start.md +++ b/src/en_US/docs/manual/quick-start.md @@ -34,6 +34,8 @@ description: Complete BlueArchive Aris Helper deployment in 3 steps! MuMu emulat [Video Tutorial](https://www.bilibili.com/video/BV1ZxfGYSEVr) +> :memo: **Note:** The official tutorial video is in Chinese, but the steps below cover the same process. + First, download the approximately 160MB compressed package and extract it to any folder. [Go to Download Page](/en_US/download) @@ -61,7 +63,7 @@ See [Deploy from Source Code](/en_US/docs/manual/source-code) for details. == Linux **Linux** -First, ensure your system has Docker installed. You can check by entering the following command +First, ensure your system has Docker or podman installed. You can check by entering the following command ``` bash # For ROOT users @@ -160,9 +162,31 @@ For more help on how to use Docker, head to https://docs.docker.com/go/guides/ Then, pull the image, create and run the container. +Image release: [Github Package](https://github.com/BlueArchiveArisHelper/BAAH/pkgs/container/baah) + +::: details docker +``` bash +# If you use an emulator/other Android container, use port forwarding +sudo docker run -d --name BAAH -p 8000:8000 ghcr.io/bluearchivearishelper/baah:latest + +# If you need to connect to a remote Android device, start the ADB Server on the host and use host mode +sudo docker run -d --name BAAH --net=host ghcr.io/bluearchivearishelper/baah:latest + +# If you are in mainland China and cannot pull the image from ghcr.io, please refer to the mirror registries listed in the Chinese documentation (/zh_CN/docs/manual/quick-start). +``` +::: +:::details podman ``` bash -docker run -d --name BAAH -p 8000:8000 ghcr.io/bluearchivearishelper/baah:latest +# It is recommended to run the BAAH container at the system level +# If you use an emulator/other Android container, use port forwarding +podman run -d --name BAAH -p 8000:8000 ghcr.io/bluearchivearishelper/baah:latest + +# If you need to connect to a remote Android device, start the ADB Server on the host and use host mode +podman run -d --name BAAH --net=host ghcr.io/bluearchivearishelper/baah:latest + +# If you are in mainland China and cannot pull the image from ghcr.io, please refer to the mirror registries listed in the Chinese documentation (/zh_CN/docs/manual/quick-start). ``` +::: Then open your browser and navigate to `http://:8000` diff --git a/src/en_US/docs/manual/source-code.md b/src/en_US/docs/manual/source-code.md index b135917..88ab43d 100644 --- a/src/en_US/docs/manual/source-code.md +++ b/src/en_US/docs/manual/source-code.md @@ -9,7 +9,7 @@ description: BAAH source code deployment solution for developers, requires Pytho # Deploying from Source Code -For Android Termux deployment, please visit [🔗 Deployment Method](https://bas.blockhaity.qzz.io?target=/2025/02/10/BAAH%E5%9C%A8%E9%80%86%E5%A4%A9%E7%8E%AF%E5%A2%83%E4%B8%8B%E7%9A%84%E8%BF%90%E8%A1%8C/) (Only Chinese!!!) +For Android Termux deployment, please visit [🔗 Deployment Method](https://bas.blockhaity.eu.org?target=/2025/02/10/BAAH%E5%9C%A8%E9%80%86%E5%A4%A9%E7%8E%AF%E5%A2%83%E4%B8%8B%E7%9A%84%E8%BF%90%E8%A1%8C/) (Only Chinese!!!) ::: warning Regardless, it is not recommended for regular users to deploy directly from source code. There will be no official update program support for source code deployment, and using `git pull` also carries the risk of damaging the program. @@ -51,7 +51,7 @@ uv python install 3.10 ::: -Then, you need to prepare [adb](https://developer.android.google.cn/tools/releases/platform-tools) and [aria2](https://github.com/aria2/aria2/releases) yourself. +Then, you need to prepare [adb](https://developer.android.com/tools/releases/platform-tools) and [aria2](https://github.com/aria2/aria2/releases) yourself. ## Installing from Git @@ -99,12 +99,12 @@ git clone https://github.com/BlueArchiveArisHelper/BAAH.git Don't close the window, run `cd BAAH` to enter the folder, and install dependencies. ``` cmd -# Switch source -pip config set global.index-url https://mirrors.cernet.edu.cn/pypi/web/simple # Install dependencies pip install -r requirements.txt ``` +> :memo: **Note:** If you are in mainland China, you can append `-i https://mirrors.cernet.edu.cn/pypi/web/simple` to use a local PyPI mirror. + Use `python jsoneditor.py` to run the WebUI, and modify the adb and aria2 paths in the configuration file editing interface. Execute `python jsoneditor.py config.json` to start BAAH according to the config.json configuration. diff --git a/src/en_US/donate.md b/src/en_US/donate.md index 977924b..868d9b4 100644 --- a/src/en_US/donate.md +++ b/src/en_US/donate.md @@ -4,18 +4,16 @@ If you really like BAAH and would like to buy the developer a cup of milk tea (o ## Paid Donation -You can purchase Mirror-chan CDK and use it for downloads and updates. This not only allows the developer to earn a commission, but also enables high-speed downloads/updates. +You can purchase a MirrorChyan CDK and use it for downloads and updates. This not only allows the developer to earn a commission, but also enables high-speed downloads/updates. ## Free Donation -Here are the developers' payment codes or Afdian links. - -Software maintenance is not easy. If you feel this software has been helpful to you, you are welcome to sponsor through Afdian or WeChat QR code. Your support will be the motivation for developers to continue maintenance. +The developer accepts donations through Afdian (爱发电): ::: details sanmusen214 - +![sanmusen214](/img/donate/sanmusen214.webp) ::: ::: warning -Message from the developer: Thank you for your support of BAAH! Please consider sponsoring within an amount you're comfortable with. Donations made via WeChat or other channels do not include any additional benefits. Students and minors, please refrain from tipping~ Giving two coins to BAAH's [tutorial video](https://www.bilibili.com/video/BV1ZxfGYSEVr/) would also be a huge encouragement and support for us. Thank you very much~ -::: +Message from the developer: Thank you for your support of BAAH! Please consider donating within an amount you're comfortable with. Donations do not include any additional benefits. Students and minors, please refrain from donating~ Even giving the BAAH repository a star on GitHub or spreading the word among your friends would be a great encouragement to us. Thank you very much~ +::: \ No newline at end of file diff --git a/src/en_US/download.md b/src/en_US/download.md index d34b47c..33f9c1d 100644 --- a/src/en_US/download.md +++ b/src/en_US/download.md @@ -8,20 +8,15 @@ description: Get BlueArchive Aris Helper automation script for free! Windows rec # Download BAAH ::: tip -You can join one of the following QQ groups to get the latest version update notifications +To get the latest version update notifications: -**Mute Notification Group 2: 1056031857** +- **Star/Watch** the [BAAH GitHub repository](https://github.com/BlueArchiveArisHelper/BAAH) and enable notifications for new releases. -**Mute Notification Group 1: 1029291081 (Full)** +To get usage help: -**Mute Notification Group: 715586983 (Full)** - - - -You can join one of the following QQ groups for usage help - -**Q&A Group: 985729020** +- Ask in [GitHub Discussions](https://github.com/BlueArchiveArisHelper/BAAH/discussions) or open an [Issue](https://github.com/BlueArchiveArisHelper/BAAH/issues). +Chinese users can also join the QQ groups listed in the [Chinese documentation](/zh_CN/download). ::: @@ -38,7 +33,8 @@ You can join one of the following QQ groups for usage help Quark Cloud Download MirrorChyan Download (CDK Required) GitHub Release -BlockHaity's API +BlockHaity's API +Cloud Native Build == macOS @@ -51,7 +47,7 @@ You can join one of the following QQ groups for usage help == Android Termux -View Android Deployment Tutorial (Only Chinese) +View Android Deployment Tutorial (Only Chinese) :::: diff --git a/src/en_US/index.md b/src/en_US/index.md index a52989c..74ed96a 100644 --- a/src/en_US/index.md +++ b/src/en_US/index.md @@ -26,7 +26,7 @@ features: - title: Powerful Cross-platform Capability details: Whether it's Windows, macOS, Linux or even Android (experimental), BAAH can run on all platforms. - title: Complete Community Support - details: You can submit Issues in the BAAH GitHub repository or ask questions in the QQ Q&A group (985729020). + details: You can submit Issues in the BAAH GitHub repository or ask questions in GitHub Discussions. Chinese users can also join the QQ Q&A group (985729020). # SEO Optimization @@ -35,15 +35,14 @@ subtitle: Official Download and Documentation description: BAAH is an open-source free Blue Archive automation tool, supporting Windows/macOS/Linux/Android multi-platform, providing one-stop solutions for game task automation, resource collection, shop purchases, dungeon farming, etc. --- -## Supported Functions: +## Supported Functions -- Auto open emulator -- Collect (Cafe Rewards, Invite in Cafe, Touch Head, Club Sign in, Daily Task Rewards, MailBox,Event Rewards,Tactical Challenge -- Rewards, Total Assault Rewards) -- Spend tickets/power to raid (Timetable, Normal, Hard, Event, Bounty, Commissions, Scrimmage, Tactical Challenge, Total Assault) -- Buy (Normal Shop,Tactical Challenge Shop) -- Explore (Momotalk, Normal, Hard, Event, Episode) -- Update game (Game Package, Resource Package) +- Auto open the emulator, automatically run tasks, custom add startup accelerator tasks, and auto close the emulator. +- Collect (Cafe Output, Invite in Cafe, Touch Head, Club Sign-in, Daily Task Rewards, Mailbox, Event Rewards, Tactical Challenge Rewards, Total Assault Rewards). +- Spend AP/tickets to sweep (Schedule, Normal, Hard, Event, Bounty, Commissions, Scrimmage, Tactical Challenge, Total Assault). +- Buy (Normal Shop, Tactical Challenge Shop). +- Explore (Clear MomoTalk notification markers, push Normal, Hard, Event stages, push Main Story). +- Auto update the game (Game Package, Resource Package). ## Contributors
diff --git a/src/public/res/change-source.sh b/src/public/res/change-source.sh new file mode 100644 index 0000000..5fd4510 --- /dev/null +++ b/src/public/res/change-source.sh @@ -0,0 +1,66 @@ +#!/bin/bash +# 功能:配置 Ubuntu 源、Git 代理、UV PyPI 镜像 + +set -e + +# ------------------- 1. 系统 apt 源 ------------------- +SOURCES="/etc/apt/sources.list" +if [ -f "$SOURCES" ]; then + if ! grep -q "mirrors.cernet.edu.cn" "$SOURCES"; then + echo "未检测到 mirrors.cernet.edu.cn,正在替换 archive.ubuntu.com ..." + sed -i 's@//.*archive.ubuntu.com@//mirrors.cernet.edu.cn@g' "$SOURCES" + echo "替换完成。" + else + echo "已存在 mirrors.cernet.edu.cn,无需修改。" + fi +else + echo "警告:$SOURCES 不存在,跳过。" +fi + +# ------------------- 2. Git 代理 ------------------- +GIT_CONFIG="/app/BAAH/.git/config" +if [ -f "$GIT_CONFIG" ]; then + if ! grep -q "v6.gh-proxy.org" "$GIT_CONFIG"; then + echo "未检测到 v6.gh-proxy.org,将 github.com 替换为 v6.gh-proxy.com ..." + sed -i 's@github.com@v6.gh-proxy.com@g' "$GIT_CONFIG" + echo "替换完成。" + else + echo "已存在 v6.gh-proxy.org,无需修改。" + fi +else + echo "警告:$GIT_CONFIG 不存在,跳过。" +fi + +# ------------------- 3. UV PyPI 源 ------------------- +UV_MIRROR="https://mirrors.cernet.edu.cn/pypi/web/simple" +UV_CONFIG="/etc/uv/uv.toml" + +mkdir -p "$(dirname "$UV_CONFIG")" + +if [ -f "$UV_CONFIG" ]; then + if grep -q "mirrors.cernet.edu.cn" "$UV_CONFIG"; then + echo "已存在教育网 PyPI 镜像,无需修改。" + else + if grep -q "^\[\[.*index\]\]" "$UV_CONFIG"; then + sed -i "s@^url = .*@url = \"$UV_MIRROR\"@" "$UV_CONFIG" + echo "已替换 index 的 url 为教育网镜像。" + else + cat >> "$UV_CONFIG" << EOF + +[[index]] +url = "$UV_MIRROR" +default = true +EOF + echo "已添加教育网 PyPI 镜像配置。" + fi + fi +else + cat > "$UV_CONFIG" << EOF +[[index]] +url = "$UV_MIRROR" +default = true +EOF + echo "已创建 /etc/uv/uv.toml 并设置教育网 PyPI 镜像。" +fi + +echo "所有任务执行完毕。" \ No newline at end of file diff --git a/src/public/res/dev-container-initialize.sh b/src/public/res/dev-container-initialize.sh deleted file mode 100755 index 302f0ab..0000000 --- a/src/public/res/dev-container-initialize.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/bash - -echo '==================' -echo 'BAAH 开发容器初始化' -echo '==================' - -echo '更换apt软件源' -echo 'Types: deb -URIs: https://mirrors.cernet.edu.cn/debian -Suites: bookworm bookworm-updates bookworm-backports -Components: main contrib non-free non-free-firmware -Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg - -# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释 -# Types: deb-src -# URIs: https://mirrors.cernet.edu.cn/debian -# Suites: bookworm bookworm-updates bookworm-backports -# Components: main contrib non-free non-free-firmware -# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg - -# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换 -# Types: deb -# URIs: https://mirrors.cernet.edu.cn/debian-security -# Suites: bookworm-security -# Components: main contrib non-free non-free-firmware -# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg - -# # Types: deb-src -# # URIs: https://mirrors.cernet.edu.cn/debian-security -# # Suites: bookworm-security -# # Components: main contrib non-free non-free-firmware -# # Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg - -Types: deb -URIs: http://security.debian.org/debian-security -Suites: bookworm-security -Components: main contrib non-free non-free-firmware -Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg - -# Types: deb-src -# URIs: http://security.debian.org/debian-security -# Suites: bookworm-security -# Components: main contrib non-free non-free-firmware -# Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg -' | tee /etc/apt/sources.list.d/debian.sources - -echo '安装ADB' -apt update -apt install adb -y - -echo '安装aria2' -apt install aria2 -y - -echo '安装UV' -wget https://gh-proxy.com/github.com/dariogriffo/uv-debian/releases/download/0.8.3%2B1/uv_0.8.3-1+bookworm_amd64.deb -apt install ./uv_0.8.3-1+bookworm_amd64.deb -y -rm uv_0.8.3-1+bookworm_amd64.deb - -echo '安装依赖到项目目录' -python3.10 -m venv .venv -mkdir -p /root/.config/uv -echo '[[index]] -url = "https://mirrors.cernet.edu.cn/pypi/web/simple" -default = true' > ~/.config/uv/uv.toml -source .venv/bin/activate -uv pip install -r requirements.txt -uv pip install opencv-python-headless==4.9.0.80 - -rm dev-container-initialize.sh - -echo '==================' -echo 'BAAH 开发容器初始化完成' -echo '在IDE内激活虚拟环境即可使用' -echo '==================' \ No newline at end of file diff --git a/src/zh_CN/docs/manual/QA.md b/src/zh_CN/docs/manual/QA.md index 8c27d66..7401326 100644 --- a/src/zh_CN/docs/manual/QA.md +++ b/src/zh_CN/docs/manual/QA.md @@ -13,6 +13,19 @@ description: 快速解决 BAAH 自动化脚本的典型问题:更新覆盖安 或者双击目录下的 `UPDATE.exe` 来更新 BAAH 。 +### 关于容器 + +当你使用容器的时候,你可能会遇到因网络问题而无法更新,你可以运行这个脚本来更换国内源: +```bash +# 在容器内: +aria2c https://baah.sanmusen.top/res/change-source.sh -d . -o change-source.sh && bash change-source.sh && rm change-source.sh +# 在容器外 +## docker +docker exec -it <容器名> bash -c "aria2c https://baah.sanmusen.top/res/change-source.sh -d /root -o change-source.sh && bash /root/change-source.sh && rm /root/change-source.sh" +## podman +podman exec -it <容器名> bash -c "aria2c https://baah.sanmusen.top/res/change-source.sh -d /root -o change-source.sh && bash /root/change-source.sh && rm /root/change-source.sh" +``` + ## 1. 如何反馈 请: diff --git a/src/zh_CN/docs/manual/source-code.md b/src/zh_CN/docs/manual/source-code.md index ed88f26..c9c64c8 100644 --- a/src/zh_CN/docs/manual/source-code.md +++ b/src/zh_CN/docs/manual/source-code.md @@ -7,7 +7,7 @@ description: 面向开发者的 BAAH 源码部署方案,需 Python 3.10 与 AD # 从源码部署 -Android Termux 部署请前往[🔗部署方法](https://bas.blockhaity.qzz.io?target=/2025/02/10/BAAH%E5%9C%A8%E9%80%86%E5%A4%A9%E7%8E%AF%E5%A2%83%E4%B8%8B%E7%9A%84%E8%BF%90%E8%A1%8C/) +Android Termux 部署请前往[🔗部署方法](https://bas.blockhaity.eu.org?target=/2025/02/10/BAAH%E5%9C%A8%E9%80%86%E5%A4%A9%E7%8E%AF%E5%A2%83%E4%B8%8B%E7%9A%84%E8%BF%90%E8%A1%8C/) ::: warning 无论如何,不建议普通用户直接从源码部署,从源码部署不会有官方的更新程序支持,使用 `git pull` 也会有损坏程序的风险。 diff --git a/src/zh_CN/download.md b/src/zh_CN/download.md index d4acfdd..a1cc9f3 100644 --- a/src/zh_CN/download.md +++ b/src/zh_CN/download.md @@ -38,7 +38,7 @@ description: 免费获取 BlueArchive Aris Helper 自动化脚本!Windows 推 夸克网盘下载 Mirror酱下载(需要CDK) GitHub Release -BlockHaity's API +BlockHaity's API Cloud Native Build == macOS @@ -52,7 +52,7 @@ description: 免费获取 BlueArchive Aris Helper 自动化脚本!Windows 推 == Android Termux -查看Android部署教程 +查看Android部署教程 ::::