mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-03-09 15:40:18 +00:00
\#11: Initial AppImage packaging system
This commit is contained in:
parent
aba7c949b5
commit
a40ea8ec29
6 changed files with 90 additions and 19 deletions
15
package/appimage/AppRun
Executable file
15
package/appimage/AppRun
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
# This script is only for isolated miniconda environment
|
||||
# Used in AppImage package
|
||||
SCRIPTDIR=$(dirname $0)
|
||||
ENV=$SCRIPTDIR/usr/share/virtscreen/env
|
||||
|
||||
echo $SCRIPTDIR
|
||||
export PYTHONPATH=$ENV/lib/python3.6
|
||||
export LD_LIBRARY_PATH=$ENV/lib
|
||||
export QT_PLUGIN_PATH=$ENV/lib/python3.6/site-packages/PyQt5/Qt/plugins
|
||||
export QML2_IMPORT_PATH=$ENV/lib/python3.6/site-packages/PyQt5/Qt/qml
|
||||
# export QT_QPA_FONTDIR=/usr/share/fonts
|
||||
# export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb
|
||||
|
||||
$ENV/bin/python3 $ENV/bin/virtscreen
|
32
package/appimage/build.sh
Executable file
32
package/appimage/build.sh
Executable file
|
@ -0,0 +1,32 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Directory
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
ROOT=$DIR/../..
|
||||
|
||||
cd $ROOT/package/appimage
|
||||
mkdir virtscreen.AppDir
|
||||
cd virtscreen.AppDir
|
||||
# Create virtualenv
|
||||
install -d usr/share/virtscreen
|
||||
source $HOME/miniconda/bin/activate && \
|
||||
conda create -y --copy --prefix usr/share/virtscreen/env python=3.6
|
||||
# Install VirtScreen using pip
|
||||
source $HOME/miniconda/bin/activate && \
|
||||
source activate usr/share/virtscreen/env && \
|
||||
pip install $ROOT
|
||||
# Delete unnecessary installed files done by setup.py
|
||||
rm -rf usr/share/virtscreen/env/lib/python3.6/site-packages/usr
|
||||
# Copy desktop entry, icon, and AppRun
|
||||
install -m 644 -D $ROOT/virtscreen.desktop \
|
||||
usr/share/applications/virtscreen.desktop
|
||||
install -m 644 -D $ROOT/virtscreen.desktop \
|
||||
.
|
||||
install -m 644 -D $ROOT/data/virtscreen.png \
|
||||
usr/share/pixmaps/virtscreen.png
|
||||
install -m 644 -D $ROOT/data/virtscreen.png \
|
||||
.
|
||||
install -m 755 -D $ROOT/package/appimage/AppRun \
|
||||
.
|
||||
cd ..
|
||||
appimagetool virtscreen.AppDir
|
Loading…
Add table
Add a link
Reference in a new issue