The First EVER Updater for iOS 13!
DOCUMENTATION AVALIABLE (Includes Instructions for iOS 13)
----
UpdateBot
The best Updater that works seamlessly for anything! UpdateBot will seamlessly work with your shortcut unlike many other "drop-in" updaters. The unique part about UpdateBot is that UpdateBot will work for both RoutineHub and Shareshortcuts. No longer do you have to use the default Shareshortcut updater. Different versions no more! You can now have different versions of your shortcut in Shareshortcuts and RoutineHub and STILL have it be updated!
Download the Demo here
Contact me at u/SadFarm1 on Reddit.
Nouveautés
Version 1.0
First release
Ce qu’il fait
179 actions-
CommentMade by u/SadFarm1
-
Get Clipboard
-
Get Dictionary from Input
-
Set VariableDictionary
-
Get Variable
-
Count
-
If
-
Stop This Shortcut
-
If
-
Get Variable
-
Get Dictionary Value
-
Get File
-
If
-
Stop This Shortcut
-
If
-
Get IP Address
-
Count
-
If
-
Show Alert
-
If
-
Get Variable
-
Get Dictionary Value
-
Number
-
Set VariableLocVer
-
Get Variable
-
Get Dictionary Value
-
Number
-
Count
-
If
-
If
-
Text
-
Set VariableUsed
-
CommentThis is where the RoutineHub stuff goes
-
Get Variable
-
Get Dictionary Value
-
URLhttps://routinehub.co/shortcut/…
-
Get Contents of URL…
-
Make HTML from Rich Text
-
Split Text
-
Get Item from List
-
Text
-
Split Text
-
Get Item from List
-
Text
-
Set VariableURL
-
CommentVersion
-
Text
-
Split Text
-
Get Item from List
-
Text
-
Split Text
-
Get Item from List
-
Text
-
Set VariableOnVer
-
Get Variable
-
Get Dictionary Value
-
Text
-
Count
-
If
-
If
-
Text
-
Set VariableUsed
-
Get Variable
-
Get Dictionary Value
-
Combine Text
-
CommentShareshortcuts Stuff
-
Get Variable
-
Get Dictionary Value
-
URLhttps://shareshortcuts.com/shortcuts/…-….html
-
Get Contents of URL…
-
Make HTML from Rich Text
-
Split Text
-
Get Item from List
-
Split Text
-
Get Item from List
-
Number
-
Set VariableOnVer
-
URL…
-
Set VariableURL
-
CommentVersion
-
Get Variable
-
Get Dictionary Value
-
Text
-
Count
-
If
-
If
-
Text
-
Set VariableUsed
-
CommentUpdate URL stuff
-
Get Variable
-
Get Dictionary Value
-
URL…
-
Set VariableUpdate URL
-
Get Variable
-
Get Contents of URL…
-
Get Dictionary from Input
-
Get Dictionary Value
-
Number
-
Set VariableOnVer
-
Get Variable
-
Get Dictionary Value
-
Number
-
Set VariableLocVer
-
Get Variable
-
Get Dictionary from Input
-
Get Dictionary Value
-
Set VariableURL
-
Number
-
If
-
Get Variable
-
Get Dictionary Value
-
Show AlertUpdateBot
-
Choose from MenuWould you like to install now?
-
Choose from MenuInstall Now
-
URL…
-
Open URLs
-
Choose from MenuRemind Me Later
-
Stop This Shortcut
-
Choose from MenuStop Updating This Shortcut
-
Choose from MenuAre you sure? This will stop updating this shortcut forever.
-
Choose from MenuYes, Stop all Updates forever
-
Create Folder
-
Get Variable
-
Get Dictionary Value
-
Dictionary
-
Get Variable
-
Append to Text File
-
Choose from MenuNo, Keep Updates
-
Show AlertAlert
-
Choose from MenuSee ChangeLog
-
Get Variable
-
Get Dictionary Value
-
Text
-
Count
-
If
-
Get Variable
-
If
-
Get Variable
-
Get Dictionary Value
-
URLhttps://routinehub.co/shortcut/…/changelog
-
Open URLs
-
If
-
Get Variable
-
Get Dictionary Value
-
Combine Text
-
Get Variable
-
Get Dictionary Value
-
URLhttps://shareshortcuts.com/shortcuts/…-….html
-
Open URLs
-
If
-
URL…
-
Open URLs
-
Text
-
Dictionary
-
Set VariableBotDic
-
URLhttps://routinehub.co/shortcut/…
-
Get Contents of URL…
-
Make HTML from Rich Text
-
Split Text
-
Get Item from List
-
Split Text
-
Get Item from List
-
Set VariableBotOnVer
-
Get Variable
-
Get Dictionary Value
-
Set VariableBotLocVer
-
Get Variable
-
Number
-
If
-
Choose from MenuThere is an Update For UpdateBot!
-
Choose from MenuInstall Now
-
URLhttps://routinehub.co/shortcut/2983
-
Open URLs
-
Choose from MenuSee Changelog
-
URLhttps://routinehub.co/shortcut/2983/changelog
-
Open URLs
-
Choose from MenuRemind Me Later
-
Stop This Shortcut
-
If
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/sharing'
#define color violet
#define glyph circledDownArrow
// Made by u/SadFarm1
getClipboard()
const Dictionary3 = getDictionary()
@Dictionary = Dictionary3
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
const Count = count(@Dictionary, "Items")
if Count == 0 {
stop()
} else {
}
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
const File = getFile("UpdateBot/{}.json", false)
if File {
stop()
} else {
}
const CurrentIPAddress = getExternalIP()
const Count1 = count(CurrentIPAddress, "Characters")
if Count1 == 0 {
confirm("You have no internet connection. Connect to the internet and try again.")
} else {
}
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
const DictionaryValue = getValue(@Dictionary, "Version")
number(DictionaryValue)
@LocVer
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
const DictionaryValue1 = getValue(@Dictionary, "RoutineHub ID")
const Count2 = count(Number, "Characters")
if Count2 == 0 {
} else {
@Used = "RH"
// This is where the RoutineHub stuff goes
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
url("https://routinehub.co/shortcut/{}")
const ContentsOfURL = downloadURL()
makeHTML(ContentsOfURL)
const Text = splitText(, "<img src="https://api.qrserver.com/v1/create-qr-code/?data=")
getFirstItem(Text)
const Text1 = splitText(, ""/>")
getFirstItem(Text1)
@URL = "{}"
// Version
const Text2 = splitText(, "<p>Version:")
getLastItem(Text2)
const Text3 = splitText(, "</p>")
getFirstItem(Text3)
@OnVer = "{}"
}
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
const Text4 = "{}"
const Count3 = count(Text4, "Characters")
if Count3 == 0 {
} else {
@Used = "SS"
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
joinText(, "-")
// Shareshortcuts Stuff
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
url("https://shareshortcuts.com/shortcuts/{}-{}.html")
const ContentsOfURL1 = downloadURL()
makeHTML(ContentsOfURL1)
const Text5 = splitText(, "Version")
getListItem(Text5, 2)
const Text6 = splitText(, "•")
const ItemFromList = getLastItem(Text6)
number(ItemFromList)
@OnVer
url()
@URL
// Version
}
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
const Text7 = "{}"
const Count4 = count(Text7, "Characters")
if Count4 == 0 {
} else {
@Used = "Json"
// Update URL stuff
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
url()
@UpdateURL
// TODO: Get Variable not supported: Assign variable here to '@UpdateURL'.
const ContentsOfURL2 = downloadURL(@UpdateURL)
const Dictionary = getDictionary(ContentsOfURL2)
const DictionaryValue2 = getValue(Dictionary, "Version")
@OnVer = DictionaryValue2
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
const DictionaryValue3 = getValue(@Dictionary, "Version")
@LocVer = DictionaryValue3
// TODO: Get Variable not supported: Assign variable here to '@UpdateURL'.
const Dictionary1 = getDictionary(@UpdateURL)
@URL = Dictionary1['URL']
}
const Number1 = number(@LocVer)
if Number1 < @OnVer {
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
alert("There is an update available for {}!", "UpdateBot")
menu "Would you like to install now?" {
item "Install Now":
url(@URL)
openURL()
item "Remind Me Later":
stop()
item "Stop Updating This Shortcut":
menu "Are you sure? This will stop updating this shortcut forever." {
item "Yes, Stop all Updates forever":
createFolder("UpdateBot")
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
const Dictionary2 = {
"Updates": "Never"
}
// TODO: Get Variable not supported: Assign variable here to 'Dictionary2'.
appendToFile("UpdateBot/{}.json", nil)
item "No, Keep Updates":
alert("This shortcut will update next time you run this shortcut.", "Alert")
}
item "See ChangeLog":
// TODO: Get Variable not supported: Assign variable here to 'Dictionary3'.
const Text8 = "{}"
const Count5 = count(Text8, "Characters")
if Count5 == 0 {
// TODO: Get Variable not supported: Assign variable here to '@Used'.
if @Used contains "RH" {
// TODO: Get Variable not supported: Assign variable here to 'Dictionary3'.
url("https://routinehub.co/shortcut/{}/changelog")
openURL()
} else {
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
joinText(, "-")
// TODO: Get Variable not supported: Assign variable here to '@Dictionary'.
url("https://shareshortcuts.com/shortcuts/{}-{}.html")
openURL()
}
} else {
url()
openURL()
}
}
}
@BotDic = {
"Name": "UpdateBot iOS 13",
"RoutineHub ID": "2983",
"Version": "1.0"
}
url("https://routinehub.co/shortcut/{['RoutineHub ID']}")
const ContentsOfURL3 = downloadURL()
makeHTML(ContentsOfURL3)
const Text9 = splitText(, "<p>Version:")
getFirstItem(Text9)
const Text10 = splitText(, "</p>")
getLastItem(Text10)
@BotOnVer
// TODO: Get Variable not supported: Assign variable here to '@BotDic'.
@BotLocVer = @BotDic['Version']
// TODO: Get Variable not supported: Assign variable here to '@BotLocVer'.
const Number2 = number(@BotLocVer)
if Number2 < @BotOnVer {
menu "There is an Update For UpdateBot!" {
item "Install Now":
url("https://routinehub.co/shortcut/2983")
openURL()
item "See Changelog":
url("https://routinehub.co/shortcut/2983/changelog")
openURL()
item "Remind Me Later":
stop()
}
} 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 sadfarm1
Ça pourrait aussi te plaire
Publicité