fix workflow take 2 only linux
All checks were successful
Build Slideshow App / build (arm64, , linux) (push) Successful in 1m23s

This commit is contained in:
Adrian Zürcher
2026-01-18 17:04:52 +01:00
parent e1ae34a336
commit e480141e89

View File

@@ -15,19 +15,19 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- os: windows #- os: windows
arch: amd64 # arch: amd64
ext: .exe # ext: .exe
- os: linux #- os: linux
arch: amd64 # arch: amd64
ext: "" # ext: ""
- os: linux - os: linux
arch: arm64 arch: arm64
ext: "" ext: ""
- os: linux #- os: linux
arch: arm # arch: arm
arm_version: 7 # arm_version: 7
ext: "" # ext: ""
steps: steps:
@@ -98,6 +98,7 @@ jobs:
# 2. Create Directory Structure # 2. Create Directory Structure
mkdir -p $BUILD_DIR/usr/bin mkdir -p $BUILD_DIR/usr/bin
mkdir -p $BUILD_DIR/usr/share/$PKG_NAME mkdir -p $BUILD_DIR/usr/share/$PKG_NAME
mkdir -p $BUILD_DIR/etc/systemd/system
mkdir -p $BUILD_DIR/DEBIAN mkdir -p $BUILD_DIR/DEBIAN
# 3. Copy Files # 3. Copy Files
@@ -116,10 +117,12 @@ jobs:
cat <<EOF > $BUILD_DIR/etc/systemd/system/$PKG_NAME.service cat <<EOF > $BUILD_DIR/etc/systemd/system/$PKG_NAME.service
[Unit] [Unit]
Description=Slideshow Application Service Description=Slideshow Application Service
After=network.target After=graphical.target
[Service] [Service]
Type=simple Type=simple
Environment=DISPLAY=:0
Environment=XAUTHORITY=/home/youruser/.Xauthority
ExecStart=/usr/bin/$PKG_NAME ExecStart=/usr/bin/$PKG_NAME
WorkingDirectory=/usr/share/$PKG_NAME WorkingDirectory=/usr/share/$PKG_NAME
Restart=always Restart=always
@@ -146,10 +149,10 @@ jobs:
#!/bin/sh #!/bin/sh
# Check if .env exists in the target share folder # Check if .env exists in the target share folder
if [ ! -f "/usr/share/$PKG_NAME/.env" ]; then if [ ! -f "/usr/share/$PKG_NAME/.env" ]; then
echo "Creating new .env from template..." echo "Creating new .env from template..."
cp /usr/share/$PKG_NAME/.env.template /usr/share/$PKG_NAME/.env cp /usr/share/$PKG_NAME/.env.template /usr/share/$PKG_NAME/.env
else else
echo ".env already exists, skipping template copy to preserve settings." echo ".env already exists, skipping template copy to preserve settings."
fi fi
echo "reload" echo "reload"