Skip to content

Commit

Permalink
package linux deb
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewWertman committed Feb 23, 2024
1 parent fa17b2e commit c9e28c1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ipr.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=BitCap IPReporter
Comment=Internal BitCap IP reporter tool
Path=/opt/ipr
Exec=/opt/ipr/ipr
Icon=BitCapLngLogo_IPR_Full_BLK-02x256.png
21 changes: 21 additions & 0 deletions package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
## build ipr linux package with fpm

PNAME="bitcap-ipreporter"

# create dirs
[ -e package] && rm -r package
mkdir -p package/opt
mkdir -p package/usr/share/applications
mkdir -p package/usr/share/icons/hicolor/256x256/apps

cp -r dist/ipr package/opt/
cp src/resources/icons/app/BitCapLngLogo_IPR_Full_BLK-02x256.png package/usr/share/icons/hicolor/256x256/apps/
cp ipr.desktop package/usr/share/applications

find package/opt/ipr -type f -exec chmod 644 -- {} +
find package/opt/ipr -type d -exec chmod 755 -- {} +
find package/usr/share -type f -exec chmod 644 -- {} +
chmod +x package/opt/ipr/ipr

fpm -C package -s dir -t deb -n "$PNAME" -v "$1" -p "$PNAME-$1.deb"

0 comments on commit c9e28c1

Please sign in to comment.