From 17d7eb6a55d0b8948edb8ac00297e529d923020b Mon Sep 17 00:00:00 2001 From: brianjjones Date: Fri, 9 May 2014 16:33:04 -0700 Subject: [PATCH] Fixing paths and adding un-install section Change-Id: Iaf6bb17abc44a67ef32db67c3c3acdd63b686139 Signed-off-by: brianjjones --- packaging/.modello-installer.spec.swp | Bin 12288 -> 0 bytes packaging/modello-installer.changes | 4 +++ packaging/modello-installer.spec | 48 +++++++++++++++++++++++++++------- 3 files changed, 42 insertions(+), 10 deletions(-) delete mode 100644 packaging/.modello-installer.spec.swp diff --git a/packaging/.modello-installer.spec.swp b/packaging/.modello-installer.spec.swp deleted file mode 100644 index 9044dd46ab778562a7a07c6da88280f2c4b7fbad..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2zi$*r6vrQq2qDCPLPI%tIVD)^?%4<~18iWM7>Ht`haVIDwFe2||Nri90MGXk{Q-UhKZA9kz_;KK_z>&_ zul6DqJOfX_@8ALW1+0Np5QEcT1{?rtZn;2!u1+y!^Q_h21d1@qt}_yUZB ze?P%G@Dlt3{ss@hui!`U1GocDfp35h#=$7~2*dnIGiYB5kZYi3->HkDh_v>b6tOM?@4?m8Y+!NnB_Jsj1Hqb zH(`)#S+?yis(4vi6AC|#T2hRa-M`~wRLL_OvEiDymK3Y)C|Rl7L^P$Aq+7z*4NW!)>acP_snqbdCbjw?I4b)u0+oP~RfX?bqr+rgQMpyIPt3yB2$T3me6_oB#j- diff --git a/packaging/modello-installer.changes b/packaging/modello-installer.changes index e69de29..11d38cf 100644 --- a/packaging/modello-installer.changes +++ b/packaging/modello-installer.changes @@ -0,0 +1,4 @@ +* Fri May 09 2014 brianjjones submit/tizen_ivi/20140509.233232@7e92052 +- Fixing paths and adding un-install section +- Initial checkin + diff --git a/packaging/modello-installer.spec b/packaging/modello-installer.spec index 3246475..da49879 100644 --- a/packaging/modello-installer.spec +++ b/packaging/modello-installer.spec @@ -19,26 +19,52 @@ Installer for Modello %package xwalk Summary: The Xwalk version of Modello Installer Requires: crosswalk +Requires: Modello_AMBSimulator +Requires: Modello_Appmanager +Requires: Modello_Common +Requires: Modello_Dashboard +Requires: Modello_Homescreen +Requires: Modello_Hvac +Requires: Modello_Multimediaplayer +Requires: Modello_Nav +Requires: Modello_Phone +Requires: Modello_SDL +Requires: tizen-platform-config %description xwalk Installs Modello using Xwalk %post xwalk -for list in $(find /opt/usr/apps/.preinstallWidgets/ -name "Modello*") +source %_sysconfdir/tizen-platform.conf + +for list in $(find $TZ_SYS_APP_PREINSTALL -name "Modello*") do - #XWalk requires you be app to install files - su app -c "xwalkctl -i $list" + #XWalk requires you not be root to install files + echo "Installing $list" + su "$TZ_USER_NAME" -c "xwalkctl -i $list" done -for list2 in $(ls -d /opt/home/app/.config/xwalk-service/applications/*/) +for list2 in $(ls -d $TZ_SYS_HOME/$TZ_USER_NAME/.config/xwalk-service/applications/*/) do mkdir -p "$list2/css" mkdir -p "$list2/js" - cp -r /opt/usr/apps/_common/js/services "$list2/js/" - cp -r /opt/usr/apps/_common/css/* "$list2/css/" + cp -r $TZ_USER_APP/_common/js/services "$list2/js/" + cp -r $TZ_USER_APP/_common/css/* "$list2/css/" +done + +%postun xwalk + +source %_sysconfdir/tizen-platform.conf + +for list3 in $(su "$TZ_USER_NAME" -c "xwalkctl" | grep Modello | cut -c 1-32) +do + echo "Uninstalling $list3" + su "$TZ_USER_NAME" -c "xwalkctl -u $list3" done +#------------------------------------------------------------------------------------ + %package wrt Summary: The WRT version of Modello Installer Requires: wrt-installer @@ -48,18 +74,20 @@ Installs Modello using wrt-installer %post wrt -for list in $(find /opt/usr/apps/.preinstallWidgets/ -name "Modello*") +source %_sysconfdir/tizen-platform.conf + +for list in $(find $TZ_SYS_APP_PREINSTALL -name "Modello*") do #wrt-installer requires you be root to install files wrt-installer -i $list done -for list2 in $(ls -d /opt/usr/apps/*/) +for list2 in $(ls -d $TZ_USER_APP/*/) do mkdir -p "$list2/css" mkdir -p "$list2/js" - cp -r /opt/usr/apps/_common/js/services "$list2/res/wgt/js/" - cp -r /opt/usr/apps/_common/css/* "$list2/res/wgt/css/" + cp -r $TZ_USER_APP/_common/js/services "$list2/res/wgt/js/" + cp -r $TZ_USER_APP/_common/css/* "$list2/res/wgt/css/" done %files xwalk -- 2.7.4