forgot we're not using a smart language

This commit is contained in:
2024-12-15 22:42:31 +02:00
parent e50cce1762
commit ccbef6ef5e
2 changed files with 11 additions and 4 deletions

View File

@@ -58,8 +58,8 @@ jobs:
run: | run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --use docker buildx create --use
docker buildx build --platform linux/arm/v7 -t arm-builder --load --file - . <<EOF docker buildx build --platform linux/arm64/v8 -t arm-builder --load --file - . <<EOF
FROM python:3.11-slim-buster FROM arm64v8/python:3.11-slim-buster
WORKDIR /app WORKDIR /app
COPY requirements.txt /app/requirements.txt COPY requirements.txt /app/requirements.txt
COPY app /app/app COPY app /app/app
@@ -95,7 +95,7 @@ jobs:
- name: Extract ARM Executable - name: Extract ARM Executable
run: | run: |
container_id=$(docker create --platform linux/arm/v7 arm-builder) container_id=$(docker create --platform linux/arm64/v8 arm-builder)
docker cp $container_id:/app/app/dist/wolServer app/dist/wolServer docker cp $container_id:/app/app/dist/wolServer app/dist/wolServer
docker rm $container_id docker rm $container_id

View File

@@ -38,7 +38,14 @@ RestartSec=3
WantedBy=multi-user.target WantedBy=multi-user.target
EOF EOF
wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/v1.0.0/wolServer ARCH="$(uname -m)"
if [ "$ARCH" = "x86_64" ]; then
wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/v1.0.0/wolServer-x86_64
elif [ "$ARCH" = "aarch64" ]; then
wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/v1.0.0/wolServer-arm
fi
chmod +x app/wolServer chmod +x app/wolServer
systemctl daemon-reload systemctl daemon-reload