Baixar flatpak para um arquivo local
Publicado por José Lucas (última atualização em 13/12/2022)
[ Hits: 2.061 ]
Homepage: https://github.com/NIDObr
Este script ajuda a baixar um pacote flatpak localmente, sem precisar instalar, é útil para modificar ou usar alguma lib especifica daquele flatpak.
https://github.com/NIDObr/Flatpak-files-Downloader
Exemplo:
$ ./flatpak_download.sh < flatpak repo >
$ ./flatpak_download.sh com.google.Chrome
Isso vai criar um arquivo chamado chrome.tar
#!/usr/bin/env bash #------------------------------------------------------------------ # Autor: NidoBr # Mais: < https://github.com/NIDObr > # Email: coqecoisa@gmail.com # Sobre: Download and generate a package containing the files of a flatpak # License: GPL-3.0 license #------------------------------------------------------------------ # Usage: # ./flatpak_download.sh < flatpak repo > # Ex: # ./flatpak_download.sh com.google.Chrome [ -z ${1} ] && { printf "${0}: Error!\n\nUsage:\n ./flatpak_download.sh < flatpak repo >\nEx:\n ./flatpak_download.sh com.google.Chrome\n\n" exit 1 } mkdir .tmp_download cd .tmp_download mkdir -p ostree # Flathub Key # Key file hash (sha256): '8bdc20abc4e19c0796460beb5bfe0e7aa4138716999e19c6f2dbdd78cc41aeaa' wget https://flathub.org/repo/flathub.gpg # Create the fakeroot environment ostree init --repo ./ostree ostree remote add --gpg-import=flathub.gpg --repo ./ostree flathub https://dl.flathub.org/repo/ || true fakeroot ostree pull --repo ./ostree flathub app/${1}/x86_64/stable # package information _commit=$(cat ostree/refs/remotes/flathub/app/${1}/x86_64/stable) _name=$(printf '%s\n' ${1} | awk -F'.' '{print $4}') [ -z ${_name} ] && { _name=$(printf '%s\n' ${1} | awk -F'.' '{print $3}') } # Generate the final file ostree export --repo ./ostree flathub:${_commit} --subpath files > ../"${_name}.tar" cd ../ rm -rf .tmp_download
Claro 3g Sony Ericsson md300 script conexao REVISAO 3
Transforme a manpage e infopage em pdf e texto
shradio.sh - ouça rádios online
Como aprovar Pull Requests em seu repositório Github via linha de comando
Como gerar um podcast a partir de um livro em PDF
Automatizando digitação de códigos 2FA no browser
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Resolvendo o erro "libQt6Widgets.so.6: cannot open shared object file" no Linux
Como instalar protetores de tela (Debian e derivados)
Conheça a 4Devs, caixa de ferramentas online para desenvolvedores
Como converter um vídeo MP4 para um GIF para publicar no README.md do seu repositório Github
Re: Copia e Cola no SED --> Processador de textos (2)
Driver de rede realtek 8821ce bugado (1)
Problemas de compartilhame... de impressora no Ubuntu 24.04 (3)