This repository was archived by the owner on Sep 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -27,24 +27,20 @@ modules:
27
27
28
28
- name : navegador-app
29
29
buildsystem : simple
30
- build-commands :
31
- # Copia o script Python para /app/bin/ com o nome completo
30
+ build-commands : # <--- COMEÇA AQUI
32
31
- install -Dm755 navegador.py $(FLATPAK_DEST)/bin/navegador.py
33
- # Copia o arquivo .desktop para o local correto
34
32
- install -Dm644 org.pedrodev2025.NavegadorPyTech.desktop $(FLATPAK_DEST)/share/applications/org.pedrodev2025.NavegadorPyTech.desktop
35
- # Copia o ícone para o local correto
36
33
- 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
38
34
- |
39
35
cat > $(FLATPAK_DEST)/bin/start-navegador.sh << 'EOF'
40
36
#!/bin/bash
41
- # Adiciona o caminho onde o pip instalou os pacotes ao PYTHONPATH
42
37
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 "$@"
46
41
EOF
47
- - chmod +x $(FLATPAK_DEST)/bin/start-navegador.sh
42
+ - chmod +x $(FLATPAK_DEST)/bin/start-navegador.sh # <--- TERMINA AQUI
43
+
48
44
sources :
49
45
- type : dir
50
46
path : app-source/
You can’t perform that action at this time.
0 commit comments