-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #1, Added and tested the integration of the generated .deb file …
…with Ubuntu and Debian, WiP
- Loading branch information
1 parent
65d0113
commit 4e61e53
Showing
3 changed files
with
40 additions
and
20 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|