~renatofilho/address-book-app/no-network

« back to all changes in this revision

Viewing changes to address-book-app.wrapper

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2016-11-20 16:09:39 UTC
  • Revision ID: renato.filho@canonical.com-20161120160939-xgqk7piz6dgvjpcq
Uses shared library from 'ubuntu-app-platform' snap plug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
if [ "$SNAP_ARCH" = "amd64" ]; then
3
 
  ARCH="x86_64-linux-gnu"
4
 
elif [ "$SNAP_ARCH" = "armhf" ]; then
5
 
  ARCH="arm-linux-gnueabihf"
6
 
else
7
 
  ARCH="$SNAP_ARCH-linux-gnu"
8
 
fi
9
 
 
10
 
export QTCHOOSER_NO_GLOBAL_DIR=1
11
 
export QT_SELECT=snappy-qt5
12
 
 
13
 
# Qt Libs
14
 
export LD_LIBRARY_PATH=$SNAP/usr/lib/$ARCH/qt5/libs:$LD_LIBRARY_PATH
15
 
 
16
 
# Qt Modules
17
 
export QT_PLUGIN_PATH=$SNAP/usr/lib/$ARCH/qt5/plugins
18
 
export QML2_IMPORT_PATH=$QML2_IMPORT_PATH:$SNAP/usr/lib/$ARCH/qt5/qml
19
 
export QML2_IMPORT_PATH=$QML2_IMPORT_PATH:$SNAP/lib/$ARCH
20
 
 
21
 
# Necessary for the SDK to find the translations directory
22
 
export APP_DIR=$SNAP
23
 
 
24
 
cd $SNAP
25
 
exec $SNAP/usr/bin/address-book-app "$@"