MyUpdater
Basically like Shortcuts Updater but much more lightweight, and basically much better
daboyEscaneie com o iPhone para instalar
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.
Novidades
Versão 1.4
Fixed a slight bug.
O que ele faz
53 ações-
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
Ver como código
Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.
#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 {
}
Abrir no Cherri Playground
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.
Avaliações e comentários
Escrever uma avaliação–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!
Publicidade
Mais de daboy
Você também pode gostar
Publicidade