-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcryptoescudo.yml
39 lines (38 loc) · 1.22 KB
/
cryptoescudo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
app: cryptoescudo
binpatch: true
ingredients:
script:
- VERSION="1.3.0.0"
- wget http://cryptoescudo.pt/download/01030000/linux/cryptoescudo-$VERSION-linux.zip
- ls cryptoescudo-*-linux.zip | cut -d "-" -f 2 | sed -e 's|.zip||g' > VERSION
- unzip cryptoescudo-*-linux.zip
script:
- cp -r ../cryptoescudo-*-linux/64/* ./usr/bin/
- chmod a+x ./usr/bin/cryptoescudo-qt
- chmod a+x ./usr/bin/cryptoescudod
- mkdir -p ./usr/share/applications/
- cat > cryptoescudo.desktop <<EOF
- [Desktop Entry]
- Type=Application
- Name=CryptoEscudo
- Icon=cryptoescudo
- Exec=cryptoescudo-qt -min
- Terminal=false
- Hidden=false
- Categories=Network;
- StartupNotify=true
- MimeType=x-scheme-handler/cryptoescudo;
- StartupWMClass=cryptoescudo-qt
- EOF
- wget https://github.com/cmatomic/cryptoescudo-AppImage/raw/master/img/cryptoescudo.png -O ./usr/share/icons/hicolor/256x256/apps/cryptoescudo.png
- cp ./usr/share/icons/hicolor/256x256/apps/cryptoescudo.png .
- cp cryptoescudo.desktop ./usr/share/applications/
script:
- cat > AppRun <<\EOF
- #!/bin/bash
- set -e
- APPDIR="$(dirname "$(readlink -e "$0")")"
- exec "${APPDIR}/usr/bin/cryptoescudo-qt" "$@"
- EOF
- chmod a+x AppRun