|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectzeroslackr.installer.Main
public class Main
Main Installer.
Where it all starts. See the printError method for exit values.
TODO list:
- figure out how to get Eclipse to auto-add referenced
libraries class files when exporting to a JAR
- test on Macs and Linux hosts
- specialize actions for the different list types
- use loader2.bin file from downloaded pack
- create an packlist for official iPL downloads
- support 7zip archives via J7Zip library (which is still in development)
- expand Pack object (not sure if needed though)
- add music extraction function via Java ID3 Tag Library
- add GUI (for new users but not necessary)
- add in MP3 playback functionality (only with GUI)
Licensed under GNU GPL (Version 3).
printError(String error, int errorLevel, Exception e)
Field Summary | |
---|---|
private static boolean |
auto
|
private static boolean |
backup
|
private static String |
BACKUP_FOLDER
|
private static String |
DEFAULT_FW_BACKUP
|
private static String |
DEFAULT_LOADER2_BIN
|
private static String |
DOWNLOAD_FOLDER
|
private static String |
FILES_FOLDER
|
private static String[] |
FOLDER_STRUCTURE
|
private static String |
fw_backup
|
private static boolean |
help
|
private static Scanner |
in
|
private static String |
IPL_PACKLIST
|
private static String |
ipod
|
private static boolean |
ipodlinux
|
private static String |
IPODPATCHER_FOLDER
|
private static iPodPatcher |
ipp
|
private static boolean |
lazy
|
private static boolean |
loader2
|
private static String |
loader2_bin
|
private static String |
LOADER2_FOLDER
|
private static boolean |
mirror
|
private static String |
packlist
|
private static boolean |
restore
|
private static String[] |
testArgs
|
private static String |
TOOLS_FOLDER
|
private static boolean |
zeroslackr
|
private static String |
ZS_PACKLIST
|
Constructor Summary | |
---|---|
Main()
|
Method Summary | |
---|---|
private static void |
backup(String path)
Backup iPod's firmware via ipodpatcher. |
private static void |
checkArgs(String[] args)
Check passed arguments. |
private static void |
createFolderStructure()
Create folder structure. |
private static void |
installLoader2(String path)
Install Loader2 via ipodpatcher. |
private static void |
installPack(Pack p)
Install pack. |
static void |
main(String[] args)
Main installer. |
private static void |
printCommands()
Print commands. |
private static void |
printError(String error,
int errorLevel,
Exception e)
Easy method for printing errors. |
private static void |
printSplash()
Print splash text. |
private static void |
processList(String listFile)
Process list. |
private static void |
restore(String path)
Restore iPod's firmware from backup via ipodpatcher. |
private static void |
setupiPodPatcher()
Setup iPodPatcher. |
private static void |
setupLazyInstall()
Setup lazy install mode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static boolean help
private static boolean backup
private static boolean restore
private static boolean loader2
private static boolean ipodlinux
private static boolean zeroslackr
private static boolean auto
private static boolean lazy
private static boolean mirror
private static final String FILES_FOLDER
private static final String BACKUP_FOLDER
private static final String DOWNLOAD_FOLDER
private static final String TOOLS_FOLDER
private static final String IPODPATCHER_FOLDER
private static final String LOADER2_FOLDER
private static final String[] FOLDER_STRUCTURE
private static String ipod
private static String packlist
private static iPodPatcher ipp
private static String fw_backup
private static String loader2_bin
private static Scanner in
private static final String IPL_PACKLIST
private static final String ZS_PACKLIST
private static final String DEFAULT_FW_BACKUP
private static final String DEFAULT_LOADER2_BIN
private static String[] testArgs
Constructor Detail |
---|
public Main()
Method Detail |
---|
public static void main(String[] args)
private static void printError(String error, int errorLevel, Exception e)
Error levels:
-1 = warning (non-fatal),
0 = normal exit,
1 = bad command,
2 = initiation error,
3 = ipodpatcher error,
4 = packlist error
private static void printSplash()
private static void printCommands()
private static void createFolderStructure()
private static void checkArgs(String[] args)
private static void setupLazyInstall()
private static void setupiPodPatcher()
private static void backup(String path)
path
- Path to firmware image.private static void restore(String path)
path
- Path to firmware image.private static void installLoader2(String path)
path
- Path to loader.bin file.private static void processList(String listFile)
private static void installPack(Pack p)
p
- Pack object created by List object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |