Skip to content

Instantly share code, notes, and snippets.

@LacertosusRepo
Last active September 18, 2021 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LacertosusRepo/ee71148276f1d10e44d5ed67c10caec3 to your computer and use it in GitHub Desktop.
Save LacertosusRepo/ee71148276f1d10e44d5ed67c10caec3 to your computer and use it in GitHub Desktop.
Creating your own Thoes NIC template
  1. Get the desired existing NIC template from $THEOS/vendor/templates, for example iphone_tweak.nic.tar

  2. Unpack the files from the template into a different folder such as ~/custom_tweak_template

  3. Make any modifications to the existing files or add new ones, you can use different variables that will be replaced with info entered in the NIC prompt:

Variable Description
@@USER@@ Author
@@PROJECTNAME@@ Name of the project
@@FULLPROJECTNAME@@ Name of the project (Unsure of the difference from @@PROJECTNAME@@)
@@PACKAGENAME@@ ID of your package
@@CLASSPREFIX@@ The 3 character ID specifically for preference bundles
  1. Modify the name variable in the NIC/control file, for example change it to "COMPANY/tweak"

  2. Run $THEOS/bin/nicify.pl to build your template. Usage $THEOS/bin/nicify.pl [output directory]:

  $THEOS/bin/nicify.pl ./
  1. Move your newly created NIC template to $THEOS/templates/ not $THEOS/vendor/templates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment