1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-11 08:46:20 +00:00

Merge pull request #986 from asmsuechan/snapcraft

Snapcraft
This commit is contained in:
SuenagaRyota
2017-10-16 14:07:20 +09:00
committed by GitHub
4 changed files with 75 additions and 4 deletions

Binary file not shown.

View File

@@ -1,6 +1,20 @@
language: node_js language: node_js
node_js: node_js:
- 'stable' - stable
- 'lts/*' - lts/*
script:
script: npm run lint && npm run test - npm run lint && npm run test
- 'if [[ ${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} = "master" ]]; then npm install -g grunt npm@5.2 && grunt pre-build; fi'
after_success:
- openssl aes-256-cbc -K $encrypted_440d7f9a3c38_key -iv $encrypted_440d7f9a3c38_iv
-in .snapcraft/travis_snapcraft.cfg -out .snapcraft/snapcraft.cfg -d
sudo: required
services:
- docker
deploy:
'on':
branch: master
provider: script
script: if [ ${TRAVIS_NODE_VERSION} = "stable" ];then docker run -v $(pwd):$(pwd) -t snapcore/snapcraft sh -c "apt update -qq
&& cd $(pwd) && snapcraft && snapcraft push *.snap --release edge"; fi
skip_cleanup: true

9
snap/gui/boostnote.desktop Executable file
View File

@@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=Boostnote
Comment=A note-taking app for programmers
Exec=$SNAP/etc/boostnote/Boostnote
Icon=resources/app.png
MimeType=image/x-foo;
NotShowIn=KDE;

48
snap/snapcraft.yaml Normal file
View File

@@ -0,0 +1,48 @@
name: boostnote
version: '0.1'
summary: A note-taking app for programmers
description: |
Boostnote is an open source note-taking app made for programmers just like you. https://boostnote.io
https://github.com/BoostIO/Boostnote
grade: stable
confinement: strict
apps:
asmstnote:
command: desktop-launch $SNAP/etc/boostnote/Boostnote
plugs:
- browser-support
- network
- unity7
- gsettings
parts:
src:
plugin: nodejs
source: .
deps:
plugin: nil
stage-packages:
- libgconf-2-4
- libnss3
- libxss1
- fontconfig-config
desktop-integration:
plugin: nil
stage-packages:
- libappindicator1
- libdbusmenu-glib4
- libnotify4
- libunity9
launcher:
plugin: dump
source: .
stage:
- etc/boostnote
organize:
dist/Boostnote-linux-x64: etc/boostnote
after: [desktop-glib-only]