ShareShortcuts

MyUpdater

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

daboy
„MyUpdater“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit daboy die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
50K
Gesichert
3
Aktionen
53
Kategorie
Productivity
Version
1.4
Sprache
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.

Neue Funktionen

Version 1.4

Fixed a slight bug.

Versionsverlauf
1.4 4. Jul 2021

Added the ability to view changes.

1.4 4. Jul 2021

Fixed a slight bug.

1.3 3. Jul 2021

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

1.2 26. Jun 2021

Fixed a MAJOR bug that stopped it from working.

1.1 26. Jun 2021

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

1.0 26. Jun 2021

First release

Was er macht

53 Aktionen
  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

Als Code ansehen
Beta

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

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung