Skip to content

Commit 1eb3fa2

Browse files
committed
✨feat(termux): The actual termux installer.
1 parent 6dbc24e commit 1eb3fa2

3 files changed

Lines changed: 2 additions & 37 deletions

File tree

installer.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ if [ -z "$answer_lowercase" ] || [ "$answer_lowercase" = "y" ] || [ "$answer_low
136136
#############################################################################
137137
elif [ "$IS_MACOS" = "true" ]; then
138138
echo "MacOS detected."
139-
sudo brew install "fd" "git-delta" "rustup-init" "yarn" "mingw-w64" "dotnet" "mono" "openjdk" "dart-sdk" "kotlin" "elixir" "node" "typescript" "make" "rust" "go" "nasm" "r" "ruby" "perl" "lua" "swift" "pyinstaller" "doxygen"; sudo brew install --cask "dotnet-sdk" "flutter"; pip install "pynvim" "pytest" "Nuitka"; yarn add global "jest" "jsdoc" "typedoc"; cargo install "cargo-nextest" "grcov"; go install "golang.org/x/tools/cmd/godoc@latest"
139+
sudo brew install "ranger" "fd" "git-delta" "rustup-init" "yarn" "mingw-w64" "dotnet" "mono" "openjdk" "dart-sdk" "kotlin" "elixir" "node" "typescript" "make" "rust" "go" "nasm" "r" "ruby" "perl" "lua" "swift" "pyinstaller" "doxygen"; sudo brew install --cask "dotnet-sdk" "flutter"; pip install "pynvim" "pytest" "Nuitka"; yarn add global "jest" "jsdoc" "typedoc"; cargo install "cargo-nextest" "grcov"; go install "golang.org/x/tools/cmd/godoc@latest"
140140

141141

142142

@@ -145,7 +145,7 @@ if [ -z "$answer_lowercase" ] || [ "$answer_lowercase" = "y" ] || [ "$answer_low
145145
#############################################################################
146146
elif [ "$IS_TERMUX" = "true" ]; then
147147
echo "Termux detected."
148-
pkg install -y clang ranger binutils fd yarn rust swift && pip install pynvim pytest nuitka pyinstaller && yarn add global jest typedoc jdoc && pkg install -y dotnet-sdk mono openjdk-17 kotlin rust golang nasm python ruby perl lua53 dart nodejs elixir make doxygen && npm install -g typescript && go install golang.org/x/tools/cmd/godoc@latest && cargo install git-delta grcov
148+
pkg update; pkg install "tur-repo"; pkg install "ranger" "python" "fd" "git-delta" "yarn" "mono" "openjdk-17" "dart" "kotlin" "elixir" "nodejs" "make" "rust" "golang" "nasm" "python" "ruby" "perl" "liblua52" "swift" "binutils-libs" "gcc-default" "doxygen"; pip install "pynvim" "pytest" "Nuitka"; yarn add global "jest" "typescript" "jsdoc" "typedoc"; cargo install "cargo-nextest" "git-delta" "grcov"; go install "golang.org/x/tools/cmd/godoc@latest"
149149

150150

151151

tests/test-termux-dependencies.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,10 @@ check_tur_dependencies "${dependencies[@]}" || exit 1
8686
# python
8787
printf '\n%s\n' "- Python packages -"
8888
dependencies=(
89-
"pynvim"
90-
"pytest"
9189
"Nuitka"
9290
)
9391
check_python_dependencies "${dependencies[@]}" || exit 1
9492

95-
# aur
96-
printf '\n%s\n' "- AUR packages -"
97-
dependencies=(
98-
"pyinstaller"
99-
"swift-language"
100-
)
101-
check_aur_dependencies "${dependencies[@]}" || exit 1
102-
printf '\n\n\n\n'
103-
10493
printf '\n%s\n' "- Python packages -"
10594
dependencies=(
10695
"pyinstaller"

tests/test-utils.sh

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -292,30 +292,6 @@ check_fedora_dependencies() {
292292
return "$error_flag"
293293
}
294294

295-
#######################################
296-
# Check if a list of packages exist
297-
# in NixOS
298-
#######################################
299-
# BUG: The search engine return similar terms.
300-
# For example if we look for python and it doesn't exist but python-lol does,
301-
# it will return 200
302-
check_nixos_dependencies() {
303-
# Iterate over each package name in the array
304-
for package_name in "$@"; do
305-
local url="https://search.nixos.org/packages?query=$package_name/"
306-
307-
# Check if the package exists in NixOS
308-
if [ "$(curl -s -o /dev/null -w "%{http_code}" "$url")" -eq 200 ]; then
309-
echo "$package_name"
310-
else
311-
echo "$package_name → ERROR: It doesn't exist in NixOS"
312-
error_flag=1
313-
fi
314-
done
315-
316-
return "$error_flag"
317-
}
318-
319295
#######################################
320296
# Check if a list of packages exist
321297
# in Snapcraft

0 commit comments

Comments
 (0)