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
Org.onionshare.onion share #2129
Conversation
It will be an amazing addition. Thank you @micahflee. |
@@ -1,27 +1,8 @@ | |||
# Flathub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feel free to delete this file too.
org.onionshare.OnionShare.yaml
Outdated
- "--share=ipc" | ||
- "--share=network" | ||
- "--socket=wayland" | ||
- "--socket=x11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- "--socket=x11" | |
- "--socket=fallback-x11" |
- "--talk-name=org.freedesktop.secrets" | ||
- "--filesystem=home:ro" | ||
- "--filesystem=~/OnionShare:create" | ||
- "--filesystem=xdg-config/onionshare:create" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- "--filesystem=xdg-config/onionshare:create" |
Your application has write access to $XDG_CONFIG_HOME
by default.
org.onionshare.OnionShare.yaml
Outdated
- "--share=network" | ||
- "--socket=wayland" | ||
- "--socket=x11" | ||
- "--talk-name=org.freedesktop.Flatpak" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you need it for?
org.onionshare.OnionShare.yaml
Outdated
- mkdir -p /app/include/qt5tmp && cp -R /usr/include/Qt* /app/include/qt5tmp # https://bugreports.qt.io/browse/PYSIDE-787 | ||
- sed -i 's|\(--include-paths=\)|\1/app/include/qt5tmp:|' sources/pyside2/cmake/Macros/PySideModules.cmake | ||
- name: tor | ||
buildsystem: simple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use autotools here?
org.onionshare.OnionShare.yaml
Outdated
url: https://dist.torproject.org/tor-0.4.5.6.tar.gz | ||
modules: | ||
- name: libevent | ||
buildsystem: simple |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
org.onionshare.OnionShare.yaml
Outdated
GOBIN: "/app/bin/" | ||
GO111MODULE: "off" | ||
build-commands: | ||
- ". /usr/lib/sdk/golang/enable.sh; GOPATH=$PWD go install gitlab.com/yawning/obfs4.git/obfs4proxy" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it actually work? Flathub runs builds offline, https://github.com/flatpak/flatpak-builder-tools/tree/master/go-get can be used to generate manifest automatically.
- type: dir | ||
path: ../desktop/src | ||
modules: | ||
- name: python3-qrcode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a generator for pip too, if it makes the work simpler for you: https://github.com/flatpak/flatpak-builder-tools/tree/master/pip
bot, build org.onionshare.OnionShare |
Queued test build for org.onionshare.OnionShare. |
Started test build 39943 |
Build 39943 failed |
- "--talk-name=org.freedesktop.Flatpak" | ||
- "--talk-name=org.freedesktop.Notifications" | ||
- "--talk-name=org.freedesktop.secrets" | ||
- "--filesystem=home:ro" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this app use portals? If yes then you may not need this permission.
bot, build org.onionshare.OnionShare |
Queued test build for org.onionshare.OnionShare. |
Started test build 39993 |
Build 39993 successful
|
Okay, I've fixed the manifest and addressed all of your comments, and it seems ready to go.
Without this in
I get this error:
The problem is in upstream OnionShare is writing directly to I made the I actually did use the flatpak-builder-tools repo for both pip dependencies and for the golang obfs4proxy module, though it turns out https://github.com/flatpak/flatpak-builder-tools/tree/master/go-get doesn't work anymore as of about 6 days ago when https://github.com/flathub/org.freedesktop.Sdk.Extension.golang updated golang to 1.16 -- it took awhile to realize I needed the |
bot, build org.onionshare.OnionShare |
Queued test build for org.onionshare.OnionShare. |
Started test build 39998 |
Oh yeah and
I'd like to use portals, but it's not yet implemented. |
Build 39998 successful
|
/merge |
A repository for this has been created: https://github.com/flathub/org.onionshare.OnionShare You will receive an invitation to be a collaborator which will grant you write access to the repository above. The invite can be also viewed here. If you have never maintained an application before, common questions are answered in the app maintenance guide. Thanks! |
Please confirm your submission meets all the criteria