This is an installer for a shortcut that is system based with downloadable shortcuts (BETA)
What's New
Version 2.0
Public release!!! Activation key is your current ip address
What it does
65 actions-
Show NotificationGetting supporting files
-
Wait
-
Get IP Address
-
If
-
Show AlertAG
-
If
-
Show AlertAG
-
Create Folder
-
Ask for InputEnter your activation key
-
If
-
Show AlertAG
-
If
-
Text
-
Save File
-
Choose from MenuChoose version
-
Choose from MenuHome (v2.0)
-
Show NotificationInstalling (1/3 writing folders)
-
Create Folder
-
Create Folder
-
Create Folder
-
Create Folder
-
Create Folder
-
Create Folder
-
Create Folder
-
Create Folder
-
Create Folder
-
Create Folder
-
Wait
-
Show NotificationInstalling (2/3 writing critical files)
-
Text
-
Save File
-
Text
-
Save File
-
Text
-
Save File
-
Get Device Details
-
Get Device Details
-
Text
-
Save File
-
Get File
-
If
-
Show Alert
-
If
-
Text
-
Save File
-
Wait
-
Get File
-
If
-
Show NotificationInstalling (3/3 setup admin stuff)
-
Ask for InputCreate an admin account
-
Create Folder
-
Save File
-
Ask for InputSet admin password
-
Save File
-
Text
-
Save File
-
Show AlertAG
-
Open URLs
-
If
-
Get File
-
Show NotificationWelcome …3/3 installing (Installing patches/features)
-
Get File
-
Create Folder
-
Show AlertAG
-
Open URLs
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/web'
#include 'actions/network'
#define color red
#define glyph downloadArrow
showNotification("Getting supporting files")
wait(0)
const CurrentIPAddress = getExternalIP()
if !CurrentIPAddress {
alert("Please ensure you have a wi-fi or a cellular connection (CANNOT CONTINUE)", "AG")
} else {
alert("Do you want to install AG? (Installer version: 2.0)", "AG")
}
createFolder("ag/support/activate")
const ProvidedInput = prompt("Enter your activation key")
if ProvidedInput != CurrentIPAddress {
alert("Invalid key", "AG")
} else {
const Text = "{CurrentIPAddress}"
saveFile("ag/support/activate/key.txt", Text, true)
menu "Choose version" {
item "Home (v2.0)":
showNotification("Installing (1/3 writing folders)")
createFolder("ag/support/root")
createFolder("ag/local")
createFolder("ag/local/shared")
createFolder("ag/support/execute")
createFolder("ag/support/root/store")
createFolder("ag/support/root/username")
createFolder("ag/support/root/adminkey")
createFolder("ag/support/root/recovery")
createFolder("ag/local/shared/settings")
createFolder("Provision")
wait(0)
showNotification("Installing (2/3 writing critical files)")
const Text1 = "https://www.icloud.com/shortcuts/b58b2957eb98415a83f97f2737c0618e"
saveFile("ag/support/root/store/Speed charging.txt", Text1, true)
const Text2 = "https://www.icloud.com/shortcuts/1f941ec282c545fe811ab41d2e44cd09"
saveFile("ag/support/root/store/Cheyote.txt", Text2, true)
const Text3 = "https://www.icloud.com/shortcuts/b39d485bdf0342b88a04fcbb869b0a8c"
saveFile("ag/support/root/store/Water Eject.txt", Text3, true)
getDeviceDetail("Device Model")
getDeviceDetail("System Version")
const Text4 = "{}\n{}\nAG Home version\nAG v1.0"
saveFile("ag/local/shared/settings/info.txt", Text4, true)
const File = getFile("ag/support/activate/key.txt", false)
if !File {
confirm("This shortcut is not activated (CANNOT CONTINUE)")
} else {
const Text5 = "{File}"
saveFile("ag/local/shared/settings/key.txt", Text5, true)
wait(3)
const File1 = getFile("ag/support/root/recovery/verify.txt", false)
if !File1 {
showNotification("Installing (3/3 setup admin stuff)")
const ProvidedInput1 = prompt("Create an admin account")
createFolder("ag/local/{ProvidedInput1}")
saveFile("ag/support/root/username/usr.txt", ProvidedInput1, true)
const ProvidedInput2 = prompt("Set admin password")
saveFile("ag/support/root/adminkey/code.txt", ProvidedInput2, true)
const Text6 = "Setup done!"
saveFile("ag/support/root/recovery/verify.txt", Text6)
alert("Installation has finished please add this shortcut", "AG")
openURL("https://www.icloud.com/shortcuts/9e86a3939ace4903b7bbd2c903024054")
} else {
getFile("ag/support/root/username/usr.txt", true)
showNotification("Welcome {}3/3 installing (Installing patches/features)", IfResult)
getFile("ag/support/root/username/usr.txt", true)
createFolder("ag/local/{}")
alert("Installation has finished please add this shortcut", "AG")
openURL("https://www.icloud.com/shortcuts/9e86a3939ace4903b7bbd2c903024054")
}
}
}
}
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by nemo-dead
You Might Also Like
Advertisement