UpdateHub was designed to keep all of your Shortcuts up to date without the requirement of running them individually.
Caution: This Shortcut is currently in beta, you may experience issues.
Graphics by MediaKit
Features
Bulk Search
Bulk Search is UpdateHub’s bread and butter, allowing you to check all of your Shortcuts for updates at once. This is achieved by parsing every Shortcut in your library and fetching the data stored in a ”Comment Action” at the top. This is the only thing you’ll need to add in order for UpdateHub to fetch the latest updates from RoutineHub.
Manual Search
Manual Search is an optional method to manually check RoutineHub for the latest update. This will only check the Shortcut you’re currently running and is lightning fast. This is achieved by a ”Text Action”with the name of your Shortcut and the ”Run Shortcut Action” linking to UpdateHub.
Version Rollback
Sometimes things break and us creators sometimes scramble trying to fix a broken update and publish a new version ASAP. To combat this issue, UpdateHub has support for rolling back an update. If there’s something wrong with a version currently accessible via RoutineHub and you delete it, anybody who has already downloaded it will be notified to downgrade the next time they check for an update.
Documentation
Overview
Below you will find detailed instructions on how to implement UpdateHub into your Shortcuts. This includes options for hosting your updates on RoutineHub or privately hosting them. You will also find an extra (optional) step to manually check for an update through your Shortcut. This step can also be used to automatically check for updates every 24 hours, you can see an example of this in the DEMO provided.
Note: If you experience any issues or require assistance, don’t hesitate to contact me via Reddit.
Version Numbers
Multi-decimal version numbers are supported all thanks to the brilliant mind behind one of the more popular Shortcuts for iOS, UpdateKit. Mike Beasley recently updated his Shortcut to version 4.0, where he developed a script that will quickly compare two versions. Not only is UpdateKit Engine 1.1 most efficient way to do this, but it also supports multi-decimal version numbers. To learn more about UpdateKit and UpdateKit Engine, you can follow the link provided below.
Bulk Search
Adding UpdateHub’s Bulk Search to your Shortcuts is quite possibly the easiest thing you’ll ever do. All UpdateHub requires from you to implement Bulk Search is a ”Comment Action” at the top of your Shortcut.
Due to the way UpdateHub fetches data from this comment, you may add some information about your Shortcut above the required text. Please keep this comment to a maximum of 12 lines in total to ensure UpdateHub can still find the data.
RoutineHub
To check for the latest updates using RoutineHub, you can reference the image below.
Private Hosting
To check for the latest updates using a privately hosted JSON file, you can reference the image below.
Manual Search
To add a manual search to your Shortcut, use a Text Action containing the name of your Shortcut then add the Run Shortcut Action linking to UpdateHub.
Response Codes
When you check updates manually through your Shortcut, you’ll finish with 3 types of response codes.
When no updates are found, you’ll be returned with “NO-UPDATE”. In addition to this, UpdateHub will also send a notification to the user to inform them that they’re up to date.
If an update has been found and the user has chosen to install it, you’ll be returned with “UPDATE”. I highly recommend adding an Exit Shortcut Action if you are returned this code.
If an update has been found and the user has chosen to skip it, you’ll be returned with “SKIP-UPDATE”.
If there was a problem parsing data from the required Comment Action, you’ll be returned with “ERROR”.
Note: If you’d like to see this in action, you can download a demo that will check for an update automatically every 24 hours HERE
Branding
If you feel UpdateHub is the right fit for you and your Shortcuts, you may use the following on your RoutineHub page.
[](https://routinehub.co/shortcut/2066)
What's New
- UpdateHub is no longer in Beta! - Fixed an issue that would prevent your Shortcuts running if you're not connected to the internet. - RoutineHub is no longer required in order to use UpdateHub, you now have the option to link your Shortcuts to a privately hosted update file (check the documentation to learn more).
What it does
346 actions-
CommentMade by tdevx https://routinehub.co/user/tdevx /u/tdevx @tdevx#6779 RoutineHubUpdate Current Version: "1.0" RoutineHub ID: "2066" RoutineHubUpdate
-
CommentRelease Notes: - UpdateHub is no longer in Beta! - Fixed an issue that would prevent your Shortcuts running if you're not connected to the internet. - RoutineHub is no longer required in order to use UpdateHub, you now have the option to link your S…
-
Dictionary
-
Set Variableshortcut_details
-
Comment--- Start
-
Create Folder
-
Get File
-
Count
-
If
-
Dictionary
-
Set Variableshortcut_config
-
Save File
-
If
-
Get File
-
Set Variableshortcut_config
-
Comment--- Header
-
Get Variable
-
Format Date
-
Text
-
Set Variableshortcut_header
-
Comment--- Connection
-
Get IP Address
-
Count
-
If
-
Text
-
Base64 Encode
-
Show NotificationTo check for the latest updates, please connect to the internet.
-
Stop This Shortcut
-
Comment--- Database
-
Get Variable
-
Count
-
If
-
Get Variable
-
Get Time Between Dates
-
If
-
Comment--- No Database Refresh
-
Get File
-
Extract Archive
-
Repeat with Each
-
Add to Variable
-
If
-
Comment--- Database Refresh
-
Get My Shortcuts
-
Repeat with Each
-
Set Variableshortcut_icon
-
Set Name
-
If
-
Get Variable
-
Get Images from Input
-
Resize Image
-
Base64 Encode
-
Set Variableshortcut_icon
-
Get Variable
-
Split Text
-
Get Item from List
-
Combine Text
-
Set Variableshortcut_data
-
Match Text
-
Set Variablematch
-
Count
-
If
-
Nothing
-
If
-
Get Variable
-
Get Group from Matched Text
-
Set Variablecurrent_version
-
Get Variable
-
Get Group from Matched Text
-
Set Variableroutinehub_id
-
Dictionary
-
Set Name
-
Add to Variable
-
If
-
If
-
Get Variable
-
Get Images from Input
-
Resize Image
-
Base64 Encode
-
Set Variableshortcut_icon
-
Get Variable
-
Split Text
-
Get Item from List
-
Combine Text
-
Set Variableshortcut_data
-
Match Text
-
Set Variablematch
-
Count
-
If
-
Nothing
-
If
-
Get Variable
-
Get Group from Matched Text
-
Set Variablecurrent_version
-
Get Variable
-
Get Group from Matched Text
-
Set Variableupdate_url
-
Dictionary
-
Set Name
-
Add to Variable
-
If
-
Nothing
-
Get Variable
-
Make Archive
-
Save File
-
Get Variable
-
Count
-
Get File
-
Set Dictionary Value
-
Save File
-
Date
-
Adjust Date
-
Get File
-
Set Dictionary Value
-
Save File
-
If
-
Comment--- Manual
-
Get My Shortcuts
-
Filter Files
-
Set Variableshortcut_icon
-
Set Name
-
If
-
Get Variable
-
Get Images from Input
-
Resize Image
-
Base64 Encode
-
Set Variableshortcut_icon
-
Get Variable
-
Split Text
-
Get Item from List
-
Combine Text
-
Set Variableshortcut_data
-
Match Text
-
Set Variablematch
-
Count
-
If
-
Show AlertError Occurred
-
Text
-
Stop This Shortcut
-
If
-
Get Variable
-
Get Group from Matched Text
-
Set Variablecurrent_version
-
Get Variable
-
Get Group from Matched Text
-
Set Variableroutinehub_id
-
Dictionary
-
Set Name
-
Add to Variable
-
If
-
If
-
Get Variable
-
Get Images from Input
-
Resize Image
-
Base64 Encode
-
Set Variableshortcut_icon
-
Get Variable
-
Split Text
-
Get Item from List
-
Combine Text
-
Set Variableshortcut_data
-
Match Text
-
Set Variablematch
-
Count
-
If
-
Show AlertError Occurred
-
Text
-
Stop This Shortcut
-
If
-
Get Variable
-
Get Group from Matched Text
-
Set Variablecurrent_version
-
Get Variable
-
Get Group from Matched Text
-
Set Variableupdate_url
-
Dictionary
-
Set Name
-
Add to Variable
-
If
-
Nothing
-
Get Variable
-
Repeat with Each
-
If
-
Comment--- RoutineHub
-
Set Variablecurrent_check
-
URLhttps://routinehub.co/api/v1/shortcuts/…/versions/latest
-
Get Contents of URL
-
Set Variablecurrent_routinehub
-
Get Dictionary Value
-
Set VariableNew Version
-
Text
-
Base64 Encode
-
URLdata:text/html;base64,…
-
Get Contents of Web Page
-
Split Text
-
If
-
Nothing
-
If
-
If
-
Dictionary
-
Set Name
Ratings & Reviews
Write a ReviewNo reviews yet. Be the first to share what you think!