Skip to content

Commit 2f5053c

Browse files
committed
Upload file
1 parent e7b0cde commit 2f5053c

3,000 files changed

Lines changed: 24629 additions & 6322 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/modun.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Kakathic
2+
cd pio/src/main/assets/module
3+
4+
for vmk in $(find etc/*.jar .local/share/apktool/framework/*.apk -type f); do
5+
mkdir -p "${vmk%.*}®${vmk##*.}_7zv2"
6+
unzip -oq "$vmk" -d "${vmk%.*}®${vmk##*.}_7zv2"
7+
rm -fr "$vmk"
8+
done
9+
10+
for vnk in $(find etc/apkeditor®jar_7zv2/frameworks/android/*apk etc/apktool®jar_7zv2/prebuilt/*.jar -type f); do
11+
mkdir -p "${vnk%.*}®${vnk##*.}_7zv1"
12+
unzip -oq "$vnk" -d "${vnk%.*}®${vnk##*.}_7zv1"
13+
rm -fr "$vnk"
14+
done
15+
16+
mkdir -p .cache/pip lib log root tmp TREE/ROM TOOL/APK usr
17+
18+
7z a -t7z -y -mx=9 ../module.so
19+
ls -lh ../module.so
20+
21+
rm -fr ../module

.github/workflows/android.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Android CI
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
UPAPK:
7+
description: 'Release APK'
8+
type: boolean
9+
default: false
10+
push:
11+
branches: [ "main" ]
12+
pull_request:
13+
branches: [ "main" ]
14+
permissions: write-all
15+
env:
16+
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
17+
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
18+
UPAPK: ${{ inputs.UPAPK }}
19+
jobs:
20+
build-release:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up JDK 17
25+
uses: actions/setup-java@v4
26+
with:
27+
java-version: '17'
28+
distribution: 'temurin'
29+
cache: gradle
30+
31+
- name: Build APK
32+
run: |
33+
chmod +x ./gradlew ./.github/modun.sh
34+
./.github/modun.sh
35+
chmod +x ./gradlew
36+
./gradlew assembleRelease --daemon -x lint -x test
37+
if [ "$UPAPK" == 'true' ];then
38+
VER=$(grep 'versionName' pio/build.gradle | cut -d'"' -f2)
39+
echo "Tool-Tree $VER"
40+
echo "VER=$VER" >> $GITHUB_ENV
41+
mkdir -p Up
42+
cp -rf pio/build/outputs/apk/*/*.apk "Up/Tool-Tree.$VER.apk"
43+
ls Up
44+
echo -e "- ![Downloads](https://img.shields.io/github/downloads/Zenlua/Tool-Tree/V$VER/total?label=Downloads&color=%230072F4)\n- See version notes: [Changelog](https://zenlua.github.io/Tool-Tree/Version.html)" > change.txt
45+
fi
46+
47+
- name: Upload APK
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: release-apk
51+
path: pio/build/outputs/apk/*/*.apk
52+
53+
- name: Release APK
54+
if: ${{ github.event_name == 'workflow_dispatch' && inputs.UPAPK == true }}
55+
uses: softprops/action-gh-release@v2
56+
with:
57+
name: "Tool-Tree ${{ env.VER }}"
58+
tag_name: "V${{ env.VER }}"
59+
files: Up/*
60+
body_path: "change.txt"
61+
62+
build-debug:
63+
runs-on: ubuntu-latest
64+
steps:
65+
- uses: actions/checkout@v4
66+
- name: Set up JDK 17
67+
uses: actions/setup-java@v4
68+
with:
69+
java-version: '17'
70+
distribution: 'temurin'
71+
cache: gradle
72+
73+
- name: Build APK
74+
run: |
75+
chmod +x ./gradlew ./.github/modun.sh
76+
./.github/modun.sh
77+
./gradlew assembleDebug --no-daemon -x lint -x test
78+
79+
- name: Upload APK
80+
uses: actions/upload-artifact@v4
81+
with:
82+
name: debug-apk
83+
path: pio/build/outputs/apk/*/*.apk

.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
*.iml
2+
.gradle
3+
.idea
4+
local.properties
5+
.idea/workspace.xml
6+
.idea/libraries
7+
.DS_Store
8+
build
9+
pio/build
10+
krscript/build
11+
common/build
12+
captures
13+
release
14+
release_mini
15+
app/build.gradle

README.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,6 @@
2424

2525
- **[See details](https://zenlua.github.io/Tool-Tree/website/Instruct.html)**
2626

27-
### APK build Termux
28-
29-
```shell
30-
pkg install git -y
31-
git clone https://github.com/Zenlua/Tool-Tree.git
32-
cd Tool-Tree
33-
chmod 777 ./.github/build_termux.sh
34-
./.github/build_termux.sh
35-
```
36-
37-
```shell
38-
# Copy APK to SD card
39-
termux-setup-storage
40-
cp -rf Tool-Tree.apk /sdcard/Tool-Tree.apk
41-
```
42-
4327
### Buy me a coffee
4428

4529
- **[Infor](https://zenlua.github.io/Tool-Tree/website/Information.html)**

app/AndroidManifest.xml

-10.7 KB
Binary file not shown.

app/DebugProbesKt.bin

-1.69 KB
Binary file not shown.

app/META-INF/ANDROID.RSA

-1.68 KB
Binary file not shown.

0 commit comments

Comments
 (0)