Depend on nw.js externally for debian package

master
Skylar Ittner 5 years ago
parent 75689556dc
commit e2b3c7046e

@ -1,8 +1,9 @@
Package: notepost
Version: 1.2.0
Version: 1.2.0-1
Maintainer: Netsyms Technologies <opensource@netsyms.com>
Section: web
Homepage: https://netsyms.com/apps/notepost
Priority: optional
Depends: nw.js-normal | nw.js
Description: Desktop client for the NotePost notetaking webapp.
Architecture: i386
Architecture: all

@ -1,3 +1,2 @@
#!/bin/sh
cd /usr/lib/notepost
./notepost
nwjs /usr/share/notepost

@ -3,7 +3,7 @@ Name=NotePost
Version=1.0
Exec=/usr/bin/notepost
Comment=Launch the NotePost client
Icon=/usr/lib/notepost/logo.svg
Icon=/usr/share/notepost/logo.svg
Type=Application
Terminal=false
StartupNotify=true

@ -1,11 +1,10 @@
#!/bin/bash
# $1 is the binary location, $2 is the arch, $3 is the svg icon
mkdir out
sed -i '/Architecture:/d' debian/DEBIAN/control
echo "Architecture: $2" >> debian/DEBIAN/control
rm -rf debian/usr/lib/notepost
mv "$1com.netsyms.NotePostApp" "$1notepost"
mkdir -p debian/usr/lib
rsync -rv "$1" debian/usr/lib/notepost
cp "$3" debian/usr/lib/notepost/logo.svg
dpkg-deb -b debian "out/notepost_$2.deb"
# $1 is the app source location, $2 is the svg icon
mkdir -p out
rm -rf debian/usr/share/notepost
mkdir -p debian/usr/share/notepost
mkdir -p debian/usr/share/doc/notepost
rsync -rv "$1" debian/usr/share/notepost
cp debian/DEBIAN/copyright debian/usr/share/doc/notepost/
cp "$2" debian/usr/share/notepost/logo.svg
dpkg-deb -b debian "out/notepost_1.2.0-1_all.deb"

Loading…
Cancel
Save