Skip to content

Commit

Permalink
Mate tamplate to JMSToolBox snap -- initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
gutleib committed Sep 2, 2021
1 parent 8928697 commit f6f18eb
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 19 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<h1 align="center">
<img src="https://avatars1.githubusercontent.com/u/29598503?v=3&s=256" alt="[Project]">
<img src="https://avatars.githubusercontent.com/u/36493107?s=200&v=4" alt="[Project]">
<br />
[Project]
JMSToolBox
</h1>

<p align="center"><b>This is the snap for [Project]</b>, <i>“Single-line elevator pitch for your amazing snap”</i>. It works on Ubuntu, Fedora, Debian, and other major Linux
distributions.</p>
<p align="center"><b>This is the snap for JMSToolBox</b>, <i>
JMSToolBox is an "Universal" JMS Client able to interact with the greatest number of Queue Managers/Queue providers on the market in a consistent manner.</p>

<!-- Uncomment and modify this when you are provided a build status badge
<p align="center">
Expand All @@ -26,7 +26,7 @@ distributions.</p>

## Install

sudo snap install my-snap-name
sudo snap install jmstoolbox-snap

<!-- Uncomment and modify this when your snap is available on the store
[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/my-snap-name)
Expand All @@ -39,14 +39,14 @@ distributions.</p>
![my-snap-name](screenshot.png?raw=true "my-snap-name")
-->

Snapcrafters ([join us](https://forum.snapcraft.io/t/join-snapcrafters/1325))
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.

- [x] Click the green "Use this template" button above to create a new repository based on this template
- [ ] Give the newly created repository a sensible name, like `godzilla-snap` if you're snapping the Godzilla software
- [ ] Update the description of the repository
- [x] Give the newly created repository a sensible name, like `godzilla-snap` if you're snapping the Godzilla software
- [x] Update the description of the repository
- [ ] 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**
Expand Down Expand Up @@ -80,7 +80,7 @@ If you have any questions, [post in the Snapcraft forum](https://forum.snapcraft
| [![Your Name](https://gravatar.com/avatar/bc0bced65e963eb5c3a16cab8b004431/?s=128)](https://github.com/yourname/) |
| :---: |
| [Your Name](https://github.com/yourname/) |
-->
-->

<!-- Uncomment and modify this when you have upstream contacts
## Upstream
Expand Down
61 changes: 51 additions & 10 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,56 @@
name: my-snap-name # you probably want to 'snapcraft register <name>'
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
name: jmstoolbox-snap # you probably want to 'snapcraft register <name>'
version: 'latest' # just for humans, typically '1.2+git' or '1.3.2'
summary: JMSToolBox is an Universal JMS Client able to interact with Queue Managers. # 79 char long summary
description: |
This is my-snap's description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
JMSToolBox is a JMS Client able to interact with Queue Managers/Queue providers, written in Java. Browse, Post, Remove, Move messages to/from Queues and Topics
confinement: devmode # use 'strict' once you have the right plugs and slots

parts:
my-part:
#parts:
# my-part:
# See 'snapcraft plugins'
plugin: nil
# plugin: nil

parts:
jmstoolbox:
after: [desktop-gtk2]
plugin: dump
source-type: tar
source: https://api.github.com/repos/jmstoolbox/jmstoolbox/tarball
build-packages:
- jshon
override-build: |
mkdir $SNAPCRAFT_PART_INSTALL/usr/share/JMSToolBox
mv app/* $SNAPCRAFT_PART_INSTALL/usr/share/JMSToolBox
VERSION=$(cat $SNAPCRAFT_PART_INSTALL/usr/share/JMSToolBox/resources/app/package.json | jshon -e version | sed 's/\"//g')
echo $VERSION > $SNAPCRAFT_STAGE/version
stage:
- usr/*
stage-packages:
- libasound2
- libatomic1
- libc++1
- libgconf2-4
- libnotify4
- libnspr4
- libnss3
- libpulse0
- libxss1
- libxtst6
- libdb5.3

desktop:
after: [jmstoolbox]
plugin: dump
source: .
override-build: |
mkdir $SNAPCRAFT_PART_INSTALL/usr $SNAPCRAFT_PART_INSTALL/usr/share $SNAPCRAFT_PART_INSTALL/usr/share/applications
mv jmstoolbox.desktop $SNAPCRAFT_PART_INSTALL/usr/share/applications
stage:
- usr/share/applications/JMSToolBox.desktop

apps:
postman:
command: bin/desktop-launch $SNAP/usr/share/JMSToolBox/JMSToolBox
desktop: usr/share/applications/JMSToolBox.desktop
plugs: [home, network, network-observe, x11, wayland, opengl, desktop, desktop-legacy, unity7, gsettings, browser-support]

0 comments on commit f6f18eb

Please sign in to comment.