LBRY-Vault/contrib/build-linux/appimage
Axel Gembe c3b92aa13a
AppImage: Copy libusb binary into image
pkg2appimage excludes libusb-1.0.so by default for no good reason:

83483c2971/excludelist (L112)

This can cause an issue when the AppImage loads the systems libusb but the
systems libusb in turn loads libudev from the AppImage. The kernel ABI for
libusb will not be changing so it is safe to bundle it into the AppImage.

-----

taken from Electron-Cash/Electron-Cash@25d45fdcbf
2019-05-15 19:01:39 +02:00
..
apprun.sh initial commit for building AppImages for Linux x86_64 2019-02-03 23:45:30 +01:00
build.sh AppImage: Copy libusb binary into image 2019-05-15 19:01:39 +02:00
Dockerfile binary builder dockerfiles: update packages 2019-04-12 16:51:35 +02:00
README.md initial commit for building AppImages for Linux x86_64 2019-02-03 23:45:30 +01:00

AppImage binary for Electrum

This assumes an Ubuntu host, but it should not be too hard to adapt to another similar system. The docker commands should be executed in the project's root folder.

  1. Install Docker

    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
    $ sudo apt-get update
    $ sudo apt-get install -y docker-ce
    
  2. Build image

    $ sudo docker build --no-cache -t electrum-appimage-builder-img contrib/build-linux/appimage
    
  3. Build binary

    $ sudo docker run -it \
        --name electrum-appimage-builder-cont \
        -v $PWD:/opt/electrum \
        --rm \
        --workdir /opt/electrum/contrib/build-linux/appimage \
        electrum-appimage-builder-img \
        ./build.sh
    
  4. The generated binary is in ./dist.

FAQ

How can I see what is included in the AppImage?

Execute the binary as follows: ./electrum*.AppImage --appimage-extract