Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux appimage #37

Open
zhenruyan opened this issue Jun 28, 2024 · 3 comments
Open

linux appimage #37

zhenruyan opened this issue Jun 28, 2024 · 3 comments

Comments

@zhenruyan
Copy link

I hope to have the support of appimage, as many old Linux systems may not be able to install software using packages very well

@pigpigyyy
Copy link
Member

pigpigyyy commented Jul 3, 2024

Tried these instructions: https://docs.appimage.org/packaging-guide/converting-binary-packages/pkg2appimage.html#using-ingredients-from-an-ubuntu-ppa

But I got stuck running the pkg2appimage script on my arm64 ubuntu, and ended with a lot of errors.
Are you familiar with the AppImage tools? Since we have the ppa repo(https://launchpad.net/~ippclub/+archive/ubuntu/dora-ssr), maybe we can find the right way just converting the built package to an AppImage package.

@zhenruyan
Copy link
Author

Tried these instructions: https://docs.appimage.org/packaging-guide/converting-binary-packages/pkg2appimage.html#using-ingredients-from-an-ubuntu-ppa

But I got stuck running the pkg2appimage script on my arm64 ubuntu, and ended with a lot of errors. Are you familiar with the AppImage tools? Since we have the ppa repo(https://launchpad.net/~ippclub/+archive/ubuntu/dora-ssr), maybe we can find the right way just converting the built package to an AppImage package.

I can also give it a try

@zhenruyan
Copy link
Author

@pigpigyyy


docker run -it  -v .:/data --device /dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined ubuntu:22.04 bash

# install dora
# https://launchpad.net/~ippclub/+archive/ubuntu/dora-ssr


sudo apt update
sudo apt install -y wget fuse
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
sudo mv appimagetool-x86_64.AppImage /usr/local/bin/appimagetool

wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy-x86_64.AppImage
sudo mv linuxdeploy-x86_64.AppImage /usr/local/bin/linuxdeploy



linuxdeploy --appdir AppDir --executable=/usr/bin/dora-ssr --desktop-file=/usr/share/applications/dora-ssr.desktop --icon-file=/usr/share/dora-ssr/Image/icon.png


appimagetool AppDir



I tried to package an appimage file, but I couldn't start it

Encountering many problems in the middle, two of which are confusing

  1. The size of the icon file must be Valid resolutions for icons area: 8x8, 16x16, 20x20, 22x22, 24x24, 28x28, 32x32, 36x36, 42x42, 48x48, 64x64, 72x72, 96x96, 128x128, 160x160, 192x192, 256x256, 384x384, 480x480, 512x512
  2. File pointing issue for desktop files

-----------中文的分割线-------------------
我尝试着打包出来了 但是无法启动 暂时还没时间找问题

中间遇到很多问题 其中两个问题让人迷惑

  1. icon文件的尺寸必须是 Valid resolutions for icons are: 8x8, 16x16, 20x20, 22x22, 24x24, 28x28, 32x32, 36x36, 42x42, 48x48, 64x64, 72x72, 96x96, 128x128, 160x160, 192x192, 256x256, 384x384, 480x480, 512x512
    我用https://linux.cn/article-13779-1.html 命令生成了一批就通过验证了(真的傻逼 一个icon 验证的如此严谨
  2. 桌面文件的文件指向问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants