mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-06-25 23:00:43 -04:00
refactor setup
This commit is contained in:
parent
bbde85a134
commit
e8046e9a89
9 changed files with 96 additions and 42 deletions
41
dev-setup/setup_linux.sh
Executable file
41
dev-setup/setup_linux.sh
Executable file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/bash
|
||||
SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||
source $SCRIPTDIR/_script_common
|
||||
|
||||
if [[ "$(uname)" != "Linux" ]]; then
|
||||
echo Not running Linux
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$(lsb_release -d | grep -qEi 'debian|buntu|mint')" ]; then
|
||||
echo Not a supported Linux
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
# run setup for veilid
|
||||
$VEILIDDIR/dev-setup/setup_linux.sh
|
||||
|
||||
# Install protoc
|
||||
$SCRIPTDIR/install_protoc_linux.sh
|
||||
|
||||
# run setup for veilid_flutter
|
||||
echo 'If prompted to install Flutter, choose an installation bundle (storage.googleapis.com), not snap.'
|
||||
$VEILIDDIR/veilid-flutter/setup_flutter.sh
|
||||
|
||||
# ensure protoc 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
|
Loading…
Add table
Add a link
Reference in a new issue