Currently translated at 45.4% (5 of 11 strings) Translated using Weblate (Bulgarian) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/bg/ Added translation using Weblate (Interlingua) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (30 of 30 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (30 of 30 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (60 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (60 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (60 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (30 of 30 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (60 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (43 of 43 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (43 of 43 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (43 of 43 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (60 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (60 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (60 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (27 of 27 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (60 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (27 of 27 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (30 of 30 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (30 of 30 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (27 of 27 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (27 of 27 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (27 of 27 strings) Translated using Weblate (Japanese) Currently translated at 92.5% (25 of 27 strings) Translated using Weblate (Japanese) Currently translated at 77.7% (21 of 27 strings) Translated using Weblate (Japanese) Currently translated at 74.0% (20 of 27 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (30 of 30 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (30 of 30 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (30 of 30 strings) Translated using Weblate (Japanese) Currently translated at 93.3% (28 of 30 strings) Translated using Weblate (Japanese) Currently translated at 70.0% (21 of 30 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (60 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (60 of 60 strings) Translated using Weblate (Japanese) Currently translated at 95.0% (57 of 60 strings) Translated using Weblate (Japanese) Currently translated at 95.0% (57 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 85.0% (51 of 60 strings) Translated using Weblate (Japanese) Currently translated at 85.0% (51 of 60 strings) Translated using Weblate (Japanese) Currently translated at 46.6% (14 of 30 strings) Translated using Weblate (Japanese) Currently translated at 85.0% (51 of 60 strings) Translated using Weblate (Japanese) Currently translated at 43.3% (13 of 30 strings) Translated using Weblate (Japanese) Currently translated at 81.6% (49 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 76.6% (46 of 60 strings) Translated using Weblate (Japanese) Currently translated at 76.6% (46 of 60 strings) Translated using Weblate (Japanese) Currently translated at 75.0% (45 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 70.0% (42 of 60 strings) Translated using Weblate (Japanese) Currently translated at 66.6% (40 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 66.6% (40 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 65.0% (39 of 60 strings) Translated using Weblate (Japanese) Currently translated at 65.0% (39 of 60 strings) Translated using Weblate (Japanese) Currently translated at 61.6% (37 of 60 strings) Translated using Weblate (Japanese) Currently translated at 60.0% (36 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 58.3% (35 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (43 of 43 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (43 of 43 strings) Translated using Weblate (Japanese) Currently translated at 95.3% (41 of 43 strings) Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 40.0% (12 of 30 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Currently translated at 93.0% (40 of 43 strings) Translated using Weblate (Japanese) Currently translated at 40.0% (12 of 30 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 81.3% (35 of 43 strings) Translated using Weblate (Japanese) Currently translated at 81.3% (35 of 43 strings) Translated using Weblate (Japanese) Currently translated at 81.3% (35 of 43 strings) Translated using Weblate (Japanese) Currently translated at 81.3% (35 of 43 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 40.0% (12 of 30 strings) Translated using Weblate (Japanese) Currently translated at 40.0% (12 of 30 strings) Translated using Weblate (Japanese) Currently translated at 40.0% (12 of 30 strings) Translated using Weblate (Japanese) Currently translated at 40.0% (12 of 30 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 81.3% (35 of 43 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 81.3% (35 of 43 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Currently translated at 48.1% (13 of 27 strings) Translated using Weblate (Japanese) Currently translated at 48.1% (13 of 27 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (9 of 9 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (2 of 2 strings) Translated using Weblate (Japanese) Currently translated at 81.3% (35 of 43 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (11 of 11 strings) Translated using Weblate (Japanese) Currently translated at 100.0% (54 of 54 strings) Translated using Weblate (Japanese) Currently translated at 40.0% (12 of 30 strings) Translated using Weblate (Japanese) Currently translated at 50.0% (30 of 60 strings) Translated using Weblate (Japanese) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/ Translated using Weblate (Spanish) Currently translated at 100.0% (43 of 43 strings) Translated using Weblate (Albanian) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/sq/ Translated using Weblate (Persian) Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fa/ Update RELEASE.md Co-authored-by: 109247019824 <stoyan@gmx.com> Co-authored-by: Besnik Bleta <besnik@programeshqip.org> Co-authored-by: Danial Behzadi <dani.behzi@ubuntu.com> Co-authored-by: Hosted Weblate <hosted@weblate.org> Co-authored-by: Saptak Sengupta <saptak013@gmail.com> Co-authored-by: Software In Interlingua <softinterlingua@gmail.com> Co-authored-by: Suguru Hirahara <shirahara@users.noreply.hosted.weblate.org> Co-authored-by: gallegonovato <fran-carro@hotmail.es> Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-advanced/ja/ Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-develop/ja/ Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-features/ja/ Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-help/ja/ Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-index/ja/ Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/es/ Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-install/ja/ Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-security/bg/ Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-security/ja/ Translate-URL: https://hosted.weblate.org/projects/onionshare/doc-tor/ja/ Translation: OnionShare/Doc - Advanced Translation: OnionShare/Doc - Develop Translation: OnionShare/Doc - Features Translation: OnionShare/Doc - Help Translation: OnionShare/Doc - Index Translation: OnionShare/Doc - Install Translation: OnionShare/Doc - Security Translation: OnionShare/Doc - Tor
13 KiB
OnionShare Release Process
Unless you're a core OnionShare developer making a release, you'll probably never need to follow it.
Preparing the release
Update the version in these places
cli/pyproject.toml
cli/onionshare_cli/resources/version.txt
desktop/pyproject.toml
desktop/setup.py
desktop/org.onionshare.OnionShare.appdata.xml
docs/source/conf.py
(version
at the top, and theversions
list too)snap/snapcraft.yaml
You also must edit these files
desktop/org.onionshare.OnionShare.appdata.xml
should have the correct release date, and links to correct screenshotsCHANGELOG.md
should be updated to include a list of all major changes since the last release
Update dependencies
Check cli/pyproject.toml
to see if any hard-coded versions should be updated. Then, update the dependencies like this:
cd cli
poetry update
cd ..
If you update flask-socketio
, ensure that you also update the socket.io.min.js file to a version that is supported by the updated version of flask-socketio
.
Check desktop/pyproject.toml
to see if any hard-coded versions should be updated. Then, update the dependencies like this:
cd desktop
poetry update
cd ..
Update the docs dependencies like this:
cd docs
poetry update
cd ..
Update the versions of meek
, obfs4proxy
, and snowflake
in the desktop/scripts/build-pt-*
scripts, both the bash and PowerShell scripts. You can find the latest versions by looking at the tags in their git repos: meek, obfs4proxy, snowflake.
Update the documentation
- Update all of the documentation in
docs
to cover new features, including taking new screenshots if necessary
Finalize localization
- Merge all the translations from weblate:
git remote add weblate https://hosted.weblate.org/projects/onionshare/translations/ git pull weblate main
- In
docs
runpoetry run ./check-weblate.py [API_KEY]
to see which translations are >90% in the app and docs - Edit
cli/onionshare_cli/settings.py
, make sureself.available_locales
lists only locales that are >90% translated - From the
desktop
folder in the virtual env, run./scripts/countries-update-list.py
to make sure the localized country list for censorship circumvention is available in all available languages - Edit
docs/source/conf.py
, make surelanguages
lists only languages that are >90% translated - Edit
docs/build.sh
and make sureLOCALES=
lists the same languages as above, indocs/source/conf.py
- Make sure the latest documentation is built and committed:
cd docs poetry install poetry run ./build.sh
Make sure Snapcraft packaging works
In snap/snapcraft.yaml
:
- The
tor
,libevent
,obfs4
,snowflake-client
, andmeek-client
parts should be updated if necessary - In the
onionshare
part, in theoverride-pull
section, all of the dependencies in therequirements.txt
file should match the dependencies listed incli/pyproject.toml
anddesktop/pyproject.toml
, with the exception of PySide2
To test locally:
- Install snapcraft with:
sudo snap install snapcraft --classic
- Build snap with:
snapcraft
- Install with:
sudo snap install ./onionshare_${VERSION}_amd64.snap --devmode
To test in the edge branch:
With every commit to the main
branch, Snapcraft's CI should trigger builds. Make sure the builds all succeeded at https://snapcraft.io/onionshare/builds (you must be logged in), and test them. You can install them with: snap install onionshare --edge
Make sure the Flatpak packaging works
In flatpak/org.onionshare.OnionShare.yaml
:
- Update
tor
andlibevent
- Update
obfs4proxy
,meek-client
, andsnowflake-client
dependencies, if necessary using this tool:
Merge the output of each of these commands into the Flatpak manifest.cd flatpak-builder-tools/go # For each these, incorporate the output into the Flatpak manifest # Make sure to update the version numbers ./flatpak-go-deps.py git.torproject.org/pluggable-transports/meek.git/meek-client@v0.38.0 ./flatpak-go-deps.py git.torproject.org/pluggable-transports/snowflake.git/client@v2.6.0 ./flatpak-go-deps.py gitlab.com/yawning/obfs4.git/obfs4proxy@obfs4proxy-0.0.14
- Update the Python dependencies using this tool along with
flatpak/poetry-to-requirements.py
:
Now, mergecd flatpak-build-tools/pip # get onionshare-cli dependencies ./flatpak-pip-generator $(../../onionshare/flatpak/poetry-to-requirements.py ../../onionshare/cli/pyproject.toml) ../flatpak-json2yaml.py ./python3-modules.json mv python3-modules.yml onionshare-cli.yaml # get onionshare dependencies ./flatpak-pip-generator $(../../onionshare/flatpak/poetry-to-requirements.py ../../onionshare/desktop/pyproject.toml | grep -v PySide6) ../flatpak-json2yaml.py ./python3-modules.json mv python3-modules.yml onionshare-desktop.yaml
onionshare-desktop.yaml
andonionshare-cli.yaml
into the Flatpak manifest. - Build and test the Flatpak package to ensure it works:
flatpak-builder build --force-clean --jobs=$(nproc) --install-deps-from=flathub --install --user flatpak/org.onionshare.OnionShare.yaml flatpak run org.onionshare.OnionShare
Create a signed git tag
- There must be a PGP-signed git tag for the version, e.g. for OnionShare 2.1, the tag must be
v2.1
The first step for the Linux, macOS, and Windows releases is the same.
Verify the release git tag:
git fetch
git tag -v v$VERSION
If the tag verifies successfully, check it out:
git checkout v$VERSION
Making the release
Linux Snapcraft release
From https://snapcraft.io/onionshare/releases (you must be logged in), promote the release from latest/edge to latest/beta, then latest/candidate, then latest/stable.
Linux Flatpak release
- Create a new branch in https://github.com/flathub/org.onionshare.OnionShare for the version
- Overwrite the manifest in the flathub repo with the updated version in flatpak/org.onionshare.OnionShare.yaml
- Edit it so that the sources for
onionshare
andonionshare-cli
are the GitHub repo, with the correct git tag, rather than the local filesystem - Make a PR in the flathub repo, and merge it to make a release
Windows release
Create a Windows 11 VM, and set it up like this:
- Install git for Windows.
- Install the latest version of 3.11 from python.org.
- Install Microsoft C++ Build Tools, making sure to check "Desktop development with C++".
- Download and install 7-Zip (x64). Add
C:\Program Files\7-Zip
to your path. - Download and install gpg4win. Add
C:\Program Files (x86)\GnuPG\bin
to your path. - Install the Windows SDK from here: https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/.
- Go to https://dotnet.microsoft.com/download/dotnet-framework and download and install .NET Framework 3.5 SP1 Runtime. I downloaded
dotnetfx35.exe
. - Go to https://wixtoolset.org/docs/wix3/ and download and install WiX toolset. I downloaded
wix311.exe
. AddC:\Program Files (x86)\WiX Toolset v3.11\bin
to the path.
Clone the OnionShare git repo and checkout the release tag.
If you've used this git repo for a previous release, clean it up:
- In the
onionshare/desktop
folder, deletebuild
anddist
from the previous build. - Delete the poetry environment. You can find its name by run
poetry env list
, and then you can delete it withpoetry env remove [ENV_NAME]
.
Install Poetry and deps. Open a Developer PowerShell for VS window, change to the onionshare
folder, and run:
cd desktop
pip install poetry
poetry install
Github Actions will build the binaries. Find the Github Actions build
workflow, switch to the summary tab, download win64-build.zip
, and copy it to the Windows packaging environment.
Extract win64-build.zip
. Run:
poetry run python .\scripts\build-windows.py codesign [path]
poetry run python .\scripts\build-windows.py package [path]
This will create:
desktop/dist/OnionShare-win64-$VERSION.msi
macOS release
In order to make a universal2 binary, you must following these instructions using a Mac with Apple Silicon. To keep a clean environment, you can use VM.
Set up the VM like this:
- Install Homebrew
brew install create-dmg libiodbc
- Install the latest Python 3.12 from https://www.python.org/downloads/
- Install ARM64 version of Go from https://go.dev/dl/
- Install "Postgres.app with PostgreSQL 16 (Universal)" from https://postgresapp.com/downloads.html
Clone the OnionShare git repo and checkout the release tag.
If you've used this git repo for a previous release, clean it up:
cd desktop
rm -rf build dist
# Delete the old poetry environment
poetry env remove $(poetry env list | grep "(Activated)" | cut -d" " -f1)
Install and build dependencies:
cd desktop
python3 -m pip install poetry
/Library/Frameworks/Python.framework/Versions/3.12/bin/poetry install
/Library/Frameworks/Python.framework/Versions/3.12/bin/poetry run python ./scripts/get-tor.py macos
./scripts/build-pt-obfs4proxy.sh
./scripts/build-pt-snowflake.sh
./scripts/build-pt-meek.sh
Make the Apple Silicon app bundle:
/Library/Frameworks/Python.framework/Versions/3.12/bin/poetry run python ./setup-freeze.py bdist_mac
rm -rf build/OnionShare.app/Contents/Resources/lib
mv build/exe.macosx-10.9-universal2-3.12/lib build/OnionShare.app/Contents/Resources/
/Library/Frameworks/Python.framework/Versions/3.12/bin/poetry run python ./scripts/build-macos.py cleanup-build
The Apple Silicon app bundle will be in build
folder called OnionShare.app
.
Github Actions will build the Intel app bundle. Find the Github Actions build
workflow, switch to the summary tab, and download the mac-intel-build
artifact. Extract it, and you'll get the Intel OnionShare.app
folder.
Next, merge these two app bundles into a single universal2 app bundle:
poetry run ./scripts/macos-merge-universal.py [intel_app_path] [silicon_app_path] [universal2_app_path]
Finally, code sign and package the universal2 app bundle:
poetry run python ./scripts/build-macos.py codesign [universal2_app_path]
poetry run python ./scripts/build-macos.py package [universal2_app_path]
The will create dist/OnionShare-$VERSION.dmg
.
Now, notarize the release.
export APPLE_PASSWORD="changeme" # app-specific Apple ID password
export VERSION=$(cat ../cli/onionshare_cli/resources/version.txt)
# Notarize it
xcrun altool --notarize-app --primary-bundle-id "com.micahflee.onionshare" -u "micah@micahflee.com" -p "$APPLE_PASSWORD" --file dist/OnionShare-$VERSION.dmg
# Wait for it to get approved, check status with
xcrun altool --notarization-history 0 -u "micah@micahflee.com" -p "$APPLE_PASSWORD"
# After it's approved, staple the ticket
xcrun stapler staple dist/OnionShare-$VERSION.dmg
This will create desktop/dist/OnionShare-$VERSION.dmg
, signed and notarized.
Source package
To make a source package, run ./build-source.sh $TAG
, where $TAG
is the name of the signed git tag, e.g. v2.1
.
This will create dist/onionshare-$VERSION.tar.gz
.
Publishing the release
PGP signatures
After following all of the previous steps, gather these files:
onionshare_${VERSION}_amd64.snap
OnionShare.flatpak
(rename toOnionShare-$VERSION.flatpak
)OnionShare-win32-$VERSION.msi
OnionShare-win64-$VERSION.msi
OnionShare-$VERSION.dmg
onionshare-$VERSION.tar.gz
Create a PGP signature for each of these files, e.g:
gpg -a --detach-sign OnionShare-$VERSION.tar.gz
gpg -a --detach-sign [... and so on]
Create a release on GitHub:
- Match it to the version tag, put the changelog in description of the release
- Upload all 8 files (binary and source packages and their
.asc
signatures)
Update onionshare-cli on PyPi
cd cli
poetry install
poetry publish --build
Update Homebrew
- Make a PR to homebrew-cask to update the macOS version
Update onionshare.org
- Upload all 10 files to https://onionshare.org/dist/$VERSION/
- Update the onionshare-website repo:
- Edit
latest-version.txt
to match the latest version - Update the version number and download links
- Deploy to https://onionshare.org/
- Edit
Update docs.onionshare.org
- Upload everything from
docs/build/docs
to https://docs.onionshare.org/
Update the community
- Upload all 10 files to the OnionShare team Keybase filesystem
- Email the onionshare-dev mailing list announcing the release
- Blog, tweet, toot, etc.