Merge pull request 'add deb build script [CI SKIP]' (#21) from wowario/wowlet:deb into master

Reviewed-on: https://git.wownero.com/wowlet/wowlet/pulls/21
This commit is contained in:
wowario 2021-03-24 11:21:28 +00:00
commit f110cad24b
2 changed files with 35 additions and 0 deletions

23
contrib/build-deb.sh Executable file
View file

@ -0,0 +1,23 @@
#!/bin/bash
set -e
# Make directories
DEBDIR="$PWD/wowlet.DebDir"
mkdir -p "$DEBDIR"
mkdir -p "$DEBDIR/DEBIAN/"
mkdir -p "$DEBDIR/usr/share/applications/"
mkdir -p "$DEBDIR/usr/share/pixmaps/"
mkdir -p "$DEBDIR/usr/bin"
# Copy over assets
cp "$PWD/src/assets/wowlet.desktop" "$DEBDIR/usr/share/applications/wowlet.desktop"
cp "$PWD/src/assets/images/wowlet.png" "$DEBDIR/usr/share/pixmaps/wowlet.png"
cp "$PWD/build/bin/wowlet" "$DEBDIR/usr/bin/wowlet"
cp "$PWD/src/assets/control" "$DEBDIR/DEBIAN/control"
# Build deb package
dpkg-deb --build $DEBDIR
mv wowlet.DebDir.deb wowlet.deb

12
src/assets/control Normal file
View file

@ -0,0 +1,12 @@
Package: wowlet
Version: 0.1.0.0
Section: net
Priority: optional
Architecture: amd64
Essential: no
Installed-Size: 76800
Maintainer: wowario <wowario@protonmail.com>
Description: a free Wownero desktop wallet
Tag: office::finance
Homepage: https://git.wownero.com/wowlet/wowlet
Depends: libxcb-icccm4, libxcb-image0, libxcb-keysyms1, libxcb-render-util0, libxcb-xkb1, libxkbcommon-x11-0