[Android Software/Hacking General [Developers Only]] MrTapa:
Hello. I wanted to rebase my script to v2.5 i started a new one. I took teh aroma zip provided in first post and started exploring it. I was with 2.00 and it was different. However i made myself a test here. I cleaned out syntax errors expect the error on the last empty line. How could i make this zip without errors. And i havent modified updater script. I puted teh one from aroma 2.5 zip

so here it is

# Info #
ini_set("rom_name",	"Jelly Sandwich");
ini_set("rom_version",	"6.1");
ini_set("rom_date",	"22.09.2012");
ini_set("rom_author",	"MrTapa");
ini_set("rom_device",	"Xperia Ray");

# Spash #
splash(3000,"mgTerminator_big");

# Default theme #
theme("ics");

# Default screen size #
ini_set("dp","3");

# Default font type & font size #
fontresload("0","fonts/Roboto.ttf","12");
fontresload("1","fonts/Roboto.ttf","16");

########## Calibration ##########
# Xperia #
calibrate_matrix(
"49905.00","-1170.00","90937.50","1192.75",
"47526.50","334853.12","47900.00","0"
);

###################################################################################################################
#
# THEME
#
selectbox(
#-- Title
"<~themes.title>",

#-- Sub Title
"<~themes.desc>",

#-- Icon: <AROMA Resource Dir>/icons/personalize.png or <ThemeDir>/icon.personalize.png
"@personalize",

#-- Will be saved in /tmp/aroma/theme.prop
"theme.prop",

#---------------------------------[ Selectbox Without Group ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#

"Generic", "Default AROMA Installer", 0, #-- selected.0 = 1
"MIUI Theme", "MIUI Theme", 0, #-- selected.0 = 2
"ICS Theme", "Ice Cream Sandwitch ", 0, #-- selected.0 = 3
"MIUI 4 Theme", "MIUI 4/ICS Theme ", 1, #-- selected.0 = 4
"Sense Theme", "HTC Sense Theme", 0 #-- selected.0 = 5

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);

##
# SET THEME
#
#-- Change Info:
# file_getprop : should use absolute path "/tmp/aroma/theme.prop"
# prop : just use relative path "theme.prop" will automatically read the "/tmp/aroma/theme.prop"
#
if prop("theme.prop","selected.0")=="2" then
theme("miui");
endif;

if prop("theme.prop","selected.0")=="3" then
theme("ics");
endif;

if prop("theme.prop","selected.0")=="4" then
theme("miui4");
endif;

if prop("theme.prop","selected.0")=="5" then
theme("sense");
endif;

###################################################################################################################
#
# Installer
#
menubox(
#-- Title
"Hello",

#-- Sub Title
"Please select and item from the menu below",

#-- Icon
"@apps",

#-- Will be saved in /tmp/aroma/first.prop
"demo.prop",

#-------------------------+-----------------[ Menubox Items ]-------------------------+---------------#
# TITLE | SUBTITLE | Item Icons #
#-------------------------+-----------------------------------------------------------+---------------#

"Install Rom", "Flash Jelly Sandwich", "@install", #-- selected = 1
"Changelog", "Show the changelog for the rom", "@info", #-- selected = 2
"Exit", "Return to recovery", "@default" #-- selected = 3

);

##########################################################
####################### CHANGELOG ########################
##########################################################

if prop("first.prop","selected")=="2" then
textbox(
#-- Title
"Changelog",

#-- Subtitle
"Here it is",

#-- Icon
"@update",

#-- Arg 4
resread("changelog.txt")
);

##########################################################
########################## EXIT ##########################
##########################################################

if prop("first.prop","selected")=="3" then
if
confirm(
#-- Title
"Exit",
#-- Text
"Are you sure want to exit the Installer?",
#-- Icon (Optional)
"@alert"
)=="yes"
then
#-- Exit - NOTE: Add dummy argument
exit("");
endif;

##########################################################
###################### CUSTOMIZE #########################
##########################################################

if prop("first.prop","selected")=="1" then
selectbox(
#-- Title
"Select",

#-- Sub Title
"Please choose required features for teh rom",

#-- Icon: <AROMA Resource Dir>/icons/default.png or <ThemeDir>/icon.default.png
"@default",

#-- Will be saved in /tmp/aroma/mods.prop
"mods.prop",

#-----------------------------------[ Selectbox With Groups ]----------------------------------#
# TITLE | SUBTITLE | Initial Value #
#------------------+-----------------------------------------------------------+---------------#

"Statusbars", "", 2, #-- Group 1. key = "selected.1"
"Xperia Stock", "Sony's stock xperia statusbar", 0, #-- selected.1 = 1
"Xperia GX", "Xperia GX like statusbar", 0, #-- selected.1 = 2
"JellyBean", "Full Holo JellyBean statusbar", 1, #-- selected.1 = 3

"Boot Animation", "", 2, #-- Group 2. key = "selected.2"
"Default Nexus S", "Default Nexus S Android boot animation", 1, #-- selected.2 = 1
"AROMA Boot Animation","AROMA Earthquake logo boot animation", 0, #-- selected.2 = 2
"HTC Generic", "Generic white HTC Quitely Briliant boot animation", 0, #-- selected.2 = 3
"Old Android", "Old Android logo boot animation", 0, #-- selected.2 = 4

"SD-EXT Mods", "", 2, #-- Group 3. key = "selected.3"
"Generic APP2SD", "Generic app2sd, all non-system apk in sd-ext", 1, #-- selected.3 = 1
"AD2SDX", "All non-system files in sd-ext", 0, #-- selected.3 = 2
"Data2SD", "All data files in sd-ext", 0, #-- selected.3 = 3

"Input Method", "", 2, #-- Group 3. key = "selected.3"
"Android IME", "Android AOSP Keyboard", 1, #-- selected.3 = 1
"HTC IME", "HTC IME with T9 Support", 0, #-- selected.3 = 2

"Camera", "", 2, #-- Group 3. key = "selected.4"
"Android Camera", "Android AOSP Generic Camera", 1, #-- selected.4 = 1
"HTC Camera 3.5", "New and No FC Error, but No 720p Video Recording", 0, #-- selected.4 = 2
"HTC Camera 3.0", "Old Camera With 720p Recording, but FC Error in Preview.", 0 #-- selected.4 = 3

#--------[ Initial Value = 0: Unselected, 1: Selected, 2: Group Item, 3: Not Visible ]---------#
);
endif;

##
#
# Next Screen is Installation UI, So change the next button text to "Install Now"
#
ini_set("text_next", "Install Now");

###################################################################################################################
#
# STEP 9 - MAKE SURE USER KNOW THAT NEXT STEP WAS INSTALLATION PROCESS
#
viewbox(
#-- Title
"Ready to Install",

#-- Text
"The wizard is ready to begin installation.\n\n"+
"Press <b>Install Now</b> to begin the installation.\n\n"+
"If you want to review or change any of your installation settings, press <b>Back</b>. Press Menu Key -> Quit Installation to exit the wizard.",

#-- Icon
"@install"
);

##
#
# Next Button in successfull installation should be back to "Next >"
#
ini_set("text_next", "Next >");

#-- Extract sleep to /tmp/aroma/sleep. It will be used in updater-script for testing wait script
restotmp("exec_demo/sleep","sleep");

###################################################################################################################
#
# STEP 10 - INSTALLATION PROCESS
#
setvar("retstatus",
install(
#-- Title
"Installing",

#-- Installation Process message
"<b>"+ini_get("rom_name")+"</b> are being installed.\n\n"+
"Please wait while installation wizard installs <b>"+ini_get("rom_name")+
"</b>. This may take several minutes.",

#-- Installation Icon
"@install",

#-- Installation Finish Message
"The installation wizard has successfully installed <b>"+ini_get("rom_name")+
"</b>. Press Next to continue."
)
);

##
#
# Next Button is "Finish"
#
ini_set("text_next", "Finish");

###################################################################################################################
#
# STEP 11 - FINISH MESSAGE, Add Checkbox to Reboot or No. Save in "reboot_it" variable
#
# You can use return value or "reboot_it" variable to retrive checkbox value
# Example:
# if (checkviewbox(....)=="1" then
# ... checked ...
# endif;
#
checkviewbox(
#-- Title
"Installation Completed",

#-- Text
"<#selectbg_g><b>Congratulation...</b></#>\n\n"+
"<b>"+ini_get("rom_name")+"</b> has been installed into your device.\n\n"+
"Installer Status: "+getvar("retstatus")+"\n\n",

#-- Icon
"@welcome",

#-- Checkbox Text
"Reboot your device now.",

#-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)
"1",

#-- Save checked value in variable "reboot_it" (Optional)
"reboot_it"
);

###
#
# Check if reboot checkbox was checked
if
getvar("reboot_it")=="1"
then
#
# reboot("onfinish"); - Reboot if anything finished
# reboot("now"); - Reboot Directly
# reboot("disable"); - If you set reboot("onfinish") before, use this command to revert it.
#
reboot("onfinish");
endif;

#---- FINISH

Thank you