mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-03-09 15:40:18 +00:00
Debian: upgraded to AppImage based package
This commit is contained in:
parent
7dcf8a8bde
commit
2bf8dedf9d
10 changed files with 60 additions and 72 deletions
3
package/debian/.gitignore
vendored
Normal file
3
package/debian/.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
*.deb
|
||||
*.buildinfo
|
||||
*.changes
|
|
@ -5,21 +5,9 @@ all:
|
|||
|
||||
SHELL = /bin/bash
|
||||
install:
|
||||
# Create virtualenv
|
||||
install -d $(DESTDIR)$(prefix)/share/virtscreen
|
||||
source $(HOME)/miniconda/bin/activate && \
|
||||
conda create -y --copy --prefix $(DESTDIR)$(prefix)/share/virtscreen/env python=3.6
|
||||
# Install VirtScreen using pip
|
||||
source $(HOME)/miniconda/bin/activate && \
|
||||
source activate $(DESTDIR)$(prefix)/share/virtscreen/env && \
|
||||
pip install .
|
||||
# Fix hashbang and move executable
|
||||
sed -i "1s:.*:#!$(prefix)/share/virtscreen/env/bin/python3:" \
|
||||
$(DESTDIR)$(prefix)/share/virtscreen/env/bin/virtscreen
|
||||
install -D launch_env.sh \
|
||||
mkdir -p $(DESTDIR)$(prefix)/bin
|
||||
install -m 755 VirtScreen-x86_64.AppImage \
|
||||
$(DESTDIR)$(prefix)/bin/virtscreen
|
||||
# Delete unnecessary installed files done by setup.py
|
||||
rm -rf $(DESTDIR)$(prefix)/share/virtscreen/env/lib/python3.6/site-packages/usr
|
||||
# Copy desktop entry and icon
|
||||
install -m 644 -D virtscreen.desktop \
|
||||
$(DESTDIR)$(prefix)/share/applications/virtscreen.desktop
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
PKGVER=0.2.4
|
||||
# Required for debmake
|
||||
DEBEMAIL="k.bumsik@gmail.com"
|
||||
DEBFULLNAME="Bumsik Kim"
|
||||
export PKGVER DEBEMAIL DEBFULLNAME
|
46
package/debian/build.sh
Executable file
46
package/debian/build.sh
Executable file
|
@ -0,0 +1,46 @@
|
|||
#!/bin/bash
|
||||
|
||||
PKGVER=0.2.4
|
||||
# Required for debmake
|
||||
DEBEMAIL="k.bumsik@gmail.com"
|
||||
DEBFULLNAME="Bumsik Kim"
|
||||
export PKGVER DEBEMAIL DEBFULLNAME
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
ROOT=$SCRIPT_DIR/../..
|
||||
|
||||
# Generate necessary files for package building (generated by debmake)
|
||||
cd $ROOT/package/debian
|
||||
wget -q https://github.com/kbumsik/VirtScreen/archive/$PKGVER.tar.gz
|
||||
tar -xzmf $PKGVER.tar.gz
|
||||
mv VirtScreen-$PKGVER virtscreen-$PKGVER
|
||||
mv $PKGVER.tar.gz virtscreen-$PKGVER.tar.gz
|
||||
cp $ROOT/package/debian/Makefile \
|
||||
$ROOT/package/debian/virtscreen-$PKGVER/Makefile
|
||||
cd $ROOT/package/debian/virtscreen-$PKGVER
|
||||
debmake -b':sh'
|
||||
|
||||
# copy files to build
|
||||
# debmake files
|
||||
mkdir -p $ROOT/package/debian/build
|
||||
cp -R $ROOT/package/debian/virtscreen-$PKGVER/debian \
|
||||
$ROOT/package/debian/build/debian
|
||||
cp $ROOT/package/debian/Makefile \
|
||||
$ROOT/package/debian/build/
|
||||
cp $ROOT/package/debian/{control,README.Debian} \
|
||||
$ROOT/package/debian/build/debian/
|
||||
# binary and data files
|
||||
cp $ROOT/package/appimage/VirtScreen-x86_64.AppImage \
|
||||
$ROOT/package/debian/build/
|
||||
cp $ROOT/virtscreen.desktop \
|
||||
$ROOT/package/debian/build/
|
||||
cp -R $ROOT/data \
|
||||
$ROOT/package/debian/build/
|
||||
|
||||
# Build .deb package
|
||||
cd $ROOT/package/debian/build
|
||||
dpkg-buildpackage -b
|
||||
|
||||
# cleanup
|
||||
rm -rf $ROOT/package/debian/virtscreen-$PKGVER \
|
||||
$ROOT/package/debian/*.tar.gz
|
|
@ -1,6 +0,0 @@
|
|||
#!/bin/bash
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source $DIR/_common.sh
|
||||
|
||||
cp -f $DIR/control $DIR/build/virtscreen-$PKGVER/debian/
|
||||
cp -f $DIR/README.Debian $DIR/build/virtscreen-$PKGVER/debian/
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/bash
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source $DIR/_common.sh
|
||||
|
||||
mkdir -p package/debian/build
|
||||
cd package/debian/build
|
||||
# Download, rename, and copy files
|
||||
wget -q https://github.com/kbumsik/VirtScreen/archive/$PKGVER.tar.gz
|
||||
tar -xzmf $PKGVER.tar.gz
|
||||
mv VirtScreen-$PKGVER virtscreen-$PKGVER
|
||||
mv $PKGVER.tar.gz virtscreen-$PKGVER.tar.gz
|
||||
cd virtscreen-$PKGVER
|
||||
cp -f ../../Makefile Makefile
|
||||
# call debmake
|
||||
debmake -b':sh'
|
|
@ -1,7 +0,0 @@
|
|||
#!/bin/bash
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source $DIR/_common.sh
|
||||
|
||||
cd package/debian/build
|
||||
cd virtscreen-$PKGVER
|
||||
dpkg-buildpackage -b
|
Loading…
Add table
Add a link
Reference in a new issue