ShareShortcuts

MyUpdater

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

daboy
Fork “MyUpdater”

Har du bygget noget nyt oven på denne genvej? Del den som en fork: den bliver din egen genvej, som du styrer, og begge sider linker til hinanden, så daboy får kredit.

  1. 1Hent genvejen og ret den i Genveje-appen. Giv den sit eget navn.
  2. 2Del den fra Genveje-appen og kopiér iCloud-linket.
  3. 3Kom tilbage hertil, indsæt linket og beskriv, hvad der er anderledes, fx “Tilføjet et trin, der bruger Apple Intelligence til at gøre teksten mere personlig.”
Downloads
50K
Gemt
3
Handlinger
53
Kategori
Produktivitet
Version
1.4
Sprog
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.

Nyheder

Version 1.4

Fixed a slight bug.

Versionshistorik
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

Hvad den gør

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

Vis som kode
Beta

Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.

#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 {
}
Åbn i Cherri Playground Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.

Bedømmelser og anmeldelser

Skriv en anmeldelse
–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ingen anmeldelser endnu. Vær den første!

Annonce

Mere fra daboy

Se alle

Du vil måske også kunne lide

Se alle
Annonce