mirror of
https://github.com/tumillanino/miasma-os.git
synced 2026-04-11 07:15:31 +00:00
kernel still breaking. updated name which may have been issue
This commit is contained in:
18
docs/solarpowered-main/files/scripts/shared/android-tools.sh
Normal file
18
docs/solarpowered-main/files/scripts/shared/android-tools.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VER=$(basename $(curl -Ls -o /dev/null -w %{url_effective} https://github.com/pkgforge-dev/android-tools-AppImage/releases/latest))
|
||||
curl -fLs --create-dirs https://github.com/pkgforge-dev/android-tools-AppImage/releases/download/${VER}/Android_Tools-${VER%@*}-anylinux-x86_64.AppImage -o /usr/bin/android-tools
|
||||
chmod +x /usr/bin/android-tools
|
||||
mkdir -p /tmp/android-tmp/
|
||||
(
|
||||
cd /tmp/android-tmp/
|
||||
/usr/bin/android-tools --appimage-extract
|
||||
)
|
||||
readarray -t BINS < <(find /tmp/android-tmp/AppDir/bin/ -type f -printf "%f\n")
|
||||
rm -rf /tmp/android-tmp/
|
||||
for bin in "${BINS[@]}"; do
|
||||
case "$bin" in
|
||||
*xdg-open|*.hook|*.conf) continue;;
|
||||
esac
|
||||
ln -fs /usr/bin/android-tools /usr/bin/"$bin"
|
||||
done
|
||||
Reference in New Issue
Block a user