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

Feature: Finish writing the appimage release process #231

Open
jessebot opened this issue May 22, 2024 · 0 comments
Open

Feature: Finish writing the appimage release process #231

jessebot opened this issue May 22, 2024 · 0 comments
Labels
✨ enhancement New feature request

Comments

@jessebot
Copy link
Collaborator

Describe the feature you'd like, and why

We need to finish writing the appimage release process so that we can use it in the brew packaging. Some of it has been started here:

  • # This is an example for making an AppImage from a python3 smol-k8s-lab application
    # using virtualenv and pip3
    app: smol-k8s-lab
    ingredients:
    dist: bookworm
    sources:
    - deb http://us.archive.ubuntu.com/ubuntu/ bookworm bookworm-updates bookworm-security main universe
    - deb http://us.archive.ubuntu.com/ubuntu/ bookworm-updates main universe
    - deb http://us.archive.ubuntu.com/ubuntu/ bookworm-security main universe
    packages:
    - python3.12-venv
    # these are for making sound work
    - libasound2-data
    - libasound2-plugins
    - libasound2
    script:
    - wget -c https://raw.githubusercontent.com/small-hack/smol-k8s-lab/main/docs/assets/images/icons/logo.png
    - wget -c https://raw.githubusercontent.com/small-hack/smol-k8s-lab/main/smol_k8s_lab/config/smol-k8s-lab.appdata.xml
    script:
    - cp smol-k8s-lab.png ./usr/share/icons/hicolor/256x256/
    - cp smol-k8s-lab.png .
    - mkdir -p usr/share/metainfo/ ; cp smol-k8s-lab.appdata.xml usr/share/metainfo/
    - virtualenv --python=python3 usr
    - ./usr/bin/pip3 install smol-k8s-lab
    - cat > usr/share/applications/smol-k8s-lab.desktop <<\EOF
    - [Desktop Entry]
    - Type=Application
    - Name=smol-k8s-lab
    - Comment=CLI and TUI to quickly install slimmer Kubernetes distros and then manage apps declaratively using Argo CD
    - Icon=smol-k8s-lab
    - Exec=smol-k8s-lab
    - Terminal=true
    - Categories=Application;Development;
    - Keywords=Python;Kubernetes;
    - EOF
    - cp usr/share/applications/smol-k8s-lab.desktop .
    - usr/bin/pip3 freeze | grep "smol-k8s-lab" | cut -d "=" -f 3 >> ../VERSION
  • # still figuring out how to make this work, so it is disabled for now
    # - name: Create an appimage for smol-k8s-lab for use with brew
    # # see https://github.com/AppImageCommunity/pkg2appimage for more info
    # run: |
    # wget -c $(wget -q https://api.github.com/repos/AppImageCommunity/pkg2appimage/releases -O - | grep "pkg2appimage-.*-x86_64.AppImage" | grep browser_download_url | head -n 1 | cut -d '"' -f 4)
    # chmod +x ./pkg2appimage-*.AppImage
    # ./pkg2appimage-*.AppImage .github/smol-k8s-lab-appimage.yaml

But I never finished actually testing it. It should work for at least macos and debian though, so we probably need testing processes for that too 🤔

@jessebot jessebot added the ✨ enhancement New feature request label May 22, 2024
@jessebot jessebot changed the title Feature Request: Finish writing the appimage release process Feature: Finish writing the appimage release process May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature request
Projects
None yet
Development

No branches or pull requests

1 participant