Upload files to "/"
This commit is contained in:
parent
5efa4c4803
commit
7c8fd5535b
1 changed files with 13 additions and 0 deletions
13
cromite_action.sh
Normal file
13
cromite_action.sh
Normal 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!"
|
Loading…
Reference in a new issue