#!/bin/bash

CURRENT_ABS_PATH=$(cd "$(dirname "$0")" && pwd)

HTML_FILE="${CURRENT_ABS_PATH}/../src/frontend/templates/home.html"

# Force the use of production Vue.js dependencies
VUE="s/vue\.global\.js/vue.global.prod.js/g"

# Determine if the system is macOS (Darwin)
if [[ "$(uname)" == "Darwin" ]]; then
    sed -i '' "$VUE" "$HTML_FILE"
else
    sed -i "$VUE" "$HTML_FILE"
fi
