-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall
More file actions
executable file
·31 lines (24 loc) · 1.02 KB
/
install
File metadata and controls
executable file
·31 lines (24 loc) · 1.02 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
#!/bin/sh
DISTRO="linux-x64"
# Uncomment this to install necessary C/dev libraries
# May need to change to your distro's package manager
# sudo apt install -y build-essential inotify-tools cmake
# Uncomment this if you face any BSON/MongoDB related errors
# May need to change to your distro's package manager
# sudo apt install -y libbson-dev libmongoc-dev
# If you need to install mprocs, you can use this
# npm i -g mprocs
if [ ! -d "./.lua" ]; then
echo "Installing localua"
curl https://loadk.com/localua.sh | bash -s .lua
fi
if [ ! -f "./tailwindcss" ]; then
echo "Installing tailwindcss cli"
curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/latest/download/tailwindcss-$DISTRO
chmod +x tailwindcss-$DISTRO
mv tailwindcss-$DISTRO tailwindcss
fi
echo "Installing inotify rock"
.lua/bin/luarocks install --tree=.lua --local inotify INOTIFY_INCDIR=/usr/include/x86_64-linux-gnu
echo "Installing rocks from rockspec"
.lua/bin/luarocks install --only-deps --tree=.lua --local ./lua-htmx-dev-1.rockspec