Skip to content

Commit 07c0982

Browse files
authored
Merge pull request #986 from asmsuechan/snapcraft
Snapcraft
2 parents 2f9e4b3 + 89dba14 commit 07c0982

File tree

4 files changed

+75
-4
lines changed

4 files changed

+75
-4
lines changed

.snapcraft/travis_snapcraft.cfg

2.41 KB
Binary file not shown.

.travis.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
language: node_js
22
node_js:
3-
- 'stable'
4-
- 'lts/*'
5-
6-
script: npm run lint && npm run test
3+
- stable
4+
- lts/*
5+
script:
6+
- npm run lint && npm run test
7+
- 'if [[ ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} = "master" ]]; then npm install -g grunt [email protected] && grunt pre-build; fi'
8+
after_success:
9+
- openssl aes-256-cbc -K $encrypted_440d7f9a3c38_key -iv $encrypted_440d7f9a3c38_iv
10+
-in .snapcraft/travis_snapcraft.cfg -out .snapcraft/snapcraft.cfg -d
11+
sudo: required
12+
services:
13+
- docker
14+
deploy:
15+
'on':
16+
branch: master
17+
provider: script
18+
script: if [ ${TRAVIS_NODE_VERSION} = "stable" ];then docker run -v $(pwd):$(pwd) -t snapcore/snapcraft sh -c "apt update -qq
19+
&& cd $(pwd) && snapcraft && snapcraft push *.snap --release edge"; fi
20+
skip_cleanup: true

snap/gui/boostnote.desktop

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Type=Application
4+
Name=Boostnote
5+
Comment=A note-taking app for programmers
6+
Exec=$SNAP/etc/boostnote/Boostnote
7+
Icon=resources/app.png
8+
MimeType=image/x-foo;
9+
NotShowIn=KDE;

snap/snapcraft.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: boostnote
2+
version: '0.1'
3+
summary: A note-taking app for programmers
4+
description: |
5+
Boostnote is an open source note-taking app made for programmers just like you. https://boostnote.io
6+
https://github.com/BoostIO/Boostnote
7+
8+
grade: stable
9+
confinement: strict
10+
11+
apps:
12+
asmstnote:
13+
command: desktop-launch $SNAP/etc/boostnote/Boostnote
14+
plugs:
15+
- browser-support
16+
- network
17+
- unity7
18+
- gsettings
19+
20+
parts:
21+
src:
22+
plugin: nodejs
23+
source: .
24+
25+
deps:
26+
plugin: nil
27+
stage-packages:
28+
- libgconf-2-4
29+
- libnss3
30+
- libxss1
31+
- fontconfig-config
32+
33+
desktop-integration:
34+
plugin: nil
35+
stage-packages:
36+
- libappindicator1
37+
- libdbusmenu-glib4
38+
- libnotify4
39+
- libunity9
40+
41+
launcher:
42+
plugin: dump
43+
source: .
44+
stage:
45+
- etc/boostnote
46+
organize:
47+
dist/Boostnote-linux-x64: etc/boostnote
48+
after: [desktop-glib-only]

0 commit comments

Comments
 (0)