Update romm-install.sh
This commit is contained in:
parent
1153b1f635
commit
1d9b65c0d7
@ -22,8 +22,6 @@ $STD apt-get install -y \
|
||||
gcc \
|
||||
g++ \
|
||||
make \
|
||||
git \
|
||||
curl \
|
||||
libssl-dev \
|
||||
libffi-dev \
|
||||
libmagic-dev \
|
||||
@ -44,7 +42,6 @@ $STD apt-get install -y \
|
||||
redis-tools \
|
||||
p7zip-full \
|
||||
tzdata \
|
||||
jq \
|
||||
nginx
|
||||
msg_ok "Installed dependencies"
|
||||
|
||||
@ -123,11 +120,10 @@ CONFIGEOF
|
||||
chmod 644 /var/lib/romm/config/config.yml
|
||||
msg_ok "Created configuration file"
|
||||
|
||||
fetch_and_deploy_gh_release "RetroAchievements" "RetroAchievements/RALibretro" "prebuild" "latest" "/opt/RALibretro" "RAHasher-x64-Linux.zip"
|
||||
|
||||
msg_info "Building RAHasher (RetroAchievements)"
|
||||
RAHASHER_VERSION="1.8.1"
|
||||
cd /tmp
|
||||
git clone --recursive --branch "$RAHASHER_VERSION" --depth 1 https://github.com/RetroAchievements/RALibretro.git
|
||||
cd RALibretro
|
||||
cd /opt/RALibretro
|
||||
sed -i '22a #include <ctime>' ./src/Util.h
|
||||
sed -i '6a #include <unistd.h>' \
|
||||
./src/libchdr/deps/zlib-1.3.1/gzlib.c \
|
||||
@ -180,27 +176,22 @@ EOF
|
||||
chmod 600 /opt/romm/.env
|
||||
msg_ok "Created environment file"
|
||||
|
||||
msg_info "Installing backend"
|
||||
msg_info "Setup Romm backend"
|
||||
cd /opt/romm
|
||||
|
||||
# Limit concurrent downloads to avoid DNS resolution failures in LXC containers
|
||||
# See: https://github.com/astral-sh/uv/issues/12054
|
||||
export UV_CONCURRENT_DOWNLOADS=1
|
||||
$STD uv sync --all-extras
|
||||
cd /opt/romm/backend
|
||||
$STD uv run alembic upgrade head
|
||||
msg_ok "Installed backend"
|
||||
|
||||
msg_info "Installing frontend"
|
||||
msg_info "Setup Romm frontend"
|
||||
cd /opt/romm/frontend
|
||||
$STD npm install
|
||||
$STD npm run build
|
||||
|
||||
mkdir -p /opt/romm/frontend/dist/assets/romm
|
||||
ln -sfn /var/lib/romm/resources /opt/romm/frontend/dist/assets/romm/resources
|
||||
ln -sfn /var/lib/romm/assets /opt/romm/frontend/dist/assets/romm/assets
|
||||
msg_ok "Installed frontend"
|
||||
|
||||
msg_ok "Setup Romm frontend"
|
||||
msg_info "Configuring nginx"
|
||||
cat >/etc/nginx/sites-available/romm <<'EOF'
|
||||
upstream romm_backend {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user