Package Details: stf 3.4.1-3

Git Clone URL: (read-only, click to copy)
Package Base: stf
Description: Web application for controlling and managing Android devices
Upstream URL:
Licenses: Apache
Submitter: flacks
Maintainer: None
Last Packager: flacks
Votes: 1
Popularity: 0.000000
First Submitted: 2018-04-21 14:30
Last Updated: 2019-12-23 19:46

Latest Comments

flacks commented on 2020-01-24 01:57

I use nvm, but I don't see why n wouldn't work. You have to build and run STF with Node Carbon (using either nvm use lts/carbon, an n analogue, or the system package), and can get by the hard requirement for Node Carbon in the PKGBUILD using makepkg -d after you've installed all the other dependencies with makepkg -s. This is the script I use with nvm to run/restart/kill STF using Node Carbon:


pid=$(pgrep -f 'node /usr/bin/stf')
db="rethinkdb --http-port $db_port"

main() {
  case $1 in
      [ $pid ] >/dev/null || \
        echo STF not running

      pkill -f 'node /usr/bin/stf'
      pkill -f "$db"

      main -k && main ;;
      [ $pid ] >/dev/null && {
        echo STF already running
        exit 1

      pgrep -f "$db" >/dev/null || {
        [ ! -d $dir ] && mkdir $dir
        cd $dir || exit 1
        $db >/dev/null 2>&1 &

      # shellcheck disable=SC1091
      . /usr/share/nvm/
      nvm use lts/carbon >/dev/null
      /usr/bin/stf local -R --no-cleanup >/dev/null 2>&1 &

      echo 'Valid options are kill [-k], restart [-r], none [local config], help [-h] (use [--help] for STF help), and custom STF arguments'
      exit 1
    *) /usr/bin/stf "$@" ;;

main "$@"

There is still a hard requirement on a crucial STF dependency that requires Node Carbon. Otherwise, I would patch this to work with upstream Node. Maybe in a later version.

tofiffe commented on 2020-01-16 08:16

Is there a way to install this when using "n" to manage nodejs versions?