Skip to content

Cache AppRun to speed up packing process #367

@taozuhong

Description

@taozuhong

Due to the networking issue, the packing process failed again and again, could make it cache AppRun to speed up packing process?

INFO:root:Downloading: https://github.com/AppImageCrafters/AppRun/releases/download/v2.0.0/libapprun_hooks-Release-x86_64.so

WARNING:root:Required interpreter 'python' could not be found in the AppDir while processing /home/andytao/Github/kangaroo/build/package/AppDir/usr/bin/event_rpcgen.py
WARNING:root:Required interpreter 'perl' could not be found in the AppDir while processing /home/andytao/Github/kangaroo/build/package/AppDir/usr/bin/sensors-conf-convert
WARNING:root:Required interpreter 'python3' could not be found in the AppDir while processing /home/andytao/Github/kangaroo/build/package/AppDir/usr/lib/gstreamer-1.0/gst-plugins-doc-cache-generator
INFO:root:Downloading: https://github.com/AppImageCrafters/AppRun/releases/download/v2.0.0/libapprun_hooks-Release-x86_64.so
Traceback (most recent call last):
  File "/home/andytao/myenv/bin/appimage-builder", line 8, in <module>
    sys.exit(__main__())
             ^^^^^^^^^^
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/__main__.py", line 50, in __main__
    invoker.execute(commands)
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/invoker.py", line 29, in execute
    command()
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/commands/setup_runtime.py", line 38, in __call__
    runtime_setup.setup()
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/modules/setup/apprun_2/apprun2.py", line 107, in setup
    self._deploy_apprun_hooks(resolver, runtime_env)
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/modules/setup/apprun_2/apprun2.py", line 271, in _deploy_apprun_hooks
    source_path = apprun_binaries_resolver.resolve_hooks_library(arch)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/modules/setup/apprun_binaries_resolver.py", line 50, in resolve_hooks_library
    self._download_release_asset(asset, file)
  File "/home/andytao/myenv/lib/python3.12/site-packages/appimagebuilder/modules/setup/apprun_binaries_resolver.py", line 60, in _download_release_asset
    request.urlretrieve(url, path)
  File "/usr/lib/python3.12/urllib/request.py", line 240, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
                            ^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 215, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 515, in open
    response = self._open(req, data)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 532, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 492, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 1392, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/urllib/request.py", line 1348, in do_open
    r = h.getresponse()
        ^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/http/client.py", line 1428, in getresponse
    response.begin()
  File "/usr/lib/python3.12/http/client.py", line 331, in begin
    version, status, reason = self._read_status()
                              ^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/http/client.py", line 300, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
make AppImage installer......[failed]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions