首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在AppImage CI上构建GitLab

如何在AppImage CI上构建GitLab
EN

Stack Overflow用户
提问于 2020-09-11 15:51:30
回答 1查看 533关注 0票数 1

我试图使用Gitlab来构建一个AppImage,但是在Ubuntu映像中,fuse似乎是不可用的。是否有任何方法可以在这个Docker映像或其他可用的映像上构建AppImage,或者我是否需要创建自己的映像。

我的.gitlab-ci.yml

代码语言:javascript
复制
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中的相关部分

代码语言:javascript
复制
ARCH=x86_64 ./appimagetool-x86_64.AppImage iicalc-appImage

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

代码语言:javascript
复制
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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-09-12 05:10:53

您需要提取AppImage才能使用它。如下所示:

代码语言:javascript
复制
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

请参阅更多:

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63850378

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档