Skip to content

Commit

Permalink
Refs #1, Added and tested the integration of the generated .deb file …
Browse files Browse the repository at this point in the history
…with Ubuntu and Debian, WiP
  • Loading branch information
stdevPavelmc committed Feb 8, 2019
1 parent 65d0113 commit 4e61e53
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 20 deletions.
Binary file added deb/Skycoin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions deb/skyflash.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Encoding=UTF-8
Exec=/usr/local/bin/skyflash
Icon=/usr/local/share/skybian/Skycoin.png
Type=Application
Terminal=false
Comment=Skycoin skyminner flashing & configuring tool
Name=Skyflash
GenericName=Skyflash
StartupNotify=true
Categories=Utility
49 changes: 29 additions & 20 deletions makedeb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,37 @@


# First step is to create the standalone executable
# rm -rdf dist
# rm -rdf build
# rm -rdf __cache__
# pyinstaller --add-data "skyflash.qml:skyflash.qml" \
# --clean \
# -F \
# skyflash.py
rm -rdf dist
rm -rdf build
rm -rdf __cache__
pyinstaller --add-data "skyflash.qml:skyflash.qml" \
--clean \
-F \
skyflash.py
# exec is in ./dist/skyflash

# some variables
VER=0.0.3
PKG=skyflash

# Create the deb folder structure locally
mkdir -p skyflash/usr/local/bin
mkdir -p skyflash/DEBIAN
cp dist/skyflash skyflash/usr/local/bin/
cp skyflash.qml skyflash/usr/local/bin/
cp skyflash-cli skyflash/usr/local/bin/

size=`du -s skyflash/usr/local/bin | awk '{print $1}'`

cat << EOF > skyflash/DEBIAN/control
Package: skyflash
Version: 0.0.3
Maintainer: [email protected]
mkdir -p $PKG/usr/local/bin
mkdir -p $PKG/usr/share/applications/
mkdir -p $PKG/usr/local/share/skybian/
mkdir -p $PKG/DEBIAN
cp dist/skyflash $PKG/usr/local/bin/
cp skyflash.qml $PKG/usr/local/bin/
cp skyflash-cli $PKG/usr/local/bin/
cp deb/skyflash.desktop $PKG/usr/share/applications/
cp deb/Skycoin.png $PKG/usr/local/share/skybian/

# dynamic values & other tricks
size=`du -s $PKG/usr/local/bin | awk '{print $1}'`

cat << EOF > $PKG/DEBIAN/control
Package: $PKG
Version: $VER
Maintainer: Pavel Milanes <[email protected]>
Architecture: amd64
Section: main
Priority: optional
Expand All @@ -38,5 +47,5 @@ Description: A set of CLI & GUI tools to create your custom Skyminer OS images
EOF

# build the final deb package
dpkg-deb --build --root-owner-group skyflash skyflash_0.0.3_amd64.deb
dpkg-deb --build --root-owner-group $PKG "$PKG"_"$VER"_amd64.deb

0 comments on commit 4e61e53

Please sign in to comment.