Upload files to "/"

This commit is contained in:
Lordify 2025-03-18 10:52:44 +00:00
parent 5efa4c4803
commit 7c8fd5535b

13
cromite_action.sh Normal file
View file

@ -0,0 +1,13 @@
#!/system/bin/sh
local Latest=$(curl -s https://api.github.com/repos/uazo/cromite/releases | grep arm64_SystemWebView.apk | grep -m 1 -o https://github.com/uazo/cromite/releases/download/.*.apk)
echo "Downloading Update..."
curl --dns-servers 1.1.1.1,1.0.0.1 -L -o /data/local/tmp/CromiteWebView.apk $Latest
sleep 1
echo "Installing Update..."
su -c pm install --install-location 1 /data/local/tmp/CromiteWebView.apk
sleep 1
echo "Cleaning Up..."
su -c rm -rf /data/local/tmp/CromiteWebView.apk
sleep 1
echo "Update Done!"