8e8f501279
* Use custom init script instead of postinstall * Revert changes to start scripts in src\electron * Add global data to content manager * Add migration for public overrides and user.css location update * Update npm publish workflow to use 'omit=dev' flag in npm ci commands * Rename user.css readme file * Fix indentation in userCssMiddleware function * Add directory creation for content target * Restore template compile location * Move stylesheet up in index.json * Use path.resolve for user.css file path in userCssMiddleware * Correct capitalization in "Not Found" error page title and heading * Remove init run from startup scripts * Simplify user CSS file path resolution * Update userCssMiddleware comment
17 lines
482 B
Bash
Executable File
17 lines
482 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Make sure pwd is the directory of the script
|
|
cd "$(dirname "$0")"
|
|
|
|
if ! command -v npm &> /dev/null
|
|
then
|
|
echo -e "\033[0;31mnpm could not be found in PATH. If the startup fails, please install Node.js from https://nodejs.org/\033[0m"
|
|
fi
|
|
|
|
echo "Installing Node Modules..."
|
|
export NODE_ENV=production
|
|
npm install --no-save --no-audit --no-fund --loglevel=error --no-progress --omit=dev --ignore-scripts
|
|
|
|
echo "Entering SillyTavern..."
|
|
node "server.js" "$@"
|