-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
27 lines (20 loc) · 915 Bytes
/
get-dependencies.sh
File metadata and controls
27 lines (20 loc) · 915 Bytes
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
#!/bin/sh
set -eu
ARCH=$(uname -m)
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
pacman -Syu --noconfirm jre-openjdk openssl
echo "Installing debloated packages..."
echo "---------------------------------------------------------------"
get-debloated-pkgs --add-common --prefer-nano
# Comment this out if you need an AUR package
#make-aur-package PACKAGENAME
# If the application needs to be manually built that has to be done down here
VERSION=1.0
echo "$VERSION" > ~/version
wget https://downloadirpf.receita.fazenda.gov.br/irpf/2026/gcap/GCAP2026v${VERSION}.zip
bsdtar -xvf GCAP2026v${VERSION}.zip --strip-components=1
rm -f *.zip
mkdir -p ./AppDir/bin
sed -i 's|java -Xmx2048M -jar GCAP.jar|java -Xmx2048M -jar "$APPDIR/bin/GCAP.jar" "$@"|g' exec.sh
mv -v exec.sh lib GCAP.jar GCAP.acb offline.png online.png pgd-updater.jar ./AppDir/bin