Compare commits

...

7 Commits

Author SHA1 Message Date
github-actions[bot]
f2e2a4cd85 Update CHANGELOG.md 2025-01-04 11:51:47 +00:00
Kristo Copani
eee58b43db
[GitHub Action] Add filename case check (#1228) 2025-01-04 12:51:34 +01:00
community-scripts-pr-app[bot]
8a35df4f59
Update CHANGELOG.md (#1224)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-01-04 11:27:58 +01:00
CanbiZ
9fd4a13a8a
Fix: Update Python for HomeAssistant (#1227)
* Python Check: HA-Core

* Update Python to 3.13.X

* Update homeassistant-core.sh
2025-01-04 11:15:14 +01:00
CanbiZ
9f2ae06726
Onedev: Add git-lfs (#1225) 2025-01-04 11:03:58 +01:00
Johanna Rührig
a5adf44f39
Pf2eTools & 5eTools: Fixing npm build (#1213)
* Fixing #1195

* Fixing also for 5etools.

* Update 5etools.sh

* Update pf2etools.sh

* Update 5etools-install.sh

* Update pf2etools-install.sh

* Update 5etools-install.sh

* Update pf2etools-install.sh

* remove pnpm

* remove pnpm

---------

Co-authored-by: CanbiZ <47820557+MickLesk@users.noreply.github.com>
2025-01-04 10:59:35 +01:00
community-scripts-pr-app[bot]
536de5d083
Update CHANGELOG.md (#1220) 2025-01-04 08:58:40 +01:00
9 changed files with 155 additions and 4 deletions

92
.github/workflows/check-lowercase.yml vendored Normal file
View File

@ -0,0 +1,92 @@
name: Check Lowercase Filenames
on:
pull_request:
paths:
- 'ct/*.sh'
- 'install/*.sh'
- 'json/*.json'
jobs:
check_lowercase:
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Ensure the full history is fetched for accurate diffing
# Step 2: Fetch the base branch
- name: Fetch base branch
run: git fetch origin ${{ github.base_ref }}
# Step 3a: Validate filenames in ct directory
- name: "Validate filenames in ct directory"
run: |
changed_files=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -E '^ct/.*\.sh$')
ERROR_COUNT=0
for FILE in $changed_files; do
BASENAME=$(basename "$FILE")
if [[ "$BASENAME" =~ ^[a-z0-9._-]+$ ]]; then
echo "$FILE: Check for lowercase in filename passed."
else
echo "Error in $FILE. Change filename to lowercase."
ERROR_COUNT=$((ERROR_COUNT + 1))
fi
done
if [ "$ERROR_COUNT" -ne 0 ]; then
exit 1
else
echo "All filenames in ct directory passed the lowercase check."
fi
# Step 3b: Validate filenames in install directory
- name: "Validate filenames in install directory"
run: |
changed_files=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -E '^install/.*\.sh$')
ERROR_COUNT=0
for FILE in $changed_files; do
BASENAME=$(basename "$FILE")
if [[ "$BASENAME" =~ ^[a-z0-9._-]+$ ]]; then
echo "$FILE: Check for lowercase in filename passed."
else
echo "Error in $FILE. Change filename to lowercase."
ERROR_COUNT=$((ERROR_COUNT + 1))
fi
done
if [ "$ERROR_COUNT" -ne 0 ]; then
exit 1
else
echo "All filenames in install directory passed the lowercase check."
fi
# Step 3c: Validate filenames in json directory
- name: "Validate filenames in json directory."
run: |
changed_files=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -E '^json/.*\.json$')
ERROR_COUNT=0
for FILE in $changed_files; do
BASENAME=$(basename "$FILE")
if [[ "$BASENAME" =~ ^[a-z0-9._-]+$ ]]; then
echo "$FILE: Check for lowercase in filename passed."
else
echo "Error in $FILE. Change filename to lowercase."
ERROR_COUNT=$((ERROR_COUNT + 1))
fi
done
if [ "$ERROR_COUNT" -ne 0 ]; then
exit 1
else
echo "All filenames in json directory passed the lowercase check."
fi

View File

@ -16,6 +16,24 @@ All LXC instances created using this repository come pre-installed with Midnight
> [!IMPORTANT] > [!IMPORTANT]
Do not break established syntax in this file, as it is automatically updated by a Github Workflow Do not break established syntax in this file, as it is automatically updated by a Github Workflow
## 2025-01-04
### Changed
### 🚀 Updated Scripts
- Fix: Update Python for HomeAssistant [@MickLesk](https://github.com/MickLesk) ([#1227](https://github.com/community-scripts/ProxmoxVE/pull/1227))
- OneDev: Add git-lfs [@MickLesk](https://github.com/MickLesk) ([#1225](https://github.com/community-scripts/ProxmoxVE/pull/1225))
- Pf2eTools & 5eTools: Fixing npm build [@TheRealVira](https://github.com/TheRealVira) ([#1213](https://github.com/community-scripts/ProxmoxVE/pull/1213))
### 🌐 Website
- Bump next from 15.0.2 to 15.1.3 in /frontend [@dependabot[bot]](https://github.com/dependabot[bot]) ([#1212](https://github.com/community-scripts/ProxmoxVE/pull/1212))
### 🧰 Maintenance
- [GitHub Action] Add filename case check [@quantumryuu](https://github.com/quantumryuu) ([#1228](https://github.com/community-scripts/ProxmoxVE/pull/1228))
## 2025-01-03 ## 2025-01-03
### Changed ### Changed

View File

@ -51,6 +51,10 @@ function update_script() {
rm -rf "/opt/${APP}" rm -rf "/opt/${APP}"
mv "${APP}-src-${RELEASE:1}" "/opt/${APP}" mv "${APP}-src-${RELEASE:1}" "/opt/${APP}"
mv "/opt/img-backup" "/opt/${APP}/img" mv "/opt/img-backup" "/opt/${APP}/img"
cd /opt/5etools
$STD npm install
$STD npm run build
cd ~
echo "${RELEASE}" >"/opt/${APP}_version.txt" echo "${RELEASE}" >"/opt/${APP}_version.txt"
msg_ok "Updated base 5etools" msg_ok "Updated base 5etools"

View File

@ -51,7 +51,9 @@ function update_script() {
echo -e "${GN}Updating to Stable Version${CL}" echo -e "${GN}Updating to Stable Version${CL}"
BR="" BR=""
fi fi
if [[ "$PY" == "python3.11" ]]; then echo -e "⚠️ Home Assistant will soon require Python 3.12."; fi if [[ "$PY" =~ ^python3\.(11|12)\.[0-9]+$ ]]; then
echo -e "⚠️ Home Assistant will soon require Python 3.13.x";
fi
msg_info "Stopping Home Assistant" msg_info "Stopping Home Assistant"
systemctl stop homeassistant systemctl stop homeassistant

View File

@ -50,6 +50,10 @@ function update_script() {
unzip -q "${RELEASE}.zip" unzip -q "${RELEASE}.zip"
rm -rf "/opt/${APP}" rm -rf "/opt/${APP}"
mv "${APP}-${RELEASE:1}" "/opt/${APP}" mv "${APP}-${RELEASE:1}" "/opt/${APP}"
cd /opt/Pf2eTools
$STD npm install
$STD npm run build
cd ~
echo "${RELEASE}" >"/opt/${APP}_version.txt" echo "${RELEASE}" >"/opt/${APP}_version.txt"
msg_ok "Updated ${APP}" msg_ok "Updated ${APP}"

View File

@ -23,12 +23,27 @@ $STD apt-get install -y \
apache2 apache2
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get update
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
# Setup App # Setup App
msg_info "Set up 5etools Base" msg_info "Set up 5etools Base"
RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-3/5etools-src/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/5etools-mirror-3/5etools-src/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
wget -q "https://github.com/5etools-mirror-3/5etools-src/archive/refs/tags/${RELEASE}.zip" wget -q "https://github.com/5etools-mirror-3/5etools-src/archive/refs/tags/${RELEASE}.zip"
unzip -q "${RELEASE}.zip" unzip -q "${RELEASE}.zip"
mv "5etools-src-${RELEASE:1}" /opt/5etools mv "5etools-src-${RELEASE:1}" /opt/5etools
cd /opt/5etools
$STD npm install
$STD npm run build
cd ~
echo "${RELEASE}" >"/opt/5etools_version.txt" echo "${RELEASE}" >"/opt/5etools_version.txt"
rm "${RELEASE}.zip" rm "${RELEASE}.zip"
msg_ok "Set up 5etools Base" msg_ok "Set up 5etools Base"

View File

@ -14,7 +14,7 @@ network_check
update_os update_os
msg_info "Installing Dependencies (Patience)" msg_info "Installing Dependencies (Patience)"
$STD apt-get install -y git curl sudo mc bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libturbojpeg0-dev ffmpeg liblapack3 liblapack-dev dbus-broker libpcap-dev libavdevice-dev libavformat-dev libavcodec-dev libavutil-dev libavfilter-dev libmariadb-dev-compat libatlas-base-dev pip python3.12-dev $STD apt-get install -y git curl sudo mc bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libturbojpeg0-dev ffmpeg liblapack3 liblapack-dev dbus-broker libpcap-dev libavdevice-dev libavformat-dev libavcodec-dev libavutil-dev libavfilter-dev libmariadb-dev-compat libatlas-base-dev pip python3.13-dev
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing UV" msg_info "Installing UV"

View File

@ -19,7 +19,8 @@ $STD apt-get install -y \
mc \ mc \
sudo \ sudo \
default-jdk \ default-jdk \
git git \
git-lfs
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
@ -41,4 +42,4 @@ msg_info "Cleaning up"
rm -rf /opt/onedev-latest.tar.gz rm -rf /opt/onedev-latest.tar.gz
$STD apt-get -y autoremove $STD apt-get -y autoremove
$STD apt-get -y autoclean $STD apt-get -y autoclean
msg_ok "Cleaned" msg_ok "Cleaned"

View File

@ -23,12 +23,27 @@ $STD apt-get install -y \
git git
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Setting up Node.js Repository"
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" >/etc/apt/sources.list.d/nodesource.list
msg_ok "Set up Node.js Repository"
msg_info "Installing Node.js"
$STD apt-get update
$STD apt-get install -y nodejs
msg_ok "Installed Node.js"
# Setup App # Setup App
msg_info "Setup Pf2eTools" msg_info "Setup Pf2eTools"
RELEASE=$(curl -s https://api.github.com/repos/Pf2eToolsOrg/Pf2eTools/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/Pf2eToolsOrg/Pf2eTools/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip" wget -q "https://github.com/Pf2eToolsOrg/Pf2eTools/archive/refs/tags/${RELEASE}.zip"
unzip -q "${RELEASE}.zip" unzip -q "${RELEASE}.zip"
mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools mv "Pf2eTools-${RELEASE:1}" /opt/Pf2eTools
cd /opt/Pf2eTools
$STD npm install
$STD npm run build
cd ~
echo "${RELEASE}" >/opt/Pf2eTools_version.txt echo "${RELEASE}" >/opt/Pf2eTools_version.txt
msg_ok "Set up Pf2eTools" msg_ok "Set up Pf2eTools"