mirror of
https://github.com/status-im/status-react.git
synced 2025-01-09 10:42:53 +00:00
Jakub Sokołowski
883af7b57a
Also rename STATUSREACT_NIX_MAVEN_REPO to STATUS_NIX_MAVEN_REPO. Signed-off-by: Jakub Sokołowski <jakub@status.im>
26 lines
833 B
Bash
Executable File
26 lines
833 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
##############################################################################
|
|
##
|
|
## Gradle start up script for UN*X
|
|
##
|
|
##############################################################################
|
|
|
|
##
|
|
## The default gradle wrapper script was replaced by a call to Nix's gradle package.
|
|
## Please revert to this script any time that it is upgraded by React Native.
|
|
##
|
|
|
|
# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
|
|
if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
|
|
cd "$(dirname "$0")"
|
|
fi
|
|
|
|
# Map mavenLocal() to the Nix maven repo we set up in nix/mobile/android/maven-and-npm-deps/default.nix
|
|
if [ -n "${STATUS_NIX_MAVEN_REPO}" ]; then
|
|
repoOpts="-Dmaven.repo.local=${STATUS_NIX_MAVEN_REPO}"
|
|
else
|
|
repoOpts=''
|
|
fi
|
|
exec gradle $repoOpts "$@"
|