From d1b4e66b9724bdc7d41facd55a7e259db12863dd Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Tue, 16 Apr 2013 19:07:26 +0200 Subject: First commit --- annex.wgt | Bin 0 -> 3644194 bytes bubblewrap.wgt | Bin 0 -> 4439011 bytes go.wgt | Bin 0 -> 5039268 bytes install_widgets.sh | 17 ++++++++++ load_widget.sh | 80 +++++++++++++++++++++++++++++++++++++++++++++ mancala.wgt | Bin 0 -> 1504129 bytes packaging/wrt_widgets.spec | 59 +++++++++++++++++++++++++++++++++ 7 files changed, 156 insertions(+) create mode 100644 annex.wgt create mode 100644 bubblewrap.wgt create mode 100644 go.wgt create mode 100644 install_widgets.sh create mode 100644 load_widget.sh create mode 100644 mancala.wgt create mode 100644 packaging/wrt_widgets.spec diff --git a/annex.wgt b/annex.wgt new file mode 100644 index 0000000..83b360c Binary files /dev/null and b/annex.wgt differ diff --git a/bubblewrap.wgt b/bubblewrap.wgt new file mode 100644 index 0000000..b12d9b1 Binary files /dev/null and b/bubblewrap.wgt differ diff --git a/go.wgt b/go.wgt new file mode 100644 index 0000000..fb006d0 Binary files /dev/null and b/go.wgt differ diff --git a/install_widgets.sh b/install_widgets.sh new file mode 100644 index 0000000..995265c --- /dev/null +++ b/install_widgets.sh @@ -0,0 +1,17 @@ +#!/bin/sh +PWD_I=`pwd` +echo "Widget Installation" +if [ "$(id -u)" != "0" ]; then + echo "This script must be run as root" 1>&2 + exit 1 +fi +FILE=`ls *.wgt` +if [ -z "$FILE" ]; then + echo "$PWD_I doesn't contains any widgets (.wgt)" 1>&2 + exit 1 +fi +for i in $FILE +do +wrt-installer -i $PWD_I/$i +done + diff --git a/load_widget.sh b/load_widget.sh new file mode 100644 index 0000000..849a3da --- /dev/null +++ b/load_widget.sh @@ -0,0 +1,80 @@ +#! /bin/sh + +repo=/opt/usr/apps/ + +load_widget() +{ + chmod -R a+rw /opt/dbspace/ + for args in `ls $repo` ; do + if [ $args != "tmp" ] + then + echo " - loading $args" + echo "---------------------------------------------" + chmod a+x $repo/$args/bin/* + if [ $args == "33CFo0eFJe" ] ; then + annex + fi + if [ $args == "yKrWwxz1KX" ] ; then + mancala + fi + if [ $args == "ewqPdCunAO" ] ; then + bubble + fi + if [ $args == "SM31mV8fq9" ] ; then + go + fi + echo "" + fi + done +} + +annex() +{ + cp /opt/usr/apps/33CFo0eFJe/res/wgt/annex-icon.png /usr/share/icons/hicolor/128x128/apps/annex.png +cat< Date: Tue, 16 Apr 2013 19:12:31 +0200 Subject: Fix mkdir command --- packaging/wrt_widgets.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index 6aeb425..719c9d5 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -31,7 +31,7 @@ cp load_widget.sh %{buildroot}/usr/bin/ if [ ! -d %{buildroot}/root/widget_demo ] then - mkdir %{buildroot}/root/widget_demo + mkdir -p %{buildroot}/root/widget_demo fi cp -- cgit v1.2.3 From 679d9d5e6e05374bcdb0db081c6a9033613f24f4 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Tue, 16 Apr 2013 19:15:14 +0200 Subject: Fix cp command --- packaging/wrt_widgets.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index 719c9d5..75a2986 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -33,7 +33,6 @@ if [ ! -d %{buildroot}/root/widget_demo ] then mkdir -p %{buildroot}/root/widget_demo fi -cp cp *.wgt %{buildroot}/root/widget_demo/ -- cgit v1.2.3 From c2265acde02fab3d97fc6f660bffd37f2a03ac18 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Tue, 16 Apr 2013 19:16:36 +0200 Subject: Fix RPMLINT Rules --- packaging/wrt_widgets.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index 75a2986..46339c2 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -1,5 +1,5 @@ Name: wrt_widgets -Summary: wrt_widgets +Summary: Wrt_widgets Version: 0.1 Release: 1 Group: Framework/system -- cgit v1.2.3 From 2973a25dd4f33f7f4f19d6f0e08bda66c6f458d4 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Tue, 16 Apr 2013 19:19:35 +0200 Subject: Fix Requires packages --- packaging/wrt_widgets.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index 46339c2..599aa9a 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -6,7 +6,7 @@ Group: Framework/system License: Apache License, Version 2.0 Source0: %{name}-%{version}.tar.gz Requires: wrt -Requires: wrt-common +Requires: wrt-commons Requires: wrt-installer Requires: wrt-plugins-tizen Requires: wrt-security -- cgit v1.2.3 From fa527163dd894a37659f3dc894f5ac91eaa72632 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Tue, 16 Apr 2013 19:50:39 +0200 Subject: Fix Install Script --- install_widgets.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install_widgets.sh b/install_widgets.sh index 995265c..24c5d29 100644 --- a/install_widgets.sh +++ b/install_widgets.sh @@ -1,17 +1,17 @@ #!/bin/sh -PWD_I=`pwd` +PWD_I="/root/widget_demo" echo "Widget Installation" if [ "$(id -u)" != "0" ]; then echo "This script must be run as root" 1>&2 exit 1 fi -FILE=`ls *.wgt` +FILE=`ls ${PWD_I}/*.wgt` if [ -z "$FILE" ]; then echo "$PWD_I doesn't contains any widgets (.wgt)" 1>&2 exit 1 fi for i in $FILE do -wrt-installer -i $PWD_I/$i +wrt-installer -i $i done -- cgit v1.2.3 From 6da5861f5358e51ceee8701d6668603a52a90fcb Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Wed, 17 Apr 2013 15:26:00 +0200 Subject: Add usr/lib64/ for unsmack --- packaging/wrt_widgets.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index 599aa9a..dbd94f8 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -48,6 +48,11 @@ mv /usr/share/applications/* /usr/share/applications_tmp/ ail_initdb mv /usr/share/applications_tmp/* /usr/share/applications/ for d in dbspace home usr; do find /opt/$d -exec chsmack -a _ {} \; ; done; +find /usr/lib64/ -exec chsmack -a _ {} \; + + + + echo "Please Reboot and Execute the scripts install_widgets.sh & load_widget.sh in root mode " -- cgit v1.2.3 From 00d2986bd3983fc69adcdced4452fd636a4abbdb Mon Sep 17 00:00:00 2001 From: jbollo Date: Wed, 17 Apr 2013 15:43:58 +0200 Subject: improved version --- load_widget.sh | 102 ++++++++++++++++++--------------------------------------- 1 file changed, 32 insertions(+), 70 deletions(-) diff --git a/load_widget.sh b/load_widget.sh index 849a3da..c55299f 100644 --- a/load_widget.sh +++ b/load_widget.sh @@ -1,80 +1,42 @@ #! /bin/sh repo=/opt/usr/apps/ +chmod -R a+rw /opt/dbspace/ + +dbwdgt() { +cat << EOC +33CFo0eFJe Annex +yKrWwxz1KX Mancala +ewqPdCunAO BubbleWrap +SM31mV8fq9 Go +EOC +} -load_widget() -{ - chmod -R a+rw /opt/dbspace/ - for args in `ls $repo` ; do - if [ $args != "tmp" ] - then - echo " - loading $args" - echo "---------------------------------------------" - chmod a+x $repo/$args/bin/* - if [ $args == "33CFo0eFJe" ] ; then - annex - fi - if [ $args == "yKrWwxz1KX" ] ; then - mancala - fi - if [ $args == "ewqPdCunAO" ] ; then - bubble +dbwdgt | +while read id name +do + bin=$(ls /opt/usr/apps/$id/bin/$id.*) + for x in /opt/usr/apps/$id/res/wgt/*[iI][cC][oO][nN]*; do + if [[ -f $x ]]; then + res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+') + if [[ -n "$res" ]]; then + diric=/usr/share/icons/hicolor/$res/apps + [[ -d $diric ]] || mkdir -p $diric + cp $x $diric/$name.png fi - if [ $args == "SM31mV8fq9" ] ; then - go - fi - echo "" - fi + fi done -} - -annex() -{ - cp /opt/usr/apps/33CFo0eFJe/res/wgt/annex-icon.png /usr/share/icons/hicolor/128x128/apps/annex.png -cat< $desk [Desktop Entry] Type=Application -Name=Mancala -Exec=/opt/usr/apps/yKrWwxz1KX/bin/yKrWwxz1KX.mancala -Icon=/usr/share/icons/hicolor/128x128/apps/mancala.png -EOF -} - -bubble() -{ - cp /opt/usr/apps/ewqPdCunAO/res/wgt/icon_128.png /usr/share/icons/hicolor/128x128/apps/bubble.png -cat< Date: Wed, 17 Apr 2013 15:47:28 +0200 Subject: renaming and setting execution rights --- install_desktop.sh | 43 +++++++++++++++++++++++++++++++++++++++++++ install_widgets.sh | 0 load_widget.sh | 42 ------------------------------------------ 3 files changed, 43 insertions(+), 42 deletions(-) create mode 100755 install_desktop.sh mode change 100644 => 100755 install_widgets.sh delete mode 100644 load_widget.sh diff --git a/install_desktop.sh b/install_desktop.sh new file mode 100755 index 0000000..9693075 --- /dev/null +++ b/install_desktop.sh @@ -0,0 +1,43 @@ +#! /bin/sh + +repo=/opt/usr/apps/ +chmod -R a+rw /opt/dbspace/ + +dbwdgt() { +cat << EOC +33CFo0eFJe Annex +yKrWwxz1KX Mancala +ewqPdCunAO BubbleWrap +SM31mV8fq9 Go +EOC +} + +dbwdgt | +while read id name +do + bin=$(ls /opt/usr/apps/$id/bin/$id.*) + for x in /opt/usr/apps/$id/res/wgt/*[iI][cC][oO][nN]*; do + if [[ -f $x ]]; then + res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+') + if [[ -n "$res" ]]; then + diric=/usr/share/icons/hicolor/$res/apps + [[ -d $diric ]] || mkdir -p $diric + cp $x $diric/$name.png + fi + fi + done + desk=/usr/share/applications/$name.desktop + cat << EOC > $desk +[Desktop Entry] +Type=Application +Name=$name +Exec=$bin +Icon=$name +Terminal=false +Categories=WRT;Game +EOC +done + +update-desktop-database +xdg-icon-resource forceupdate + diff --git a/install_widgets.sh b/install_widgets.sh old mode 100644 new mode 100755 diff --git a/load_widget.sh b/load_widget.sh deleted file mode 100644 index c55299f..0000000 --- a/load_widget.sh +++ /dev/null @@ -1,42 +0,0 @@ -#! /bin/sh - -repo=/opt/usr/apps/ -chmod -R a+rw /opt/dbspace/ - -dbwdgt() { -cat << EOC -33CFo0eFJe Annex -yKrWwxz1KX Mancala -ewqPdCunAO BubbleWrap -SM31mV8fq9 Go -EOC -} - -dbwdgt | -while read id name -do - bin=$(ls /opt/usr/apps/$id/bin/$id.*) - for x in /opt/usr/apps/$id/res/wgt/*[iI][cC][oO][nN]*; do - if [[ -f $x ]]; then - res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+') - if [[ -n "$res" ]]; then - diric=/usr/share/icons/hicolor/$res/apps - [[ -d $diric ]] || mkdir -p $diric - cp $x $diric/$name.png - fi - fi - done - desk=/usr/share/applications/$name.desktop - cat << EOC > $desk -[Desktop Entry] -Type=Application -Name=$name -Exec=$bin -Icon=$name -Terminal=false -Categories=WRT;Game -EOC -done - -xdg-icon-resource forceupdate - -- cgit v1.2.3 From 53d46c4012b4c7bb0f1cc91b1e006863f3d99f37 Mon Sep 17 00:00:00 2001 From: jbollo Date: Wed, 17 Apr 2013 16:35:04 +0200 Subject: simplification --- install_desktop.sh | 43 -------------------------------------- install_widgets.sh | 52 +++++++++++++++++++++++++++++++++++++++------- packaging/wrt_widgets.spec | 13 +++--------- 3 files changed, 48 insertions(+), 60 deletions(-) delete mode 100755 install_desktop.sh diff --git a/install_desktop.sh b/install_desktop.sh deleted file mode 100755 index 9693075..0000000 --- a/install_desktop.sh +++ /dev/null @@ -1,43 +0,0 @@ -#! /bin/sh - -repo=/opt/usr/apps/ -chmod -R a+rw /opt/dbspace/ - -dbwdgt() { -cat << EOC -33CFo0eFJe Annex -yKrWwxz1KX Mancala -ewqPdCunAO BubbleWrap -SM31mV8fq9 Go -EOC -} - -dbwdgt | -while read id name -do - bin=$(ls /opt/usr/apps/$id/bin/$id.*) - for x in /opt/usr/apps/$id/res/wgt/*[iI][cC][oO][nN]*; do - if [[ -f $x ]]; then - res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+') - if [[ -n "$res" ]]; then - diric=/usr/share/icons/hicolor/$res/apps - [[ -d $diric ]] || mkdir -p $diric - cp $x $diric/$name.png - fi - fi - done - desk=/usr/share/applications/$name.desktop - cat << EOC > $desk -[Desktop Entry] -Type=Application -Name=$name -Exec=$bin -Icon=$name -Terminal=false -Categories=WRT;Game -EOC -done - -update-desktop-database -xdg-icon-resource forceupdate - diff --git a/install_widgets.sh b/install_widgets.sh index 24c5d29..d4147e0 100755 --- a/install_widgets.sh +++ b/install_widgets.sh @@ -1,17 +1,55 @@ #!/bin/sh -PWD_I="/root/widget_demo" + + echo "Widget Installation" if [ "$(id -u)" != "0" ]; then - echo "This script must be run as root" 1>&2 + echo "This script must be run as root" >&2 exit 1 fi -FILE=`ls ${PWD_I}/*.wgt` -if [ -z "$FILE" ]; then - echo "$PWD_I doesn't contains any widgets (.wgt)" 1>&2 + +wgtdir=/root/widget_demo +if [ -z "$(ls $wgtdir/*.wgt 2> /dev/null)" ]; then + echo "$wgtdir doesn't contains any widgets (.wgt)" 1>&2 exit 1 fi -for i in $FILE + +for wgt in $wgtdir/*.wgt do -wrt-installer -i $i + echo "installing $wgt" + wrt-installer -i $wgt done + +repo=/opt/usr/apps/ +chmod -R a+rw /opt/dbspace/ + +wrt-launcher --list | +awk 'NR>2{print $2, $5, $6}' | +while read name packid appid +do + bin=$repo/$packid/bin/$appid + for x in $repo/$packid/res/wgt/*[iI][cC][oO][nN]*; do + if [[ -f $x ]]; then + res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+') + if [[ -n "$res" ]]; then + diric=/usr/share/icons/hicolor/$res/apps + [[ -d $diric ]] || mkdir -p $diric + cp $x $diric/$name.png + fi + fi + done + desk=/usr/share/applications/$name.desktop + cat << EOC > $desk +[Desktop Entry] +Type=Application +Name=$name +Exec=$bin +Icon=$name +Terminal=false +Categories=WRT;Game +EOC +done + +update-desktop-database +xdg-icon-resource forceupdate + diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index dbd94f8..bea137a 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -23,11 +23,8 @@ Description: Wrt_Widget DEMO %install -chmod a+x install_widgets.sh -chmod a+x load_widget.sh mkdir -p %{buildroot}/usr/bin/ cp install_widgets.sh %{buildroot}/usr/bin/ -cp load_widget.sh %{buildroot}/usr/bin/ if [ ! -d %{buildroot}/root/widget_demo ] then @@ -47,17 +44,13 @@ mkdir -p /usr/share/applications_tmp mv /usr/share/applications/* /usr/share/applications_tmp/ ail_initdb mv /usr/share/applications_tmp/* /usr/share/applications/ -for d in dbspace home usr; do find /opt/$d -exec chsmack -a _ {} \; ; done; +for d in dbspace home usr; do find /opt/$d -exec chsmack -a '*' {} \; ; done; find /usr/lib64/ -exec chsmack -a _ {} \; - - - - -echo "Please Reboot and Execute the scripts install_widgets.sh & load_widget.sh in root mode " +echo "Please Reboot and Execute the script install_widgets.sh as user root" %files /root/widget_demo/*.wgt /usr/bin/install_widgets.sh -/usr/bin/load_widget.sh + -- cgit v1.2.3 From ac14742405e3abe4a965e5525e0dbd956dd415ef Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Tue, 23 Apr 2013 18:00:15 +0200 Subject: Add some desktop file in /usr/share/applications to prevent of ail_initdb --- packaging/wrt_widgets.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index bea137a..a0044c3 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -42,6 +42,7 @@ wrt_reset_all.sh pkg_initdb mkdir -p /usr/share/applications_tmp mv /usr/share/applications/* /usr/share/applications_tmp/ +mv /usr/share/applications_tmp/*tizen*.desktop /usr/share/applications/ ail_initdb mv /usr/share/applications_tmp/* /usr/share/applications/ for d in dbspace home usr; do find /opt/$d -exec chsmack -a '*' {} \; ; done; -- cgit v1.2.3 From f044ec8c7aa135bed90855c7bebd47919bfacd2d Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Tue, 14 May 2013 16:29:26 +0200 Subject: Fix config.xml issu --- annex.wgt | Bin 3644194 -> 3644205 bytes bubblewrap.wgt | Bin 4439011 -> 4439022 bytes go.wgt | Bin 5039268 -> 5039277 bytes mancala.wgt | Bin 1504129 -> 1504139 bytes 4 files changed, 0 insertions(+), 0 deletions(-) diff --git a/annex.wgt b/annex.wgt index 83b360c..72e6ef3 100644 Binary files a/annex.wgt and b/annex.wgt differ diff --git a/bubblewrap.wgt b/bubblewrap.wgt index b12d9b1..2619403 100644 Binary files a/bubblewrap.wgt and b/bubblewrap.wgt differ diff --git a/go.wgt b/go.wgt index fb006d0..10fe171 100644 Binary files a/go.wgt and b/go.wgt differ diff --git a/mancala.wgt b/mancala.wgt index 5a78687..7ca4a07 100644 Binary files a/mancala.wgt and b/mancala.wgt differ -- cgit v1.2.3 From 853388e8ca89b48792269ca1fb52490d5fcc0a71 Mon Sep 17 00:00:00 2001 From: Xavier Roche Date: Wed, 15 May 2013 16:16:10 +0200 Subject: Fix launch icon issue : two icons creation --- install_widgets.sh | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/install_widgets.sh b/install_widgets.sh index d4147e0..fd4617a 100755 --- a/install_widgets.sh +++ b/install_widgets.sh @@ -25,30 +25,30 @@ chmod -R a+rw /opt/dbspace/ wrt-launcher --list | awk 'NR>2{print $2, $5, $6}' | -while read name packid appid -do - bin=$repo/$packid/bin/$appid - for x in $repo/$packid/res/wgt/*[iI][cC][oO][nN]*; do - if [[ -f $x ]]; then - res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+') - if [[ -n "$res" ]]; then - diric=/usr/share/icons/hicolor/$res/apps - [[ -d $diric ]] || mkdir -p $diric - cp $x $diric/$name.png - fi - fi - done - desk=/usr/share/applications/$name.desktop - cat << EOC > $desk -[Desktop Entry] -Type=Application -Name=$name -Exec=$bin -Icon=$name -Terminal=false -Categories=WRT;Game -EOC -done +#while read name packid appid +#do +# bin=$repo/$packid/bin/$appid +# for x in $repo/$packid/res/wgt/*[iI][cC][oO][nN]*; do +# if [[ -f $x ]]; then +# res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+') +# if [[ -n "$res" ]]; then +# diric=/usr/share/icons/hicolor/$res/apps +# [[ -d $diric ]] || mkdir -p $diric +# cp $x $diric/$name.png +# fi +# fi +# done +# desk=/usr/share/applications/$name.desktop +# cat << EOC > $desk +#[Desktop Entry] +#Type=Application +#Name=$name +#Exec=$bin +#Icon=$name +#Terminal=false +#Categories=WRT;Game +#EOC +#done update-desktop-database xdg-icon-resource forceupdate -- cgit v1.2.3 From 2ebfece77001a4e40abc684a10d02b125fc01c93 Mon Sep 17 00:00:00 2001 From: Victor Hakoun Date: Fri, 17 May 2013 11:55:48 +0200 Subject: ADD BluetoothChat.wgt --- BluetoothChat.wgt | Bin 0 -> 35236 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 BluetoothChat.wgt diff --git a/BluetoothChat.wgt b/BluetoothChat.wgt new file mode 100644 index 0000000..195ab60 Binary files /dev/null and b/BluetoothChat.wgt differ -- cgit v1.2.3 From 967b31c6d0b85a3cf4341d12931413492c3e4aa7 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Mon, 17 Jun 2013 19:43:51 +0200 Subject: Update Requires Dep. --- packaging/wrt_widgets.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index a0044c3..27d61eb 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -10,6 +10,8 @@ Requires: wrt-commons Requires: wrt-installer Requires: wrt-plugins-tizen Requires: wrt-security +Requires: aul-1-configPC +Requires: dbus-configPC %description Description: Wrt_Widget DEMO -- cgit v1.2.3 From 9f6a38b11ac4b02c82c09d4120ef0a3854a64cc8 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Tue, 18 Jun 2013 18:03:52 +0200 Subject: Change rule of dbspace directory --- packaging/wrt_widgets.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index 27d61eb..9a3ea91 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -49,7 +49,7 @@ ail_initdb mv /usr/share/applications_tmp/* /usr/share/applications/ for d in dbspace home usr; do find /opt/$d -exec chsmack -a '*' {} \; ; done; find /usr/lib64/ -exec chsmack -a _ {} \; - +chmod -R a+rw /opt/dbspace/ echo "Please Reboot and Execute the script install_widgets.sh as user root" -- cgit v1.2.3 From d2258922a2ea51fae4d43a692e915eb914056dfe Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Tue, 18 Jun 2013 19:11:52 +0200 Subject: Update post section --- packaging/wrt_widgets.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index 9a3ea91..2ac906e 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -38,6 +38,7 @@ cp *.wgt %{buildroot}/root/widget_demo/ %post mkdir -p /opt/usr/apps mkdir -p /opt/share/applications +mkdir -p /opt/share/packages rm /opt/dbspace/.wrt* wrt_commons_create_clean_db.sh wrt_reset_all.sh -- cgit v1.2.3 From a40733bde4b160da365c0c9d949af4832cc55792 Mon Sep 17 00:00:00 2001 From: Victor Hakoun Date: Thu, 20 Jun 2013 12:01:35 +0200 Subject: Add vconf table creation from settings package in post section of spec file --- packaging/wrt_widgets.spec | 199 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 199 insertions(+) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index 2ac906e..d7a2cca 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -36,6 +36,205 @@ fi cp *.wgt %{buildroot}/root/widget_demo/ %post +##### vconf create table from settings package ######################### +# Set vconf values with -g/-u options +GOPTION="-g 6514" + +#resetMenuscreen + # menuscreen app will take this vconf + #vconftool $GOPTION set -t string db/setting/menuscreen/package_name "com.samsung.cluster-home" + + +#resetFlightmode + vconftool $GOPTION set -t bool db/telephony/flight_mode "0" -f + +#resetNetwork + vconftool $GOPTION set -t int db/setting/select_network "0" + vconftool $GOPTION set -t int db/setting/select_network_act "0" + vconftool $GOPTION set -t int db/setting/network_mode "0" + vconftool $GOPTION set -t bool db/setting/3gEnabled "1" + vconftool $GOPTION set -t bool db/setting/data_roaming "0" + +#resetUsbConnectivity + vconftool $GOPTION set -t int memory/setting/usb_mode "-1" -i -f + vconftool $GOPTION set -t int memory/setting/usb_sel_mode "0" -i -f + vconftool $GOPTION set -t int memory/setting/usb_in_mode_change "0" -i -f + vconftool $GOPTION set -t bool db/setting/debug_mode "1" -f + vconftool $GOPTION set -t int db/setting/default_rendering_engine "1" -i + +#resetSound + DEFAULT_CALL_TONE="/opt/share/settings/Ringtones/ringtone_sdk.mp3" + DEFAULT_NOTI_TONE="/opt/share/settings/Alerts/General notification_sdk.wav" + + vconftool $GOPTION set -t bool db/setting/sound/sound_on "1" + vconftool $GOPTION set -t bool db/setting/sound/vibration_on "0" + + vconftool $GOPTION set -t int db/setting/sound/call/ringtone_sound_volume "13" + vconftool $GOPTION set -t int db/setting/sound/noti/sound_volume "7" + vconftool $GOPTION set -t int db/setting/sound/media/sound_volume "7" + vconftool $GOPTION set -t int db/setting/sound/touch_feedback/sound_volume "5" + + vconftool $GOPTION set -t int db/setting/sound/noti/vibration_level "5" + vconftool $GOPTION set -t int db/setting/sound/touch_feedback/vibration_level "3" + vconftool $GOPTION set -t int db/setting/sound/touch_feedback/vibration_level_bak "3" ##private key + + vconftool $GOPTION set -t string db/setting/sound/call/ringtone_path "${DEFAULT_CALL_TONE}" + vconftool $GOPTION set -t string db/setting/sound/call/ringtone_default_path "${DEFAULT_CALL_TONE}" + vconftool $GOPTION set -t int db/setting/sound/call/vibration_type "2" + + vconftool $GOPTION set -t string db/setting/sound/noti/msg_ringtone_path "${DEFAULT_NOTI_TONE}" + vconftool $GOPTION set -t string db/setting/sound/noti/ringtone_default_path "${DEFAULT_NOTI_TONE}" + vconftool $GOPTION set -t int db/setting/sound/noti/msg_alert_rep_type "0" + + vconftool $GOPTION set -t string db/setting/sound/noti/email_ringtone_path "${DEFAULT_NOTI_TONE}" + vconftool $GOPTION set -t int db/setting/sound/noti/email_alert_rep_type "0" + vconftool $GOPTION set -t bool db/setting/sound/touch_sounds "1" + vconftool $GOPTION set -t bool db/setting/sound/sound_lock "1" + +#resetWallpaper + vconftool $GOPTION set -t string db/menu_widget/bgset "/opt/share/settings/Wallpapers/Home_default.jpg" + vconftool $GOPTION set -t string db/idle_lock/bgset "/opt/share/settings/Wallpapers/Home_default.jpg" + +#resetMotions + vconftool $GOPTION set -t bool db/setting/motion_active "1" + +#resetDisplay + #backlight +# Set backlight timeout to dim display on all platforms except emulator +# 0 sec : unlimited time +# 600 sec : 10 min +%if 0%{?simulator} + vconftool $GOPTION set -t int db/setting/lcd_backlight_normal "600" +%else + vconftool $GOPTION set -t int db/setting/lcd_backlight_normal "30" +%endif + + vconftool $GOPTION set -t int db/setting/lcd_timeout_normal_backup "30" + + #brightness + vconftool $GOPTION set -t int db/setting/Brightness "-1" + vconftool $GOPTION set -t int db/setting/brightness_automatic "0" + + #battery + vconftool $GOPTION set -t bool db/setting/battery_percentage "0" + #launch + #vconftool $GOPTION set -t string db/menu_widget/launch_effect "0" + +#resetPowersaving + vconftool $GOPTION set -t bool db/setting/pwrsv/system_mode/status "0" + vconftool $GOPTION set -t bool db/setting/pwrsv/system_mode/reminder "1" + +#resetFont + vconftool $GOPTION set -t int db/setting/font_size "1" + vconftool $GOPTION set -t int db/setting/font_type "0" + +#resetRotationLock + vconftool $GOPTION set -t bool db/setting/rotate_lock "1" + vconftool $GOPTION set -t bool db/setting/auto_rotate_screen "0" + #vconftool $GOPTION set -t bool memory/setting/rotate_hold "0" -i -f +#resetTimeAndData +%ifarch %{arm} + vconftool $GOPTION set -t bool db/setting/automatic_time_update "1" +%else + vconftool $GOPTION set -t bool db/setting/automatic_time_update "0" +%endif + + vconftool $GOPTION set -t int db/menu_widget/regionformat_time1224 "1" + vconftool $GOPTION set -t int db/setting/date_format "0" + vconftool $GOPTION set -t int db/setting/weekofday_format "0" + + #----------------------------------------------------------------- + # MOCK FUNCTION + # MOCK IMPLEMENTATION FOR API COMPATIBILITY + # NEED TO CHECK THE KEY WITH THE CALENDAR APP + #----------------------------------------------------------------- + vconftool $GOPTION set -t int db/setting/weekofday_format "0" + + vconftool $GOPTION set -t string db/setting/timezone "+9" + # to be removed + vconftool $GOPTION set -t string db/setting/cityname_id "IDS_WCL_BODY_CITYNAME_SEOUL" + + vconftool $GOPTION set -t string db/setting/timezone_id "Asia/Seoul" + + #if [ -f /opt/etc/localtime ] + #then + rm -f /opt/etc/localtime + ln -s /usr/share/zoneinfo/Asia/Seoul /opt/etc/localtime + #fi + + +#resetAccessibility + vconftool $GOPTION set -t bool db/setting/accessibility/accessibility "0" + vconftool $GOPTION set -t bool db/setting/accessibility/high_contrast "0" + vconftool $GOPTION set -t bool db/setting/accessibility/screen_zoom "1" + vconftool $GOPTION set -t int db/setting/accessibility/font_size "1" + #vconftool $GOPTION set -t int db/setting/accessibility/font_style "0" + vconftool $GOPTION set -t string db/setting/accessibility/font_name "HelveticaNeue" + vconftool $GOPTION set -t bool db/setting/accessibility/tts "0" + vconftool $GOPTION set -t int db/setting/accessibility/speech_rate "2" + + #----------------------------------------------------------------- + # MOCK FUNCTION + # NOT SUPPORTED BUT ADDED FOR API COMPATIBILITY + # temp key for screen reader & speech rate + #----------------------------------------------------------------- + vconftool $GOPTION set -t bool db/setting/accessibility/tts "0" + vconftool $GOPTION set -t int db/setting/accessibility/speech_rate "2" + +#resetLanguageAndRegion + vconftool $GOPTION set -t int db/setting/lang "9" + vconftool $GOPTION set -t string db/menu_widget/language "en_GB.UTF-8" + vconftool $GOPTION set -t string db/menu_widget/regionformat "en_GB.UTF-8" + +#resetViewtype + #vconftool $GOPTION set -t int db/menuscreen/viewtype "0" + #vconftool $GOPTION set -t int db/taskswitcher/viewtype "0" + +#resetTouch + #vconftool $GOPTION set -t int db/setting/vib_feedback "3" + #vconftool $GOPTION set -t bool db/setting/touch_panel_autolock "0" + +#resetLicense + vconftool $GOPTION set -t bool db/setting/transaction_tracking "0" + vconftool $GOPTION set -t bool db/setting/expiry_reminder "0" + vconftool $GOPTION set -t int db/setting/roaming_network "0" + +#resetSecurity + rm -rf /opt/data/setting/set_info + #vconftool $GOPTION set -t string db/setting/privacy_passwd "" + vconftool $GOPTION set -t int db/setting/screen_lock_type "5" -f + vconftool $GOPTION set -t string db/setting/3rd_lock_pkg_name "org.tizen.lockscreen" + + # NOT USED NOW. + #vconftool $GOPTION set -t bool db/setting/rcs "0" + +#resetMemory + vconftool $GOPTION set -t int db/setting/default_memory/wap "0" + vconftool $GOPTION set -t int db/setting/default_memory/bluetooth "0" + vconftool $GOPTION set -t int db/setting/default_memory/camera "0" + vconftool $GOPTION set -t int db/setting/default_memory/voice_recorder "0" + vconftool $GOPTION set -t int db/setting/default_memory/fm_radio "0" + vconftool $GOPTION set -t int db/setting/default_memory/all_share "0" + vconftool $GOPTION set -t int db/setting/default_memory/adobe_air "0" + vconftool $GOPTION set -t int db/setting/default_memory/dvb_h "0" + + # format - system server + #vconftool $GOPTION -i set -t int memory/mmc/format "0" + +#resetAbout + vconftool $GOPTION set -t string db/setting/device_name "Tizen" + vconftool $GOPTION set -t string db/setting/selected_num "" +#resetMenuWidgets + vconftool $GOPTION -i set -t int memory/setting/font_changed "0" + #vconftool $GOPTION -i set -t int memory/mobile_hotspot/skin_changed "0" + +#resetDevoptions + vconftool $GOPTION -i set -t int db/setting/devoption/bgprocess "0" + +#resetDisplay + vconftool $GOPTION set -t string db/setting/screenmode/selected_name "Dynamic" + +######################################################################## mkdir -p /opt/usr/apps mkdir -p /opt/share/applications mkdir -p /opt/share/packages -- cgit v1.2.3 From 0c153b8b790f12fca18f3a8c6db3a13b4d6c488f Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Fri, 17 May 2013 16:46:50 +0200 Subject: Add new JS Script for TIZEN WGT --- packaging/wrt_widgets.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index d7a2cca..0eea12d 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -12,6 +12,13 @@ Requires: wrt-plugins-tizen Requires: wrt-security Requires: aul-1-configPC Requires: dbus-configPC +Requires: nodejs +Requires: web-ui-fw +Requires: web-ui-fw-demo-tizen-winsets +Requires: web-ui-fw-theme-default +Requires: web-ui-fw-theme-tizen-black +Requires: web-ui-fw-theme-tizen-white +Requires: web-ui-fw-devel %description Description: Wrt_Widget DEMO -- cgit v1.2.3 From 075c297f565af168c07c19d42a45c1eaeba582b7 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Mon, 24 Jun 2013 11:01:39 +0200 Subject: Update dep Name --- packaging/wrt_widgets.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/wrt_widgets.spec b/packaging/wrt_widgets.spec index 0eea12d..5e79a19 100644 --- a/packaging/wrt_widgets.spec +++ b/packaging/wrt_widgets.spec @@ -10,7 +10,7 @@ Requires: wrt-commons Requires: wrt-installer Requires: wrt-plugins-tizen Requires: wrt-security -Requires: aul-1-configPC +Requires: daemon-launch-config-pc Requires: dbus-configPC Requires: nodejs Requires: web-ui-fw -- cgit v1.2.3 From 12cf9b787edb1ee950cf3bfb1b149bedbef9fdb1 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Tue, 25 Jun 2013 13:51:36 +0200 Subject: Enable the WA for icon creation --- install_widgets.sh | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/install_widgets.sh b/install_widgets.sh index fd4617a..cff8cf1 100755 --- a/install_widgets.sh +++ b/install_widgets.sh @@ -25,30 +25,30 @@ chmod -R a+rw /opt/dbspace/ wrt-launcher --list | awk 'NR>2{print $2, $5, $6}' | -#while read name packid appid -#do -# bin=$repo/$packid/bin/$appid -# for x in $repo/$packid/res/wgt/*[iI][cC][oO][nN]*; do -# if [[ -f $x ]]; then -# res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+') -# if [[ -n "$res" ]]; then -# diric=/usr/share/icons/hicolor/$res/apps -# [[ -d $diric ]] || mkdir -p $diric -# cp $x $diric/$name.png -# fi -# fi -# done -# desk=/usr/share/applications/$name.desktop -# cat << EOC > $desk -#[Desktop Entry] -#Type=Application -#Name=$name -#Exec=$bin -#Icon=$name -#Terminal=false -#Categories=WRT;Game -#EOC -#done +while read name packid appid +do + bin=$repo/$packid/bin/$appid + for x in $repo/$packid/res/wgt/*[iI][cC][oO][nN]*; do + if [[ -f $x ]]; then + res=$(file -b $x|cut -d , -f 2|tr -d ' '|egrep '[0-9]+x[0-9]+') + if [[ -n "$res" ]]; then + diric=/usr/share/icons/hicolor/$res/apps + [[ -d $diric ]] || mkdir -p $diric + cp $x $diric/$name.png + fi + fi + done + desk=/usr/share/applications/$name.desktop + cat << EOC > $desk +[Desktop Entry] +Type=Application +Name=$name +Exec=$bin +Icon=$name +Terminal=false +Categories=WRT;Game +EOC +done update-desktop-database xdg-icon-resource forceupdate -- cgit v1.2.3