MyUpdater
Basically like Shortcuts Updater but much more lightweight, and basically much better
daboyScanne avec ton iPhone pour installer
Basically like Shortcuts Updater but much more lightweight, and basically much better. It works the same because I don’t want to confuse anyone. So just find how to use Shortcuts Updater, and do it but with this. If you need any help, tell me in the comments.
Nouveautés
Version 1.4
Fixed a slight bug.
Ce qu’il fait
53 actions-
Number
-
Get IP Address
-
If
-
Stop This Shortcut
-
If
-
Choose from MenuWhich do you want to do? (Messaging me shows your name to me, but if you don't trust me then you don't have to send anything.)
-
Choose from MenuCheck for updates
-
Get Contents of URLshareshortcuts.com/1444.update
-
Get Dictionary Value
-
Get Numbers from Input
-
If
-
Get Item from List
-
Text
-
Choose from Menu…
-
Choose from MenuYes
-
Get Dictionary Value
-
Open URLs
-
Stop This Shortcut
-
Choose from MenuNo
-
Nothing
-
If
-
Show NotificationMyUpdater has no new updates.
-
Choose from MenuCheck for updates on any shortcut
-
Ask for InputWhat is the name of the shortcut? (Optional)
-
Ask for InputWhat is the version you are currently using on that shortcut? (Not optional)
-
Ask for InputWhat is the shareshortcuts ID? (Not optional. To find the ID look at the URL and find what comes before the name.)
-
Dictionary
-
Run ShortcutMyUpdater
-
Choose from MenuMessage developer
-
Send Email
-
Stop This Shortcut
-
Get Dictionary Value
-
Set VariableName
-
Get Dictionary Value
-
Set VariableVersion
-
Get Dictionary Value
-
Set VariableID
-
Replace Text
-
Get Contents of URLshareshortcuts.com/….update
-
Get Dictionary Value
-
Get Dictionary Value
-
If
-
Get Item from List
-
Text
-
Choose from Menu…
-
Choose from MenuYes
-
Get Dictionary Value
-
Open URLs
-
Stop This Shortcut
-
Choose from MenuNo
-
Nothing
-
If
-
Nothing
Afficher en tant que code
Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.
#include 'actions/web'
#include 'actions/network'
#define color green
#define glyph smileyFace
const CurrentVersion = 1.4
const CurrentIPAddress = getExternalIP()
if !CurrentIPAddress {
stop()
}
if !ShortcutInput {
menu "Which do you want to do? (Messaging me shows your name to me, but if you don't trust me then you don't have to send anything.) " {
item "Check for updates":
const ContentsOfURL = downloadURL("shareshortcuts.com/1444.update")
const CVersion = getValue(ContentsOfURL['Shortcut'], "Version")
const Version = getNumbers(CVersion)
if Version > CurrentVersion {
getFirstItem(ContentsOfURL['Changelog'])
menu {
item "Yes":
const DictionaryValue = getValue(ContentsOfURL['Shortcut'], "URL-download")
openURL(DictionaryValue)
stop()
item "No":
}
} else {
showNotification("MyUpdater has no new updates.", "Hm", false)
}
item "Check for updates on any shortcut":
const Name = prompt("What is the name of the shortcut? (Optional)")
const Version1 = prompt("What is the version you are currently using on that shortcut? (Not optional)", "Number")
const ID = prompt("What is the shareshortcuts ID? (Not optional. To find the ID look at the URL and find what comes before the name.)", "Number")
const Dictionary = {
"name": "{Name}",
"sharei": "{ID}",
"version": "{Version1}"
}
runSelf(Dictionary)
item "Message developer":
sendEmail(, "[email protected]", "", "")
}
stop()
}
@Name = ShortcutInput['name']
@Version = ShortcutInput['version']
@ID = ShortcutInput['shareid']
const ShortName = replaceText(" ", "", @Name)
const ContentsOfURL1 = downloadURL("shareshortcuts.com/{@ID}.update")
const Shortcut = getValue(ContentsOfURL1, "Shortcut")
const Version2 = getValue(Shortcut, "Version")
if Version2 > @Version {
getRandomItem(ContentsOfURL1['Changelog'])
menu {
item "Yes":
const DictionaryValue1 = getValue(Shortcut, "URL-download")
openURL(DictionaryValue1)
stop()
item "No":
nothing()
}
} else {
}
Ouvrir dans Cherri Playground
Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.
Notes et avis
Écrire un avis–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Aucun avis pour le moment. Sois le premier à partager ton avis !
Publicité
Plus de daboy
Ça pourrait aussi te plaire
Publicité