Compare commits

..

3 Commits

Author SHA1 Message Date
a1375beaac Enable the workflow for branches 2024-05-18 17:30:12 +03:00
51b1265a79 Add build workflow (test) 2024-05-18 17:29:36 +03:00
69a43e9b14 Add ffmpeg and ffprobe commands 2024-05-18 17:24:26 +03:00
3 changed files with 37 additions and 0 deletions

15
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,15 @@
on:
push:
branches: [ main ]
tags: [ '*' ]
jobs:
Build:
runs-on: ubuntu-22.04
container: saschpe/android-sdk:34-jdk22.0.1_8
steps:
- name: Install Node
run: apt install node.js
- name: Build APK
run: ./gradlew build

11
cmd/ffmpeg Normal file
View File

@ -0,0 +1,11 @@
#!/system/bin/sh
BASE_DIR=$(dirname $0)
for LIB_DIR in $BASE_DIR/lib/{$(getprop ro.system.product.cpu.abilist)}; do
[ -d "$LIB_DIR" ] && break
unset -v LIB_DIR
done
LD_LIBRARY_PATH=$LIB_DIR:/system/lib64:/system/lib:/etc/lib \
app_process -Djava.class.path=$BASE_DIR/classes.dex /sdcard ua.pp.antonlyap.ffmpeg.CLI ffmpeg "$@"

11
cmd/ffprobe Normal file
View File

@ -0,0 +1,11 @@
#!/system/bin/sh
BASE_DIR=$(dirname $0)
for LIB_DIR in $BASE_DIR/lib/{$(getprop ro.system.product.cpu.abilist)}; do
[ -d "$LIB_DIR" ] && break
unset -v LIB_DIR
done
LD_LIBRARY_PATH=$LIB_DIR:/system/lib64:/system/lib:/etc/lib \
app_process -Djava.class.path=$BASE_DIR/classes.dex /sdcard ua.pp.antonlyap.ffmpeg.CLI ffprobe "$@"