mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-12-24 07:09:29 -05:00
47 lines
1.2 KiB
Bash
Executable File
47 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
source $SCRIPTDIR/_script_common
|
|
|
|
if [[ "$(uname)" != "Darwin" ]]; then
|
|
echo Not running MacOS
|
|
exit 1
|
|
fi
|
|
|
|
# run setup for veilid
|
|
$VEILIDDIR/dev-setup/setup_macos.sh
|
|
# run setup for veilid_flutter
|
|
$VEILIDDIR/veilid-flutter/setup_flutter.sh
|
|
|
|
# ensure unzip is installed
|
|
if command -v protoc &> /dev/null; then
|
|
echo '[X] protoc is available in the path'
|
|
else
|
|
echo 'protoc is not available in the path'
|
|
exit 1
|
|
fi
|
|
|
|
# Install protoc-gen-dart
|
|
dart pub global activate protoc_plugin
|
|
if command -v protoc-gen-dart &> /dev/null; then
|
|
echo '[X] protoc-gen-dart is available in the path'
|
|
else
|
|
echo 'protoc-gen-dart is not available in the path. Add "$HOME/.pub-cache/bin" to your path.'
|
|
exit 1
|
|
fi
|
|
|
|
# # ensure rsync is installed
|
|
# if command -v rsync &> /dev/null; then
|
|
# echo '[X] rsync is available in the path'
|
|
# else
|
|
# echo 'rsync is not available in the path'
|
|
# exit 1
|
|
# fi
|
|
|
|
# # ensure sed is installed
|
|
# if command -v sed &> /dev/null; then
|
|
# echo '[X] sed is available in the path'
|
|
# else
|
|
# echo 'sed is not available in the path'
|
|
# exit 1
|
|
# fi
|