mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Start making snap package pull from source tree instead of git
This commit is contained in:
parent
2da53ff571
commit
8ad8413454
2
.gitignore
vendored
2
.gitignore
vendored
@ -20,7 +20,7 @@ develop-eggs
|
||||
MANIFEST
|
||||
env
|
||||
onionshare-*.tar.gz
|
||||
snap/onionshare_*.snap
|
||||
onionshare_*.snap
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
|
44
BUILD.md
44
BUILD.md
@ -3,6 +3,8 @@
|
||||
* [Linux](#linux)
|
||||
* [Use newest software](#use-newest-software)
|
||||
* [Use package managers](#use-package-managers)
|
||||
* [Flatpak packaging](#flatpak-packaging)
|
||||
* [Snapcraft packaging](#snapcraft-packaging)
|
||||
* [macOS](#macos)
|
||||
* [Windows](#windows)
|
||||
* [Setting up your dev environment](#setting-up-your-dev-environment)
|
||||
@ -107,6 +109,48 @@ For ArchLinux: There is a PKBUILD available [here](https://www.archlinux.org/pac
|
||||
|
||||
If you find that these instructions don't work for your Linux distribution or version, consult the [Linux Distribution Support wiki guide](https://github.com/micahflee/onionshare/wiki/Linux-Distribution-Support), which might contain extra instructions.
|
||||
|
||||
### Flatpak packaging
|
||||
|
||||
See: https://github.com/micahflee/org.onionshare.OnionShare
|
||||
|
||||
### Snapcraft packaging
|
||||
|
||||
This folder contains files to build a [snap package](https://snapcraft.io/). First make sure you install `snap` and `snapcraft` (`snap install snapcraft --classic`).
|
||||
|
||||
To build the snap, cd to the `onionshare` folder and run:
|
||||
|
||||
```sh
|
||||
snapcraft
|
||||
snap install --devmode ./onionshare_*.snap
|
||||
```
|
||||
|
||||
See your installed snaps:
|
||||
|
||||
```sh
|
||||
snap list
|
||||
```
|
||||
|
||||
Run the OnionShare snap:
|
||||
|
||||
```sh
|
||||
/snap/bin/onionshare # CLI version
|
||||
/snap/bin/onionshare.onionshare-gui # GUI version
|
||||
```
|
||||
|
||||
Delete the OnionShare snap:
|
||||
|
||||
```sh
|
||||
snap remove onionshare
|
||||
```
|
||||
|
||||
#### Making a new release
|
||||
|
||||
In `snapcraft.yaml`:
|
||||
|
||||
- Update `version`
|
||||
- Update the `onionshare` part to use the correct tag
|
||||
- Update `Qt5`, `tor`, `libevent`, and `obfs4` dependencies, if necessary
|
||||
|
||||
## macOS
|
||||
|
||||
Install Xcode from the Mac App Store. Once it's installed, run it for the first time to set it up. Also, run this to make sure command line tools are installed: `xcode-select --install`. And finally, open Xcode, go to Preferences > Locations, and make sure under Command Line Tools you select an installed version from the dropdown. (This is required for installing Qt5.)
|
||||
|
@ -1,5 +1,5 @@
|
||||
// This script is here for convenience. Minify it and copy it into the
|
||||
// qt5 override-build section of snapcraft.yaml
|
||||
// qt5 override-build section of snap/snapcraft.yaml
|
||||
|
||||
function Controller() {
|
||||
installer.installationFinished.connect(proceed)
|
@ -1,37 +0,0 @@
|
||||
# Snap package
|
||||
|
||||
This folder contains files to build a [snap package](https://snapcraft.io/). First make sure you install `snap` and `snapcraft` (`snap install snapcraft --classic`).
|
||||
|
||||
To build the snap, cd to the `snap` folder and run:
|
||||
|
||||
```sh
|
||||
snapcraft
|
||||
snap install ./onionshare_*.snap
|
||||
```
|
||||
|
||||
See your installed snaps:
|
||||
|
||||
```sh
|
||||
snap list
|
||||
```
|
||||
|
||||
Run the OnionShare snap:
|
||||
|
||||
```sh
|
||||
/snap/bin/onionshare # CLI version
|
||||
/snap/bin/onionshare-gui # GUI version
|
||||
```
|
||||
|
||||
Delete the OnionShare snap:
|
||||
|
||||
```sh
|
||||
snap remove onionshare
|
||||
```
|
||||
|
||||
## Making a new release
|
||||
|
||||
In `snapcraft.yaml`:
|
||||
|
||||
- Update `version`
|
||||
- Update the `onionshare` part to use the correct tag
|
||||
- Update `Qt5`, `tor`, `libevent`, and `obfs4` dependencies, if necessary
|
@ -35,9 +35,7 @@ apps:
|
||||
|
||||
parts:
|
||||
onionshare:
|
||||
source: https://github.com/micahflee/onionshare.git
|
||||
source-type: git
|
||||
source-branch: 1111_snap
|
||||
source: .
|
||||
plugin: python
|
||||
python-version: python3
|
||||
python-packages:
|
||||
|
Loading…
Reference in New Issue
Block a user