ShareShortcuts

MyUpdater

Basically like Shortcuts Updater but much more lightweight, and basically much better

daboy
Dupliquer « MyUpdater »

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 daboy 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
50K
Enregistré
3
Actions
53
Catégorie
Productivity
Version
1.4
Langue
EN

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.

Nouveautés

Version 1.4

Fixed a slight bug.

Historique des versions
1.4 4 juil. 2021

Added the ability to view changes.

1.4 4 juil. 2021

Fixed a slight bug.

1.3 3 juil. 2021

Fixed a bug where MyUpdater always said a new version for MyUpdater is available, even when one wasn’t.

1.2 26 juin 2021

Fixed a MAJOR bug that stopped it from working.

1.1 26 juin 2021

Made MyUpdater check for updates when you tap the shortcut without a shortcut input (tapping it manually.)

1.0 26 juin 2021

First release

Ce qu’il fait

53 actions
  1. Number
  2. Get IP Address
  3. If
  4. Stop This Shortcut
  5. If
  6. Choose from 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.)
  7. Choose from Menu
    Check for updates
  8. Get Contents of URL
    shareshortcuts.com/1444.update
  9. Get Dictionary Value
  10. Get Numbers from Input
  11. If
  12. Get Item from List
  13. Text
  14. Choose from Menu
    …
  15. Choose from Menu
    Yes
  16. Get Dictionary Value
  17. Open URLs
  18. Stop This Shortcut
  19. Choose from Menu
    No
  20. Nothing
  21. If
  22. Show Notification
    MyUpdater has no new updates.
  23. Choose from Menu
    Check for updates on any shortcut
  24. Ask for Input
    What is the name of the shortcut? (Optional)
  25. Ask for Input
    What is the version you are currently using on that shortcut? (Not optional)
  26. Ask for Input
    What is the shareshortcuts ID? (Not optional. To find the ID look at the URL and find what comes before the name.)
  27. Dictionary
  28. Run Shortcut
    MyUpdater
  29. Choose from Menu
    Message developer
  30. Send Email
  31. Stop This Shortcut
  32. Get Dictionary Value
  33. Set Variable
    Name
  34. Get Dictionary Value
  35. Set Variable
    Version
  36. Get Dictionary Value
  37. Set Variable
    ID
  38. Replace Text
  39. Get Contents of URL
    shareshortcuts.com/….update
  40. Get Dictionary Value
  41. Get Dictionary Value
  42. If
  43. Get Item from List
  44. Text
  45. Choose from Menu
    …
  46. Choose from Menu
    Yes
  47. Get Dictionary Value
  48. Open URLs
  49. Stop This Shortcut
  50. Choose from Menu
    No
  51. Nothing
  52. If
  53. Nothing

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/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 {
}
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 daboy

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité