ShareShortcuts
Создать форк «AG-Installer 2.0»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы nemo-dead получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
38K
Сохранено
0
Действия
65
Категория
Utilities
Версия
2.0
Язык
EN

This is an installer for a shortcut that is system based with downloadable shortcuts (BETA)

Что нового

Версия 2.0

Public release!!! Activation key is your current ip address

История версий
2.0 21 окт 2022 г.

Public release!!! Activation key is your current ip address

1.0 16 окт 2022 г.

First release

Что делает

Действий: 65
  1. Show Notification
    Getting supporting files
  2. Wait
  3. Get IP Address
  4. If
  5. Show Alert
    AG
  6. If
  7. Show Alert
    AG
  8. Create Folder
  9. Ask for Input
    Enter your activation key
  10. If
  11. Show Alert
    AG
  12. If
  13. Text
  14. Save File
  15. Choose from Menu
    Choose version
  16. Choose from Menu
    Home (v2.0)
  17. Show Notification
    Installing (1/3 writing folders)
  18. Create Folder
  19. Create Folder
  20. Create Folder
  21. Create Folder
  22. Create Folder
  23. Create Folder
  24. Create Folder
  25. Create Folder
  26. Create Folder
  27. Create Folder
  28. Wait
  29. Show Notification
    Installing (2/3 writing critical files)
  30. Text
  31. Save File
  32. Text
  33. Save File
  34. Text
  35. Save File
  36. Get Device Details
  37. Get Device Details
  38. Text
  39. Save File
  40. Get File
  41. If
  42. Show Alert
  43. If
  44. Text
  45. Save File
  46. Wait
  47. Get File
  48. If
  49. Show Notification
    Installing (3/3 setup admin stuff)
  50. Ask for Input
    Create an admin account
  51. Create Folder
  52. Save File
  53. Ask for Input
    Set admin password
  54. Save File
  55. Text
  56. Save File
  57. Show Alert
    AG
  58. Open URLs
  59. If
  60. Get File
  61. Show Notification
    Welcome …3/3 installing (Installing patches/features)
  62. Get File
  63. Create Folder
  64. Show Alert
    AG
  65. Open URLs

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/web'
#include 'actions/network'
#define color red
#define glyph downloadArrow

showNotification("Getting supporting files")
wait(0)
const CurrentIPAddress = getExternalIP()

if !CurrentIPAddress {
	alert("Please ensure you have a wi-fi or a cellular connection (CANNOT CONTINUE)", "AG")
} else {
	alert("Do you want to install AG? (Installer version: 2.0)", "AG")
}
createFolder("ag/support/activate")
const ProvidedInput = prompt("Enter your activation key")

if ProvidedInput != CurrentIPAddress {
	alert("Invalid key", "AG")
} else {
	const Text = "{CurrentIPAddress}"
	saveFile("ag/support/activate/key.txt", Text, true)
	menu "Choose version" {
	item "Home (v2.0)":
		showNotification("Installing (1/3 writing folders)")
		createFolder("ag/support/root")
		createFolder("ag/local")
		createFolder("ag/local/shared")
		createFolder("ag/support/execute")
		createFolder("ag/support/root/store")
		createFolder("ag/support/root/username")
		createFolder("ag/support/root/adminkey")
		createFolder("ag/support/root/recovery")
		createFolder("ag/local/shared/settings")
		createFolder("Provision")
		wait(0)
		showNotification("Installing (2/3 writing critical files)")
		const Text1 = "https://www.icloud.com/shortcuts/b58b2957eb98415a83f97f2737c0618e"
		saveFile("ag/support/root/store/Speed charging.txt", Text1, true)
		const Text2 = "https://www.icloud.com/shortcuts/1f941ec282c545fe811ab41d2e44cd09"
		saveFile("ag/support/root/store/Cheyote.txt", Text2, true)
		const Text3 = "https://www.icloud.com/shortcuts/b39d485bdf0342b88a04fcbb869b0a8c"
		saveFile("ag/support/root/store/Water Eject.txt", Text3, true)
		getDeviceDetail("Device Model")
		getDeviceDetail("System Version")
		const Text4 = "{}\n{}\nAG Home version\nAG v1.0"
		saveFile("ag/local/shared/settings/info.txt", Text4, true)
		const File = getFile("ag/support/activate/key.txt", false)
		if !File {
			confirm("This shortcut is not activated (CANNOT CONTINUE)")
		} else {
			const Text5 = "{File}"
			saveFile("ag/local/shared/settings/key.txt", Text5, true)
			wait(3)
			const File1 = getFile("ag/support/root/recovery/verify.txt", false)
			if !File1 {
				showNotification("Installing (3/3 setup admin stuff)")
				const ProvidedInput1 = prompt("Create an admin account")
				createFolder("ag/local/{ProvidedInput1}")
				saveFile("ag/support/root/username/usr.txt", ProvidedInput1, true)
				const ProvidedInput2 = prompt("Set admin password")
				saveFile("ag/support/root/adminkey/code.txt", ProvidedInput2, true)
				const Text6 = "Setup done!"
				saveFile("ag/support/root/recovery/verify.txt", Text6)
				alert("Installation has finished please add this shortcut", "AG")
				openURL("https://www.icloud.com/shortcuts/9e86a3939ace4903b7bbd2c903024054")
			} else {
				getFile("ag/support/root/username/usr.txt", true)
				showNotification("Welcome  {}3/3 installing (Installing patches/features)", IfResult)
				getFile("ag/support/root/username/usr.txt", true)
				createFolder("ag/local/{}")
				alert("Installation has finished please add this shortcut", "AG")
				openURL("https://www.icloud.com/shortcuts/9e86a3939ace4903b7bbd2c903024054")
			}
		}
	}
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от nemo-dead

См. все

Вам также может понравиться

См. все
Реклама