-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·39 lines (33 loc) · 1.18 KB
/
Copy pathsetup.sh
File metadata and controls
executable file
·39 lines (33 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
export REPO_ROOT=$(dirname "$(realpath $0)")
pushd .
cd $REPO_ROOT
echo "Building common..."
pnpm build:common
if [[ $DW_WITHOUT_ELECTRON == 1 ]]; then
echo "Skipping electron dependencies"
else
if [ -x "$(command -v pacman)" ]; then
echo "Installing python-setuptools with pacman..."
sudo pacman -Sy python-setuptools
elif [ -x "$(command -v apt)" ]; then
echo "Updating APT package lists..."
sudo apt update -y
echo "Installing python3-setuptools with APT..."
sudo apt install python3-setuptools
elif [ -x "$(command -v dnf)" ]; then
echo "Installing python3-setuptools with dnf..."
sudo dnf install python3-setuptools
elif [ -x "$(command -v pip)" ]; then
echo "Could not find a comptaible distribution package manager. Try installing python setuptools with pip? (Hit y or n)"
read -r SETUPTOOLS_RESPONSE
if [[ $SETUPTOOLS_RESPONSE == "y" ]]; then
pip install setuptools
fi
else
echo "!! We couldn't install python-setuptools for you. Ensure it is installed if Electron Builder fails."
fi
echo "Installing electron dependencies"
pnpm --filter=app-desktop install_app_deps
fi
echo "Your development environment is ready."
popd