diff --git a/README.md b/README.md index d0a78b3..de9a829 100644 --- a/README.md +++ b/README.md @@ -1,49 +1,41 @@
This is the snap for [Project], "Single-line elevator pitch for your amazing snap". It works on Ubuntu, Fedora, Debian, and other major Linux +
This is the snap for [i2pd], "Invisible Internet Protocol Daemon". It works on Ubuntu, Fedora, Debian, and other major Linux distributions.
- ## Install sudo apt install snapd-xdg-open - sudo snap install my-snap-name + sudo snap install i2pd ([Don't have snapd installed?](https://snapcraft.io/docs/core/install)) - -Published for with :gift_heart: by Snapcrafters
Published for :penguin: with :gift_heart: by Snapcrafters
## Remaining tasks Snapcrafters ([join us](https://forum.snapcraft.io/t/join-snapcrafters/1325)) are working to land snap install documentation and the [snapcraft.yaml](https://github.com/snapcrafters/fork-and-rename-me/blob/master/snap/snapcraft.yaml) -upstream so [Project] can authoritatively publish future releases. +upstream so [i2pd] can authoritatively publish future releases. - [x] Fork the [Snapcrafters template](https://github.com/snapcrafters/fork-and-rename-me) repository to your own GitHub account. - If you have already forked the Snapcrafter template to your account and want to create another snap, you'll need to use GitHub's [Import repository](https://github.com/new/import) feature because you can only fork a repository once. - - [ ] Rename the forked Snapcrafters template repository - - [ ] Update logos and references to `[Project]` and `[my-snap-name]` + - [x] Rename the forked Snapcrafters template repository + - [x] Update logos and references to `[Project]` and `[my-snap-name]` - [ ] Create a snap that runs in `devmode` - [ ] Register the snap in the store, **using the preferred upstream name** - - [ ] Add a screenshot to this `README.md` + - [x] Add a screenshot to this `README.md` - [ ] Publish the `devmode` snap in the Snap store edge channel - [ ] Add install instructions to this `README.md` - [ ] Update snap store metadata, icons and screenshots - - [ ] Convert the snap to `strict` confinement, or `classic` confinement if it qualifies + - [x] Convert the snap to `strict` confinement, or `classic` confinement if it qualifies - [ ] Publish the confined snap in the Snap store beta channel - [ ] Update the install instructions in this `README.md` - [ ] Post a call for testing on the [Snapcraft Forum](https://forum.snapcraft.io) - [link]() @@ -64,14 +56,5 @@ If you have any questions, [post in the Snapcraft forum](https://forum.snapcraft ## The Snapcrafters -| [](https://github.com/yourname/) | -| :---: | -| [Your Name](https://github.com/yourname/) | +[l-n-s](https://github.com/l-n-s/) - diff --git a/i2pd-logo.png b/i2pd-logo.png new file mode 100644 index 0000000..9a2f740 Binary files /dev/null and b/i2pd-logo.png differ diff --git a/snap/i2pd-wrapper b/snap/i2pd-wrapper new file mode 100755 index 0000000..d8cd2e6 --- /dev/null +++ b/snap/i2pd-wrapper @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ ! -d "$SNAP_USER_DATA/.i2pd" ]; then + mkdir $SNAP_USER_DATA/.i2pd/ + cp -R $SNAP/certificates $SNAP_USER_DATA/.i2pd/ + cp -R $SNAP/i2pd.conf $SNAP_USER_DATA/.i2pd/ +fi + +exec "$SNAP/bin/i2pd" "$@" diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 0527b79..3479c27 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,15 +1,52 @@ -name: my-snap-name # you probably want to 'snapcraft register