fix desktop output and add new data path
Some checks failed
Build Slideshow App / build (amd64, , linux) (push) Failing after 2m3s
Build Slideshow App / build (amd64, .exe, windows) (push) Successful in 2m4s
Build Slideshow App / build (arm, 7, , linux) (push) Failing after 1m48s
Build Slideshow App / build (arm64, , linux) (push) Failing after 1m54s

This commit is contained in:
Adrian Zürcher
2026-01-21 07:28:39 +01:00
parent 9150550609
commit 0eb781a6d3

View File

@@ -98,9 +98,12 @@ jobs:
# 2. Create Directory Structure
mkdir -p $BUILD_DIR/usr/bin
mkdir -p $BUILD_DIR/usr/share/$PKG_NAME
mkdir -p $BUILD_DIR/usr/share/$PKG_NAME/data
mkdir -p $BUILD_DIR/etc/systemd/system
mkdir -p $BUILD_DIR/DEBIAN
chown -R "$REAL_USER:$REAL_USER" /usr/share/slideshowapp/data
# 3. Copy Files
cp ${APP_NAME} $BUILD_DIR/usr/bin/$PKG_NAME
cp -r ./web $BUILD_DIR/usr/share/$PKG_NAME/
@@ -115,20 +118,20 @@ jobs:
# 5. Create a Template Autostart File (Instead of Systemd)
mkdir -p $BUILD_DIR/usr/share/$PKG_NAME/setup
cat <<EOF > $BUILD_DIR/usr/share/$PKG_NAME/setup/$PKG_NAME.desktop
cat <<'EOF' > $BUILD_DIR/usr/share/$PKG_NAME/setup/$PKG_NAME.desktop
[Desktop Entry]
Type=Application
Name=Slideshow App
Exec=sh -c ' \
i=0; \
while [ $i -lt 30 ]; do \
if [ "$(ls -A "/media/$REAL_USER" 2>/dev/null)" ] && ping -c 1 -W 1 8.8.8.8 >/dev/null 2>&1; then \
break; \
fi; \
i=$((i+1)); \
sleep 1; \
done; \
cd /usr/share/slideshowapp && /usr/bin/slideshowapp'
i=0; \
while [ $i -lt 30 ]; do \
if [ "$(ls -A /media/$USER 2>/dev/null)" ] && ping -c 1 -W 1 8.8.8.8 >/dev/null 2>&1; then \
break; \
fi; \
i=$((i+1)); \
sleep 1; \
done; \
cd /usr/share/slideshowapp && /usr/bin/slideshowapp'
Terminal=false
EOF