Changeset 7309


Ignore:
Timestamp:
May 25, 2018, 10:13:57 AM (17 months ago)
Author:
daduve
Message:

Create environment without proxy to Scratch Desktop Launcher

Location:
zero-lliurex-adobeair/trunk/EPI_FILES/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zero-lliurex-adobeair/trunk/EPI_FILES/fuentes/debian/changelog

    r7240 r7309  
     1zero-lliurex-adobeair (1.08) xenial; urgency=high
     2
     3  * Create environment without proxy to Scratch Desktop Launcher
     4
     5 -- Daniel Duran Vecino <daduve@gmail.com>  Fri, 25 May 2018 10:12:44 +0200
     6
    17zero-lliurex-adobeair (1.07) xenial; urgency=medium
    28
  • zero-lliurex-adobeair/trunk/EPI_FILES/fuentes/zero-lliurex-adobeair.install-files/usr/share/zero-lliurex-adobeair/scratch2_script

    r7306 r7309  
    22
    33ACTION="$1"
     4PKG="$2"
    45APP_PATH="/var/cache/epi-downloads/"
    56PACKAGE_NAME="edu.media.mit.scratch2editor"
     
    910ICON_FILE="/opt/AdobeAirApp/Scratch 2/share/META-INF/AIR/edu.media.mit.scratch2editor.desktop"
    1011MATE_ICON_FILE="/usr/share/mate/applications/"
     12DESKTOP="edu.media.mit.scratch2editor.desktop"
    1113
    1214
     
    2426
    2527                                TEST=$( dpkg-query -s $PACKAGE_NAME 2> /dev/null| grep Status | cut -d " " -f 4 )
    26                                 if [ "$TEST" = 'installed' ]; then
     28                                if [ "$TEST" == 'installed' ]; then
    2729                                        echo "0"
    2830                                else
     
    8688sed -i "/\[es\]/d" "$ICON_FILE"
    8789sed -i "/qcv_ES/d" "$ICON_FILE"
     90sed -i "/Exec/d" "$ICON_FILE"
     91if [ -f /usr/share/icons/Vibrancy-Colors/apps/scalable/scratch.svg ]; then
     92        sed -i "/Icon=/d" "$ICON_FILE"
     93        echo "Icon=/usr/share/icons/Vibrancy-Colors/apps/scalable/scratch.svg" >> "$ICON_FILE"
     94fi
    8895#Añadido
    89 echo "Name[ca_ES@valencia]=Scratch 2 Editor" >> "$ICON_FILE"
    90 echo "Comment[ca_ES@valencia]=Sistema de programació visual per a l'educació" >> "$ICON_FILE"
    91 echo "Name[ca_ES.UTF-8@valencia]=Scratch 2 Editor" >> "$ICON_FILE"
    92 echo "Comment[ca_ES.UTF-8@valencia]=Sistema de programació visual per a l'educació" >> "$ICON_FILE"
    93 echo "Name[es]=Scratch 2 Editor" >> "$ICON_FILE"
    94 echo "Comment[es]=Sistema de programación visual para la educación" >> "$ICON_FILE"
    95 echo "Name[es.UTF-8]=Scratch 2 Editor" >> "$ICON_FILE"
    96 echo "Comment[es.UTF-8]=Sistema de programación visual para la educación" >> "$ICON_FILE"
    97 echo "Name[qcv_ES]=Scratch 2 Editor" >> "$ICON_FILE"
    98 echo "Comment[qcv_ES]=Sistema de programació visual per a l'educació" >> "$ICON_FILE"
     96echo "Exec=env http_proxy=\"\" '/opt/AdobeAirApp'/'Scratch 2'/bin/'Scratch 2'" >> "$ICON_FILE"
     97echo "Name[ca_ES@valencia]=Scratch 2 Editor local" >> "$ICON_FILE"
     98echo "Comment[ca_ES@valencia]=Editor local de programació visual per a l'educació" >> "$ICON_FILE"
     99echo "Name[ca_ES.UTF-8@valencia]=Scratch 2 Editor local" >> "$ICON_FILE"
     100echo "Comment[ca_ES.UTF-8@valencia]=Editor local de programació visual per a l'educació" >> "$ICON_FILE"
     101echo "Name[es]=Scratch 2 Editor local" >> "$ICON_FILE"
     102echo "Comment[es]=Editor local de programación visual para la educación" >> "$ICON_FILE"
     103echo "Name[es.UTF-8]=Scratch 2 Editor local" >> "$ICON_FILE"
     104echo "Comment[es.UTF-8]=Editor local de programación visual para la educación" >> "$ICON_FILE"
     105echo "Name[qcv_ES]=Scratch 2 Editor local" >> "$ICON_FILE"
     106echo "Comment[qcv_ES]=Editor local de programació visual per a l'educació" >> "$ICON_FILE"
    99107
    100108echo "Copy new desktop....."
     
    107115                echo "Removing files..."
    108116
    109                 apt-get remove $PACKAGE_NAME
     117                apt-get remove -y $PACKAGE_NAME
    110118                if [ "$?" = "0" ]; then
    111119                        echo "$PACKAGE_NAME has been remove from your system."
     120                        ls $MATE_ICON_FILE$DESKTOP && rm $MATE_ICON_FILE$DESKTOP
     121                        exit 0
    112122                else
    113123                        echo "`printf "\e[32mError to remove $PACKAGE_NAME from your system, retry again or contact with Lliurex Team at http://mestreacasa.gva.es/web/lliurex/forums"``echo -e "\033[0m"`"
     
    118128               
    119129esac
     130echo "$PACKAGE_NAME has been installed in your system."
    120131exit 0 
Note: See TracChangeset for help on using the changeset viewer.