Skip to content

Instantly share code, notes, and snippets.

@0x41c
Forked from LacertosusRepo/CustomTemplate.md
Created August 15, 2020 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0x41c/8dee7e6ea1c41c90f9bd393066946914 to your computer and use it in GitHub Desktop.
Save 0x41c/8dee7e6ea1c41c90f9bd393066946914 to your computer and use it in GitHub Desktop.
Creating your own Thoes NIC template
  1. Get the desired existing NIC template from $THEOS/templates/, for example iphone_tweak.nic.tar

  2. Unpack the files from the template into some other folder like ~/MyNicTemplate

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

  @@USER@@ = Author
  @@PROJECTNAME@@ = Name of the project (Not sure of the difference)
  @@FULLPROJECTNAME@@ = Name of the project (Not sure of the difference)
  @@PACKAGENAME@@ = ID of your package
  @@CLASSPREFIX@@ = The 3 long ID specifically for preference bundles
  1. Modify the name variable in the NIC/control file, for example change it to "NAME/tweak"

  2. Run $THEOS/bin/nicify.pl to build your template. Usage `$THEOS/bin/nicify.pl [Your Template Location]:

  $THEOS/bin/nicify.pl ~/MyNicTemplate

It will then build the templace in whatever directory you're currently in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment