2020-05-03 16:56:18 -04:00
|
|
|
name: onionshare
|
2023-09-05 23:42:47 -04:00
|
|
|
base: core22
|
2024-03-15 03:18:52 -04:00
|
|
|
version: "2.6.2"
|
2020-11-04 00:48:22 -05:00
|
|
|
summary: Securely and anonymously share files, host websites, and chat using Tor
|
2020-05-03 16:56:18 -04:00
|
|
|
description: |
|
2021-08-22 16:21:09 -04:00
|
|
|
OnionShare lets you securely and anonymously send and receive files. It works by starting
|
|
|
|
a web server, making it accessible as a Tor onion service, and generating an unguessable
|
|
|
|
web address so others can download files from you, or upload files to you. It does _not_
|
2020-11-04 00:48:22 -05:00
|
|
|
require setting up a separate server or using a third party file-sharing service.
|
2020-05-03 16:56:18 -04:00
|
|
|
|
2021-11-15 21:30:10 -05:00
|
|
|
grade: stable # stable or devel
|
2020-11-04 01:53:54 -05:00
|
|
|
confinement: strict
|
2020-05-03 16:56:18 -04:00
|
|
|
|
2022-07-04 17:32:13 -04:00
|
|
|
architectures:
|
2022-10-17 21:15:01 -04:00
|
|
|
- build-on: i386
|
2022-07-04 17:59:51 -04:00
|
|
|
- build-on: amd64
|
|
|
|
- build-on: arm64
|
2022-10-06 12:14:05 -04:00
|
|
|
- build-on: armhf
|
2022-07-04 17:32:13 -04:00
|
|
|
|
2020-05-03 16:56:18 -04:00
|
|
|
apps:
|
2020-11-04 00:48:22 -05:00
|
|
|
onionshare:
|
|
|
|
common-id: org.onionshare.OnionShare
|
2023-09-05 23:42:47 -04:00
|
|
|
command: bin/onionshare
|
2023-12-13 09:13:01 -05:00
|
|
|
extensions: [gnome]
|
2020-05-03 16:56:18 -04:00
|
|
|
plugs:
|
2020-05-07 20:14:48 -04:00
|
|
|
- desktop
|
2020-05-03 16:56:18 -04:00
|
|
|
- home
|
|
|
|
- network
|
|
|
|
- network-bind
|
2020-05-07 20:14:48 -04:00
|
|
|
- removable-media
|
2021-05-31 17:08:29 -04:00
|
|
|
environment:
|
|
|
|
LANG: C.UTF-8
|
2023-09-05 23:42:47 -04:00
|
|
|
PATH: $SNAP/bin:$SNAP/usr/bin:$SNAP/usr/local/bin:$PATH
|
|
|
|
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/local/lib
|
2021-08-22 16:21:09 -04:00
|
|
|
|
2020-11-04 00:48:22 -05:00
|
|
|
cli:
|
|
|
|
common-id: org.onionshare.OnionShareCli
|
2023-09-05 23:42:47 -04:00
|
|
|
command: bin/onionshare-cli
|
2020-05-07 20:14:48 -04:00
|
|
|
plugs:
|
|
|
|
- home
|
|
|
|
- network
|
|
|
|
- network-bind
|
|
|
|
- removable-media
|
2021-05-31 17:08:29 -04:00
|
|
|
environment:
|
|
|
|
LANG: C.UTF-8
|
2023-09-05 23:42:47 -04:00
|
|
|
PATH: $SNAP/bin:$SNAP/usr/bin:$SNAP/usr/local/bin:$PATH
|
|
|
|
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/local/lib
|
2020-05-03 16:56:18 -04:00
|
|
|
|
|
|
|
parts:
|
2022-10-09 10:20:25 -04:00
|
|
|
onionshare-cli:
|
|
|
|
source: ./cli
|
|
|
|
plugin: nil
|
2022-10-09 15:17:40 -04:00
|
|
|
override-pull: |
|
2023-09-05 23:42:47 -04:00
|
|
|
craftctl default
|
2022-10-09 15:17:40 -04:00
|
|
|
rm pyproject.toml poetry.lock
|
2022-10-09 10:20:25 -04:00
|
|
|
after: [tor, obfs4, snowflake-client, meek-client]
|
|
|
|
|
2020-05-03 16:56:18 -04:00
|
|
|
onionshare:
|
2021-12-19 20:36:45 -05:00
|
|
|
source: ./desktop
|
2020-05-03 16:56:18 -04:00
|
|
|
plugin: python
|
2022-10-09 10:20:25 -04:00
|
|
|
build-packages:
|
|
|
|
- build-essential
|
|
|
|
- libssl-dev
|
|
|
|
- libffi-dev
|
|
|
|
- python3-dev
|
|
|
|
- python3-pip
|
|
|
|
- rustc
|
|
|
|
- cargo
|
2022-10-07 18:44:12 -04:00
|
|
|
build-environment:
|
|
|
|
- PATH: /usr/bin:$PATH
|
|
|
|
- PYTHONPATH: ""
|
2020-05-06 19:05:48 -04:00
|
|
|
stage-packages:
|
2020-11-04 01:33:26 -05:00
|
|
|
- libasound2
|
|
|
|
- libatk1.0-0
|
|
|
|
- libcairo2
|
|
|
|
- libcairo-gobject2
|
|
|
|
- libcups2
|
2020-05-06 19:05:48 -04:00
|
|
|
- libdrm2
|
2020-11-04 01:33:26 -05:00
|
|
|
- libegl1
|
2020-05-06 19:05:48 -04:00
|
|
|
- libfreetype6
|
2020-11-04 01:33:26 -05:00
|
|
|
- libgdk-pixbuf2.0-0
|
2020-05-06 19:05:48 -04:00
|
|
|
- libgl1
|
|
|
|
- libglvnd0
|
|
|
|
- libglx0
|
2020-11-04 00:48:22 -05:00
|
|
|
- libgtk-3-0
|
|
|
|
- libharfbuzz0b
|
|
|
|
- libjpeg8
|
|
|
|
- liblcms2-2
|
|
|
|
- libnspr4
|
|
|
|
- libnss3
|
2020-11-04 01:33:26 -05:00
|
|
|
- libodbc1
|
2020-05-06 19:05:48 -04:00
|
|
|
- libpango-1.0-0
|
|
|
|
- libpangocairo-1.0-0
|
2020-11-04 01:33:26 -05:00
|
|
|
- libpng16-16
|
|
|
|
- libpq5
|
|
|
|
- libpulse-mainloop-glib0
|
2020-11-04 00:48:22 -05:00
|
|
|
- librsvg2-2
|
2020-11-04 01:33:26 -05:00
|
|
|
- libspeechd2
|
2020-05-06 19:05:48 -04:00
|
|
|
- libwayland-client0
|
|
|
|
- libwayland-cursor0
|
|
|
|
- libwayland-egl1
|
2020-11-04 00:48:22 -05:00
|
|
|
- libwayland-server0
|
2020-11-04 01:33:26 -05:00
|
|
|
- libx11-6
|
|
|
|
- libx11-xcb1
|
|
|
|
- libxau6
|
|
|
|
- libxcb1
|
|
|
|
- libxcb-glx0
|
|
|
|
- libxcb-icccm4
|
|
|
|
- libxcb-image0
|
|
|
|
- libxcb-keysyms1
|
2020-11-04 00:48:22 -05:00
|
|
|
- libxcb-render0
|
2020-11-04 01:33:26 -05:00
|
|
|
- libxcb-render-util0
|
2020-11-04 00:48:22 -05:00
|
|
|
- libxcb-shm0
|
2020-11-04 01:33:26 -05:00
|
|
|
- libxcb-sync1
|
2020-11-04 00:48:22 -05:00
|
|
|
- libxcb-xfixes0
|
2020-11-04 01:33:26 -05:00
|
|
|
- libxcb-xinerama0
|
|
|
|
- libxcb-xkb1
|
|
|
|
- libxcomposite1
|
|
|
|
- libxcursor1
|
|
|
|
- libxdamage1
|
|
|
|
- libxdmcp6
|
|
|
|
- libxext6
|
|
|
|
- libxfixes3
|
|
|
|
- libxi6
|
|
|
|
- libxkbcommon0
|
|
|
|
- libxkbcommon-x11-0
|
2020-05-06 19:05:48 -04:00
|
|
|
- libxml2
|
2020-11-04 01:33:26 -05:00
|
|
|
- libxrandr2
|
|
|
|
- libxrender1
|
2020-11-04 00:48:22 -05:00
|
|
|
- libxslt1.1
|
2020-11-04 01:33:26 -05:00
|
|
|
- libxtst6
|
2021-09-12 21:45:44 -04:00
|
|
|
- qtwayland5
|
2023-09-05 23:42:47 -04:00
|
|
|
- libgstreamer1.0-0
|
|
|
|
- libgstreamer1.0-dev
|
|
|
|
- libgstreamer-gl1.0-0
|
|
|
|
- libgstreamer-plugins-base1.0-0
|
|
|
|
- libmysqlclient21
|
|
|
|
- libxcb-cursor0
|
|
|
|
- libxkbfile1
|
2022-10-09 10:20:25 -04:00
|
|
|
override-pull: |
|
2023-09-05 23:42:47 -04:00
|
|
|
craftctl default
|
2022-10-09 15:17:40 -04:00
|
|
|
rm pyproject.toml poetry.lock
|
|
|
|
cat > requirements.txt << EOF
|
2022-10-09 15:40:13 -04:00
|
|
|
# onionshare_cli
|
|
|
|
click
|
2023-09-05 18:45:04 -04:00
|
|
|
flask==2.3.2
|
|
|
|
flask-compress==1.13
|
|
|
|
flask-socketio==5.3.4
|
2022-10-09 15:40:13 -04:00
|
|
|
psutil
|
|
|
|
pysocks
|
|
|
|
requests[socks]
|
|
|
|
unidecode
|
|
|
|
urllib3
|
|
|
|
eventlet
|
|
|
|
setuptools
|
|
|
|
pynacl
|
|
|
|
colorama
|
|
|
|
gevent-websocket
|
|
|
|
stem==1.8.1
|
2023-05-29 01:55:40 -04:00
|
|
|
waitress
|
2023-09-05 18:45:04 -04:00
|
|
|
werkzeug==2.3.4
|
2022-10-09 15:40:13 -04:00
|
|
|
# onionshare
|
2023-09-05 18:45:04 -04:00
|
|
|
PySide6==6.5.2
|
2022-10-09 15:17:40 -04:00
|
|
|
qrcode
|
2023-09-05 18:45:04 -04:00
|
|
|
packaging
|
2022-10-09 15:17:40 -04:00
|
|
|
EOF
|
2022-10-06 12:14:05 -04:00
|
|
|
override-build: |
|
2023-09-05 23:42:47 -04:00
|
|
|
python3 -m venv $CRAFT_PART_INSTALL
|
|
|
|
. $CRAFT_PART_INSTALL/bin/activate
|
2022-10-09 10:20:25 -04:00
|
|
|
pip install -U pip setuptools wheel
|
2022-10-09 16:38:53 -04:00
|
|
|
pip install -U -r requirements.txt
|
2022-10-09 15:17:40 -04:00
|
|
|
pip install -U ../../onionshare-cli/src
|
|
|
|
pip install -U .
|
2022-10-09 10:20:25 -04:00
|
|
|
deactivate
|
2023-09-05 23:42:47 -04:00
|
|
|
sed -i 's|'$CRAFT_PART_INSTALL'/bin/python3|/usr/bin/env python3|g' $CRAFT_PART_INSTALL/bin/onionshare
|
|
|
|
sed -i 's|'$CRAFT_PART_INSTALL'/bin/python3|/usr/bin/env python3|g' $CRAFT_PART_INSTALL/bin/onionshare-cli
|
2021-02-21 20:13:15 -05:00
|
|
|
after: [onionshare-cli]
|
2020-11-04 00:48:22 -05:00
|
|
|
|
2020-05-03 16:56:18 -04:00
|
|
|
tor:
|
2023-12-29 02:41:35 -05:00
|
|
|
source: https://dist.torproject.org/tor-0.4.8.9.tar.gz
|
|
|
|
source-checksum: sha256/59bb7d8890f6131b4ce5344f3dcea5deb2182b7f4f10ff0cb4e4d81f11b2cf65
|
2020-05-03 16:56:18 -04:00
|
|
|
source-type: tar
|
|
|
|
plugin: autotools
|
2022-07-04 20:30:09 -04:00
|
|
|
autotools-configure-parameters:
|
2023-09-05 23:42:47 -04:00
|
|
|
- "--with-libevent-dir=$CRAFT_PART_INSTALL/../../libevent/install/usr/local"
|
2020-05-03 16:56:18 -04:00
|
|
|
build-packages:
|
|
|
|
- libssl-dev
|
|
|
|
- zlib1g-dev
|
|
|
|
after: [libevent]
|
2021-08-22 16:21:09 -04:00
|
|
|
|
2020-05-03 16:56:18 -04:00
|
|
|
libevent:
|
2020-11-04 00:48:22 -05:00
|
|
|
source: https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
|
|
|
|
source-checksum: sha256/92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
|
2020-05-03 16:56:18 -04:00
|
|
|
source-type: tar
|
|
|
|
plugin: autotools
|
|
|
|
|
|
|
|
obfs4:
|
|
|
|
plugin: go
|
2022-10-03 18:34:48 -04:00
|
|
|
build-snaps:
|
2022-10-06 12:14:05 -04:00
|
|
|
- go/latest/stable
|
2022-07-04 18:08:58 -04:00
|
|
|
source: https://gitlab.com/yawning/obfs4.git
|
2020-05-03 16:56:18 -04:00
|
|
|
source-type: git
|
2022-10-17 21:15:01 -04:00
|
|
|
source-tag: obfs4proxy-0.0.14
|
2021-11-14 14:08:00 -05:00
|
|
|
|
|
|
|
snowflake-client:
|
|
|
|
plugin: go
|
2022-10-03 18:34:48 -04:00
|
|
|
build-snaps:
|
2022-10-06 12:14:05 -04:00
|
|
|
- go/latest/stable
|
2024-02-13 02:28:04 -05:00
|
|
|
source: https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
|
2021-11-14 14:08:00 -05:00
|
|
|
source-type: git
|
2023-12-29 02:41:35 -05:00
|
|
|
source-tag: v2.8.1
|
2021-11-14 20:52:40 -05:00
|
|
|
organize:
|
|
|
|
bin/client: bin/snowflake-client
|
2021-11-14 14:08:00 -05:00
|
|
|
|
2021-11-14 20:52:40 -05:00
|
|
|
meek-client:
|
|
|
|
plugin: go
|
2022-10-03 18:34:48 -04:00
|
|
|
build-snaps:
|
2022-10-06 12:14:05 -04:00
|
|
|
- go/latest/stable
|
2024-02-13 07:03:51 -05:00
|
|
|
source: https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/meek.git
|
2021-11-14 20:52:40 -05:00
|
|
|
source-type: git
|
2023-09-05 18:45:04 -04:00
|
|
|
source-tag: v0.38.0
|
2022-07-04 18:17:20 -04:00
|
|
|
override-build: |
|
|
|
|
cd meek-client
|
2022-10-02 19:46:27 -04:00
|
|
|
mkdir -p /build/onionshare/meek-client/install/bin
|
|
|
|
go build -o /build/onionshare/meek-client/install/bin/meek-client ./...
|