Skip to content

知了 Cicada · 任何会议和直播的实时字幕、同声传译、AI 会议纪要,Mac、Windows、Linux、Android 免费开源。Live subtitles, interpreting and meeting notes for any call or stream, on Mac, Windows, Linux and Android.

542 B
Raw Blame
#!/bin/bash
set -euo pipefail
D="$HOME/.cicada-android"
export JAVA_HOME="$D/jdk/Contents/Home" ANDROID_HOME="$D/sdk"
cd "$(dirname "$0")/.."
props=()
if [ -n "${https_proxy:-${HTTPS_PROXY:-}}" ]; then
  p="${https_proxy:-$HTTPS_PROXY}"; p="${p#*://}"; p="${p%/}"; host="${p%:*}"; port="${p##*:}"
  props=(-Dhttps.proxyHost="$host" -Dhttps.proxyPort="$port" -Dhttp.proxyHost="$host" -Dhttp.proxyPort="$port"
         "-Dhttp.nonProxyHosts=localhost|127.0.0.1")
fi
exec "$D/gradle/bin/gradle" --console=plain -q ${props[@]+"${props[@]}"} "$@"