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

Add flatpak support #485

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from
Open

Add flatpak support #485

wants to merge 1 commit into from

Conversation

Vendicated
Copy link
Contributor

Adds flatpak paths and prints permission override note for flatpak users


Additional note for flatpak users finding this PR (might want to add this to README in case this gets merged? idk)

Due to flatpaks being sandboxed, powercord doesn't have access to the git binary which breaks auto updating. Assuming your powercord folder is in ~/.local/share/powercord, you can use this simple script to update all your plugins manually

#!/bin/bash
shopt -s globstar

for folder in ~/.local/share/powercord/**/.git; do
  (cd "$folder/.." && echo "Pulling $PWD" && git pull)
done

@Lunarequest
Copy link

a suggestion as someone who has worked on flatpaks with git is to extract the prebuilt bins from a sdk. For example in the github desktop flatpak we do this to get git, it shouldn't be hard to replicate this by grabbing the required stuff from the Sdk, I would suggest getting it from org.freedesktop.Sdk

- name: git
    buildsystem: simple
    build-commands:
      - install -Dm0755 $(which git) /app/bin/
      - install -Dm0755 $(which git-cvsserver) /app/bin/
      - install -Dm0755 $(which git-receive-pack) /app/bin/
      - install -Dm0755 $(which git-shell) /app/bin/
      - install -Dm0755 $(which git-upload-archive) /app/bin/
      - install -Dm0755 $(which git-upload-pack) /app/bin/

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

Successfully merging this pull request may close these issues.

None yet

3 participants