MyUpdater
Basically like Shortcuts Updater but much more lightweight, and basically much better
daboyMit dem iPhone scannen, um zu installieren
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.
Neue Funktionen
Version 1.4
Fixed a slight bug.
Was er macht
53 Aktionen-
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
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#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 {
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von daboy
Das gefällt dir vielleicht auch
Werbung