【问题标题】:How can I build an AppImage on GitLab CI如何在 GitLab CI 上构建 AppImage
【发布时间】:2020-09-12 13:10:53
【问题描述】:

我正在尝试使用 Gitlab CI 构建 AppImage,但 Ubuntu Docker 映像中似乎没有 fuse。有没有办法在这个 Docker 镜像或其他可用的镜像上构建 AppImage,或者我需要自己制作。

我的.gitlab-ci.yml

image: ubuntu:latest
debian packager:
    stage: build
    script:
        - ./installer.sh --make-deb
    artifacts:
        paths:
            - iicalc.deb
    only:
        - development
AppImage packager:
    stage: build
    script:
        - ./installer.sh --make-appImage
    artifacts:
        paths:
            - ImaginaryInfinity_Calculator-x86_64.AppImage
    only:
        - development

installer.sh中的相关部分:

ARCH=x86_64 ./appimagetool-x86_64.AppImage iicalc-appImage

我在管道运行时遇到的错误:

dlopen(): error loading libfuse.so.2
AppImages require FUSE to run. 
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information

链接到存储库以防您想查看其他内容(AppImage 相关的东西在开发分支上):https://gitlab.com/TurboWafflz/ImaginaryInfinity-Calculator

【问题讨论】:

    标签: gitlab appimage


    【解决方案1】:

    您需要提取 AppImage 才能使用它。像这样:

    sudo wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /opt/appimagetool
    sudo chmod +x /opt/appimagetool
    cd /opt/; sudo /opt/appimagetool --appimage-extract
    sudo mv /opt/squashfs-root /opt/appimagetool.AppDir
    sudo ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool
    

    阅读更多:

    【讨论】:

      猜你喜欢
      • 2016-08-05
      • 2021-02-10
      • 2015-10-07
      • 2017-06-10
      • 2013-02-26
      • 2016-04-10
      • 2019-04-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多