diff --git a/ct/pf2etools.sh b/ct/pf2etools.sh index 43d693c8..8ad7dce4 100644 --- a/ct/pf2etools.sh +++ b/ct/pf2etools.sh @@ -50,6 +50,9 @@ function update_script() { unzip -q "${RELEASE}.zip" rm -rf "/opt/${APP}" mv "${APP}-${RELEASE:1}" "/opt/${APP}" + cd /opt/Pf2eTools + npm i + npm run build echo "${RELEASE}" >"/opt/${APP}_version.txt" msg_ok "Updated ${APP}" diff --git a/install/pf2etools-install.sh b/install/pf2etools-install.sh index c7b8cfae..3d888740 100644 --- a/install/pf2etools-install.sh +++ b/install/pf2etools-install.sh @@ -20,7 +20,8 @@ $STD apt-get install -y \ mc \ sudo \ apache2 \ - git + git \ + npm msg_ok "Installed Dependencies" # Setup App @@ -29,6 +30,9 @@ RELEASE=$(curl -s https://api.github.com/repos/Pf2eToolsOrg/Pf2eTools/releases/l wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip" unzip -q "${RELEASE}.zip" mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools +cd /opt/Pf2eTools +npm i +npm run build echo "${RELEASE}" >/opt/Pf2eTools_version.txt msg_ok "Set up Pf2eTools"