Make snapcraft work

This commit is contained in:
Micah Lee 2022-01-17 12:56:39 -08:00
parent 9566e34a0b
commit 1385aa068f
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
3 changed files with 16 additions and 21 deletions

View file

@ -1,9 +1,9 @@
#!/usr/bin/env python3
# This file is used to build the Snapcraft and Flatpak packages
import setuptools
import os
with open(os.path.join("..", "cli", "onionshare_cli", "resources", "version.txt")) as f:
version = f.read().strip()
# The version must be hard-coded because Snapcraft won't have access to ../cli
version = "2.5"
setuptools.setup(
name="onionshare",