-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa17b2e
commit c9e28c1
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
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,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 |
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,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" |