-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathget-dependencies.sh
More file actions
34 lines (25 loc) · 973 Bytes
/
Copy pathget-dependencies.sh
File metadata and controls
34 lines (25 loc) · 973 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
28
29
30
31
32
33
34
#!/bin/sh
set -eu
ARCH=$(uname -m)
echo "Installing package dependencies..."
echo "---------------------------------------------------------------"
# pacman -Syu --noconfirm PACKAGESHERE
echo "Installing debloated packages..."
echo "---------------------------------------------------------------"
get-debloated-pkgs --add-common --prefer-nano ! mesa ! vulkan
# Comment this out if you need an AUR package
#make-aur-package PACKAGENAME
BINARY_SOURCE="https://dl.google.com/android/repository/platform-tools-latest-linux.zip"
mkdir -p ./AppDir/bin ./AppDir/etc/udev/rules.d
wget --retry-connrefused --tries=30 "$BINARY_SOURCE" -O ./bin.zip
unzip ./bin.zip
rm -f ./bin.zip
mv -v ./platform-tools/* ./AppDir//bin
awk -F"=" '/Revision/{print $2; exit}' ./AppDir/bin/source.properties > ~/version
# if you also have to make nightly releases check for DEVEL_RELEASE = 1
#
# if [ "${DEVEL_RELEASE-}" = 1 ]; then
# nightly build steps
# else
# regular build steps
# fi