ShareShortcuts

UpdateBot iOS 13

sadfarm1
Dupliquer « UpdateBot iOS 13 »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que sadfarm1 soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
68K
Enregistré
1
Actions
179
Catégorie
Utilities
Version
1.0
Langue
EN

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

Historique des versions
1.0 19 juin 2019

First release

Ce qu’il fait

179 actions
  1. Comment
    Made by u/SadFarm1
  2. Get Clipboard
  3. Get Dictionary from Input
  4. Set Variable
    Dictionary
  5. Get Variable
  6. Count
  7. If
  8. Stop This Shortcut
  9. If
  10. Get Variable
  11. Get Dictionary Value
  12. Get File
  13. If
  14. Stop This Shortcut
  15. If
  16. Get IP Address
  17. Count
  18. If
  19. Show Alert
  20. If
  21. Get Variable
  22. Get Dictionary Value
  23. Number
  24. Set Variable
    LocVer
  25. Get Variable
  26. Get Dictionary Value
  27. Number
  28. Count
  29. If
  30. If
  31. Text
  32. Set Variable
    Used
  33. Comment
    This is where the RoutineHub stuff goes
  34. Get Variable
  35. Get Dictionary Value
  36. URL
    https://routinehub.co/shortcut/…
  37. Get Contents of URL
    …
  38. Make HTML from Rich Text
  39. Split Text
  40. Get Item from List
  41. Text
  42. Split Text
  43. Get Item from List
  44. Text
  45. Set Variable
    URL
  46. Comment
    Version
  47. Text
  48. Split Text
  49. Get Item from List
  50. Text
  51. Split Text
  52. Get Item from List
  53. Text
  54. Set Variable
    OnVer
  55. Get Variable
  56. Get Dictionary Value
  57. Text
  58. Count
  59. If
  60. If
  61. Text
  62. Set Variable
    Used
  63. Get Variable
  64. Get Dictionary Value
  65. Combine Text
  66. Comment
    Shareshortcuts Stuff
  67. Get Variable
  68. Get Dictionary Value
  69. URL
    https://shareshortcuts.com/shortcuts/…-….html
  70. Get Contents of URL
    …
  71. Make HTML from Rich Text
  72. Split Text
  73. Get Item from List
  74. Split Text
  75. Get Item from List
  76. Number
  77. Set Variable
    OnVer
  78. URL
    …
  79. Set Variable
    URL
  80. Comment
    Version
  81. Get Variable
  82. Get Dictionary Value
  83. Text
  84. Count
  85. If
  86. If
  87. Text
  88. Set Variable
    Used
  89. Comment
    Update URL stuff
  90. Get Variable
  91. Get Dictionary Value
  92. URL
    …
  93. Set Variable
    Update URL
  94. Get Variable
  95. Get Contents of URL
    …
  96. Get Dictionary from Input
  97. Get Dictionary Value
  98. Number
  99. Set Variable
    OnVer
  100. Get Variable
  101. Get Dictionary Value
  102. Number
  103. Set Variable
    LocVer
  104. Get Variable
  105. Get Dictionary from Input
  106. Get Dictionary Value
  107. Set Variable
    URL
  108. Number
  109. If
  110. Get Variable
  111. Get Dictionary Value
  112. Show Alert
    UpdateBot
  113. Choose from Menu
    Would you like to install now?
  114. Choose from Menu
    Install Now
  115. URL
    …
  116. Open URLs
  117. Choose from Menu
    Remind Me Later
  118. Stop This Shortcut
  119. Choose from Menu
    Stop Updating This Shortcut
  120. Choose from Menu
    Are you sure? This will stop updating this shortcut forever.
  121. Choose from Menu
    Yes, Stop all Updates forever
  122. Create Folder
  123. Get Variable
  124. Get Dictionary Value
  125. Dictionary
  126. Get Variable
  127. Append to Text File
  128. Choose from Menu
    No, Keep Updates
  129. Show Alert
    Alert
  130. Choose from Menu
    See ChangeLog
  131. Get Variable
  132. Get Dictionary Value
  133. Text
  134. Count
  135. If
  136. Get Variable
  137. If
  138. Get Variable
  139. Get Dictionary Value
  140. URL
    https://routinehub.co/shortcut/…/changelog
  141. Open URLs
  142. If
  143. Get Variable
  144. Get Dictionary Value
  145. Combine Text
  146. Get Variable
  147. Get Dictionary Value
  148. URL
    https://shareshortcuts.com/shortcuts/…-….html
  149. Open URLs
  150. If
  151. URL
    …
  152. Open URLs
  153. Text
  154. Dictionary
  155. Set Variable
    BotDic
  156. URL
    https://routinehub.co/shortcut/…
  157. Get Contents of URL
    …
  158. Make HTML from Rich Text
  159. Split Text
  160. Get Item from List
  161. Split Text
  162. Get Item from List
  163. Set Variable
    BotOnVer
  164. Get Variable
  165. Get Dictionary Value
  166. Set Variable
    BotLocVer
  167. Get Variable
  168. Number
  169. If
  170. Choose from Menu
    There is an Update For UpdateBot!
  171. Choose from Menu
    Install Now
  172. URL
    https://routinehub.co/shortcut/2983
  173. Open URLs
  174. Choose from Menu
    See Changelog
  175. URL
    https://routinehub.co/shortcut/2983/changelog
  176. Open URLs
  177. Choose from Menu
    Remind Me Later
  178. Stop This Shortcut
  179. If

Afficher en tant que code
Bêta

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(, "&bull;")
	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

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité