Skip to content

A proof of concept to demonstrate a viable way to turn a Flatpak into AppDir

License

Notifications You must be signed in to change notification settings

sudo-give-me-coffee/flatpak2appdir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flatpak2appdir

A tool for converting flatpaks into AppImages

How to use?

  1. Make sure that flatpak ins installead and not broken under your system:
# For Ubuntu:
sudo add-apt-repository -y ppa:alexlarsson/flatpak
sudo apt-get update
sudo apt-get -y  install flatpak

# For other systems, please see:
# https://flatpak.org/setup/

# Is recommended  to add flathub for getting runtimes
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Notes: your application must be able to run with flatpak run your.app.id If flatpak is broken the tool will be fail

  1. Download
wget https://github.com/sudo-give-me-coffee/flatpak2appdir/archive/master.zip -O flatpak2appdir.zip
  1. Unzip
unzip flatpak2appdir.zip
  1. Enter on repository dir:
cd flatpak2appdir-master
  1. Turn executable:
chmod +x flatpak2appdir strace-file appimagetool
  1. Run:
./flatpak2appdir com.example.app

Commandline option:

--executable=cmd    Scan for dependencies of 'cmd'
--autostop=time     Define how long executables will be traced
--disable-theme     Disables theme integration

Notes:
  ¹ --executable= Can be used multiple times
  ² The default value for --autostop= is 25,
    the time is given in seconds

How much overhead on the resulting AppDir?

In general, about 8 to 10 MB (the glibc and some extra libs), the resulting AppDir when compressed as AppImage in my tests will use disk space close to that of the original application (in most of cases)

About

A proof of concept to demonstrate a viable way to turn a Flatpak into AppDir

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages