Skip to content

Commit 4f2d378

Browse files
authored
Update appimage-arm.yml
1 parent 36d1fe7 commit 4f2d378

1 file changed

Lines changed: 11 additions & 49 deletions

File tree

‎.github/workflows/appimage-arm.yml‎

Lines changed: 11 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: (ARM64) Compilar y Empaquetar AppImage
1+
name: (Debian ARM64) Compilar y Empaquetar AppImage
22

33
on:
44
workflow_dispatch:
@@ -126,25 +126,13 @@ jobs:
126126
export QT_PLUGIN_PATH="$HERE/usr/plugins:$HERE/usr/lib/plugins:$HERE/usr/lib/qt6/plugins:$QT_PLUGIN_PATH"
127127
export QT_QPA_PLATFORM_PLUGIN_PATH="$HERE/usr/plugins/platforms:$HERE/usr/lib/plugins/platforms:$HERE/usr/lib/qt6/plugins/platforms"
128128
129-
# Detectar automáticamente Wayland o X11
130-
if [ -n "$WAYLAND_DISPLAY" ] || [ -S "$XDG_RUNTIME_DIR/wayland-0" ]; then
131-
export QT_QPA_PLATFORM=wayland
132-
echo "Usando plugin Wayland"
133-
else
134-
export QT_QPA_PLATFORM=xcb
135-
echo "Usando plugin XCB (X11)"
136-
fi
129+
# Forzar el uso de XCB (X11) para garantizar el movimiento de ventanas
130+
export QT_QPA_PLATFORM=xcb
131+
echo "Usando plugin XCB (X11)"
137132
138-
export QT_DEBUG_PLUGINS=1
139133
export MCPELAUNCHER_DATA_DIR="$HERE/usr/share/mcpelauncher"
140134
export PATH="$HERE/usr/bin:$PATH"
141135
142-
echo "QT_PLUGIN_PATH: $QT_PLUGIN_PATH"
143-
echo "Contenido de platform plugins:"
144-
ls -l "$HERE"/usr/plugins/platforms/ 2>/dev/null || echo "No existe $HERE/usr/plugins/platforms"
145-
ls -l "$HERE"/usr/lib/plugins/platforms/ 2>/dev/null || echo "No existe $HERE/usr/lib/plugins/platforms"
146-
ls -l "$HERE"/usr/lib/qt6/plugins/platforms/ 2>/dev/null || echo "No existe $HERE/usr/lib/qt6/plugins/platforms"
147-
148136
exec "$HERE/usr/bin/trinity" "$@"
149137
EOF
150138
chmod +x APPIMAGE-TRINITY/AppRun
@@ -178,51 +166,25 @@ jobs:
178166
--icon-file APPIMAGE-TRINITY/usr/share/icons/hicolor/scalable/apps/com.trench.trinity.launcher.svg \
179167
--plugin qt
180168
181-
- name: Copiar plugins Wayland, XCB y dependencias (ARM64)
169+
- name: Copiar plugins XCB y dependencias (ARM64)
182170
run: |
183-
# Directorios de plugins
184171
mkdir -p APPIMAGE-TRINITY/usr/plugins/platforms
185172
mkdir -p APPIMAGE-TRINITY/usr/lib/plugins/platforms
186173
mkdir -p APPIMAGE-TRINITY/usr/lib/qt6/plugins/platforms
187-
mkdir -p APPIMAGE-TRINITY/usr/plugins/wayland-shell-integration
188-
mkdir -p APPIMAGE-TRINITY/usr/lib/plugins/wayland-shell-integration
189-
mkdir -p APPIMAGE-TRINITY/usr/lib/qt6/plugins/wayland-shell-integration
190-
mkdir -p APPIMAGE-TRINITY/usr/plugins/wayland-graphics-integration-client
191-
mkdir -p APPIMAGE-TRINITY/usr/lib/plugins/wayland-graphics-integration-client
192-
mkdir -p APPIMAGE-TRINITY/usr/lib/qt6/plugins/wayland-graphics-integration-client
193-
194-
# Buscar directorio de plataformas Qt6 (ARM64)
174+
195175
PLATFORM_DIR=$(find /usr/lib -path "*/qt6/plugins/platforms" -type d 2>/dev/null | head -n 1)
196176
if [ -d "$PLATFORM_DIR" ]; then
197177
cp -v "$PLATFORM_DIR"/*.so APPIMAGE-TRINITY/usr/plugins/platforms/
198178
cp -v "$PLATFORM_DIR"/*.so APPIMAGE-TRINITY/usr/lib/plugins/platforms/
199179
cp -v "$PLATFORM_DIR"/*.so APPIMAGE-TRINITY/usr/lib/qt6/plugins/platforms/
200180
fi
201181
202-
# Copiar plugins de integración de Wayland (shell y graphics)
203-
for subdir in wayland-shell-integration wayland-graphics-integration-client; do
204-
SRC_DIR=$(find /usr/lib -path "*/qt6/plugins/$subdir" -type d 2>/dev/null | head -n 1)
205-
if [ -d "$SRC_DIR" ]; then
206-
cp -v "$SRC_DIR"/*.so APPIMAGE-TRINITY/usr/plugins/$subdir/
207-
cp -v "$SRC_DIR"/*.so APPIMAGE-TRINITY/usr/lib/plugins/$subdir/
208-
cp -v "$SRC_DIR"/*.so APPIMAGE-TRINITY/usr/lib/qt6/plugins/$subdir/
182+
for lib in $(ldd /usr/lib/*/qt6/plugins/platforms/libqxcb.so 2>/dev/null | grep -E "libX|libxcb" | awk '{print $3}'); do
183+
if [ -f "$lib" ]; then
184+
cp -v "$lib" APPIMAGE-TRINITY/usr/lib/
209185
fi
210186
done
211187
212-
# Copiar dependencias de Wayland (libwayland-client, libxkbcommon, libdecor, etc.)
213-
# Usamos el plugin generic como referencia
214-
PLUGIN_SO=$(find /usr/lib -name "libqwayland-generic.so" -type f 2>/dev/null | head -n 1)
215-
if [ -n "$PLUGIN_SO" ]; then
216-
for lib in $(ldd "$PLUGIN_SO" 2>/dev/null | grep -E "libwayland|libxkbcommon|libdecor" | awk '{print $3}'); do
217-
if [ -f "$lib" ]; then
218-
cp -v "$lib" APPIMAGE-TRINITY/usr/lib/
219-
fi
220-
done
221-
fi
222-
223-
# Copiar libQt6WaylandClient y libQt6WaylandCompositor
224-
find /usr/lib -name "libQt6Wayland*.so*" -exec cp -v {} APPIMAGE-TRINITY/usr/lib/ \;
225-
226188
- name: Generar AppImage final (ARM64)
227189
run: |
228190
export PATH=$PWD:$PATH
@@ -241,7 +203,7 @@ jobs:
241203
with:
242204
tag_name: 2.6-beta
243205
files: |
244-
Trinity_Launcher-aarch64.AppImage
245-
Trinity_Launcher-aarch64.AppImage.zsync
206+
*.AppImage
207+
*.zsync
246208
env:
247209
GITHUB_TOKEN: ${{ secrets.TOKEN_GIT }}

0 commit comments

Comments
 (0)