Skip to content

Commit fbc8cb4

Browse files
committed
New translations clibuild.md (Chinese Traditional)
1 parent e322df6 commit fbc8cb4

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
# Build instructions for the command-line
1+
# 命令列建置說明
22

33
```{admonition} For users familiar with the command-line and git
44
:class: information
55
6-
The simplest option to build AAPS is the [Browser build](./BrowserBuild.md) alternative.
6+
建置 AAPS 的最簡單方式是 [Browser build](./BrowserBuild.md) 替代方案。
77
```
88

9-
Tested with Fedora and Debian Linux, other systems should work with minimal adjustments.
9+
已在 Fedora Debian Linux 測試,其他系統只需最少的調整即可運作。
1010

1111
## 需求
1212

13-
Consult the minimum required Java version from [this table](#Building-APK-recommended-specification-of-computer-for-building-apk-file). Install the appropriate OpenJDK package using the system package manager. For example in Debian, the packages are named like `openjdk-21-jdk`. It should include `javac` and `keytool` binaries.
13+
請參閱[這個表格](#Building-APK-recommended-specification-of-computer-for-building-apk-file)以確認所需的最低 Java 版本。 透過系統的套件管理器安裝相應的 OpenJDK 套件。 例如在 Debian 中,套件名稱為 `openjdk-21-jdk`。 其中應包含 `javac` `keytool` 可執行檔。
1414

15-
Download the *Android Command line tools* package from the [Android Studio page](https://developer.android.com/studio#command-line-tools-only). Android Studio itself is not required. More information about installing this package is found in [sdkmanager docs](https://developer.android.com/tools/sdkmanager). After the package is installed, you should manually set two [environment variables](https://developer.android.com/tools/variables): `ANDROID_HOME` and `PATH`. Finally, run `sdkmanager --licenses` to finish the installation.
15+
[Android Studio 頁面](https://developer.android.com/studio#command-line-tools-only)下載 *Android 指令列工具* 套件。 不需要安裝 Android Studio 本體。 更多關於安裝此套件的資訊可在 [sdkmanager 文件](https://developer.android.com/tools/sdkmanager)中找到。 套件安裝後,你需要手動設定兩個[環境變數](https://developer.android.com/tools/variables)`ANDROID_HOME` `PATH`。 最後,執行 `sdkmanager --licenses` 以完成安裝。
1616

17-
## Building AAPS with Gradle wrapper
17+
## 使用 Gradle wrapper 建置 AAPS
1818

19-
### 1. Generate a Java keystore file for signing AAPS
19+
### 1. 產生用於簽署 AAPS 的 Java 金鑰庫檔案
2020

21-
If you already have a keystore file for signing AAPS, reuse that.
21+
如果你已經有用於簽署 AAPS 的金鑰庫檔案,請重複使用該檔案。
2222

2323
```sh
2424
keytool -genkeypair -v \
@@ -29,19 +29,19 @@ keytool -genkeypair -v \
2929
-validity 20000
3030
```
3131

32-
You will need the keystore file and passphrase every time you update AAPS.
32+
每次更新 AAPS 時,你都需要該金鑰庫檔案與通關密語。
3333

34-
### 2. Compile the AAPS APK file
34+
### 2. 編譯 AAPS APK 檔案
3535

36-
Clone the [git repo](https://github.com/nightscout/AndroidAPS) if not already cloned. AAPS uses master branch for the latest stable version, ensure you are on the branch/tag you want to build.
36+
如果尚未複製,請複製該 git 儲存庫。 AAPS 使用 master 分支作為最新穩定版本,請確保你所在的分支/標籤是你要建置的版本。
3737

38-
Run `./gradlew :app:assembleFullRelease` in the repo. It automatically downloads Gradle, dependencies, and then compiles the code. When the build succeeds, you should have an unsigned APK at `app/build/outputs/apk/full/release/app-full-release-unsigned.apk`. It should have also installed an `apksigner` binary to `$ANDROID_HOME`. Update your `PATH` again.
38+
在儲存庫中執行 `./gradlew :app:assembleFullRelease`。 這會自動下載 Gradle 與相依項,然後編譯程式碼。 建置成功後,未簽署的 APK 應位於 `app/build/outputs/apk/full/release/app-full-release-unsigned.apk`。 系統也會在 `$ANDROID_HOME` 安裝一個 `apksigner` 可執行檔。 請再次更新你的 `PATH`
3939

40-
### 3. Create a signed APK file from the unsigned one
40+
### 3. 從未簽署的 APK 建立已簽署的 APK 檔案
4141

4242
<!-- Suggest building outside the git repo, to minimize risk of accidental APK commits -->
4343

44-
Change to your home directory and create a signed APK file:
44+
切換到你的家目錄,並建立已簽署的 APK 檔案:
4545

4646
```sh
4747
apksigner sign \
@@ -51,4 +51,4 @@ apksigner sign \
5151
./AndroidAPS/app/build/outputs/apk/full/release/app-full-release-unsigned.apk
5252
```
5353

54-
Now you have `app-full-release-signed.apk` ready for installation or upgrade.
54+
現在你已有 `app-full-release-signed.apk`,可用於安裝或升級。

0 commit comments

Comments
 (0)