Add .desktop launchers in both snap and flatpack packages

This commit is contained in:
Micah Lee 2020-11-23 20:51:16 -08:00
parent e8419e660c
commit 44aa71af18
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73
7 changed files with 4331 additions and 19 deletions

View File

@ -1,18 +0,0 @@
[Desktop Entry]
Name=OnionShare
GenericName=OnionShare Client
Comment=Share a file securely and anonymously over Tor
Comment[da]=Del en fil sikkert og anonymt over Tor
Comment[de]=Teile Dateien sicher und anonym über das Tor-Netzwerk
Comment[hr]=Dijeli datoteku sigurno i anonimno preko Tora
Exec=onionshare-gui
Terminal=false
Type=Application
Icon=org.onionshare.OnionShare
Categories=Network;FileTransfer;
Keywords=tor;anonymity;privacy;onion service;file sharing;file hosting;
Keywords[da]=tor;anonymitet;privatliv;onion-tjeneste;fildeling;filhosting;
Keywords[de]=tor;Anonymität;Privatsphäre;Onion-Service;File-Sharing;File-Hosting;
Keywords[hr]=tor;anonimnost;privatnost;Onion usluga;dijeljenje datoteka;hosting datoteka;
StartupNotify=true
StartupWMClass=onionshare

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Name=OnionShare
Exec=onionshare
Terminal=false
Type=Application
Icon=org.onionshare.OnionShare
Categories=Network;FileTransfer;
Keywords=tor;anonymity;privacy;onion service;file sharing;file hosting;
StartupNotify=true
StartupWMClass=onionshare

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 157 KiB

View File

@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
""" """
# This setup.py file is used for flatpak packaging. For other packaging, # This setup.py file is used for snap and flatpak packaging. For other packaging,
# OnionShare uses briefcase. # OnionShare uses briefcase.
import os import os

View File

@ -116,6 +116,8 @@ modules:
build-commands: build-commands:
- python3 setup.py install --prefix=${FLATPAK_DEST} - python3 setup.py install --prefix=${FLATPAK_DEST}
- install -D -m0644 org.onionshare.OnionShare.appdata.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.appdata.xml - install -D -m0644 org.onionshare.OnionShare.appdata.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.appdata.xml
- install -D -m0644 org.onionshare.OnionShare.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/org.onionshare.OnionShare.svg
- install -D -m0644 org.onionshare.OnionShare.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
sources: sources:
- type: dir - type: dir
path: ../desktop/src path: ../desktop/src

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Name=OnionShare
Exec=onionshare
Terminal=false
Type=Application
Icon=${SNAP}/meta/gui/onionshare.svg
Categories=Network;FileTransfer;
Keywords=tor;anonymity;privacy;onion service;file sharing;file hosting;
StartupNotify=true
StartupWMClass=onionshare

2154
snap/gui/onionshare.svg Normal file

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 157 KiB