Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 0110c72

Browse files
author
Pedro
committed
Ultra-final fix for FLATPAK_DEST expansion and cp in Flatpak build
1 parent 3376962 commit 0110c72

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

flatpak-build/org.pedrodev2025.NavegadorPyTech.yaml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,24 +27,20 @@ modules:
2727

2828
- name: navegador-app
2929
buildsystem: simple
30-
build-commands:
31-
# Copia o script Python para /app/bin/ com o nome completo
30+
build-commands: # <--- COMEÇA AQUI
3231
- install -Dm755 navegador.py $(FLATPAK_DEST)/bin/navegador.py
33-
# Copia o arquivo .desktop para o local correto
3432
- install -Dm644 org.pedrodev2025.NavegadorPyTech.desktop $(FLATPAK_DEST)/share/applications/org.pedrodev2025.NavegadorPyTech.desktop
35-
# Copia o ícone para o local correto
3633
- install -Dm644 org.pedrodev2025.NavegadorPyTech.png $(FLATPAK_DEST)/share/icons/hicolor/512x512/apps/org.pedrodev2025.NavegadorPyTech.png
37-
# Cria o script wrapper e o torna executável
3834
- |
3935
cat > $(FLATPAK_DEST)/bin/start-navegador.sh << 'EOF'
4036
#!/bin/bash
41-
# Adiciona o caminho onde o pip instalou os pacotes ao PYTHONPATH
4237
export PYTHONPATH="/app/lib/python3.11/site-packages:/app/share/python-packages:$PYTHONPATH"
43-
echo "DEBUG_FLATPAK: PYTHONPATH set to: $PYTHONPATH" # Manter para debug
44-
python3 -c "import sys; print('DEBUG_FLATPAK: sys.path at runtime:'); print(sys.path)" # Manter para debug
45-
python3 $(FLATPAK_DEST)/bin/navegador.py "$@" # Chama o script principal
38+
echo "DEBUG_FLATPAK: PYTHONPATH set to: $PYTHONPATH"
39+
python3 -c "import sys; print('DEBUG_FLATPAK: sys.path at runtime:'); print(sys.path)"
40+
python3 $(FLATPAK_DEST)/bin/navegador.py "$@"
4641
EOF
47-
- chmod +x $(FLATPAK_DEST)/bin/start-navegador.sh
42+
- chmod +x $(FLATPAK_DEST)/bin/start-navegador.sh # <--- TERMINA AQUI
43+
4844
sources:
4945
- type: dir
5046
path: app-source/

0 commit comments

Comments
 (0)