You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested with Fedora and Debian Linux, other systems should work with minimal adjustments.
9
+
已在 Fedora 與 Debian Linux 測試,其他系統只需最少的調整即可運作。
10
10
11
11
## 需求
12
12
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.
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`以完成安裝。
16
16
17
-
## Building AAPS with Gradle wrapper
17
+
## 使用 Gradle wrapper 建置 AAPS
18
18
19
-
### 1. Generate a Java keystore file for signing AAPS
19
+
### 1. 產生用於簽署 AAPS 的 Java 金鑰庫檔案
20
20
21
-
If you already have a keystore file for signing AAPS, reuse that.
21
+
如果你已經有用於簽署 AAPS 的金鑰庫檔案,請重複使用該檔案。
22
22
23
23
```sh
24
24
keytool -genkeypair -v \
@@ -29,19 +29,19 @@ keytool -genkeypair -v \
29
29
-validity 20000
30
30
```
31
31
32
-
You will need the keystore file and passphrase every time you update AAPS.
32
+
每次更新 AAPS 時,你都需要該金鑰庫檔案與通關密語。
33
33
34
-
### 2. Compile the AAPS APK file
34
+
### 2. 編譯 AAPS 的 APK 檔案
35
35
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.
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.
0 commit comments