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

Commit 6267998

Browse files
author
Pedro
committed
Final YAML syntax fix with careful indentation for shell script block
1 parent 0110c72 commit 6267998

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

flatpak-build/org.pedrodev2025.NavegadorPyTech.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,25 @@ modules:
1616
- name: python-dependencies
1717
buildsystem: simple
1818
build-commands:
19-
# Instala pip, setuptools e wheel (boas práticas)
2019
- pip3 install --user pip setuptools wheel
21-
# Instala as dependências PyQt5 e PyQtWebEngine dos arquivos baixados localmente
2220
- pip3 install --user --no-index --find-links=file:///run/build/python-dependencies/ PyQt5 PyQtWebEngine
2321
sources:
24-
# O conteúdo de 'python_wheels' é copiado diretamente para /run/build/python-dependencies/
2522
- type: dir
2623
path: ./python_wheels # Este caminho é relativo à pasta flatpak-build/
2724

2825
- name: navegador-app
2926
buildsystem: simple
30-
build-commands: # <--- COMEÇA AQUI
27+
build-commands:
28+
# Copia o script Python para /app/bin/ com o nome completo
3129
- install -Dm755 navegador.py $(FLATPAK_DEST)/bin/navegador.py
30+
# Copia o arquivo .desktop para o local correto
3231
- install -Dm644 org.pedrodev2025.NavegadorPyTech.desktop $(FLATPAK_DEST)/share/applications/org.pedrodev2025.NavegadorPyTech.desktop
32+
# Copia o ícone para o local correto
3333
- install -Dm644 org.pedrodev2025.NavegadorPyTech.png $(FLATPAK_DEST)/share/icons/hicolor/512x512/apps/org.pedrodev2025.NavegadorPyTech.png
34+
# Cria o script wrapper e o torna executável
35+
# NOTA DE INDENTAÇÃO: O conteúdo abaixo do 'cat > ... << 'EOF'' deve ser
36+
# INDENTADO UNIFORMEMENTE em relação à coluna do 'cat'.
37+
# Geralmente, isso significa 2 espaços a mais que o 'cat'.
3438
- |
3539
cat > $(FLATPAK_DEST)/bin/start-navegador.sh << 'EOF'
3640
#!/bin/bash
@@ -39,8 +43,7 @@ modules:
3943
python3 -c "import sys; print('DEBUG_FLATPAK: sys.path at runtime:'); print(sys.path)"
4044
python3 $(FLATPAK_DEST)/bin/navegador.py "$@"
4145
EOF
42-
- chmod +x $(FLATPAK_DEST)/bin/start-navegador.sh # <--- TERMINA AQUI
43-
46+
- chmod +x $(FLATPAK_DEST)/bin/start-navegador.sh
4447
sources:
4548
- type: dir
4649
path: app-source/

0 commit comments

Comments
 (0)