diff --git a/.snapcraft/travis_snapcraft.cfg b/.snapcraft/travis_snapcraft.cfg new file mode 100644 index 00000000..dcb4a4cc Binary files /dev/null and b/.snapcraft/travis_snapcraft.cfg differ diff --git a/.travis.yml b/.travis.yml index 37322896..013169e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,20 @@ language: node_js node_js: - - 'stable' - - 'lts/*' - -script: npm run lint && npm run test + - stable + - lts/* +script: + - 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 diff --git a/snap/gui/boostnote.desktop b/snap/gui/boostnote.desktop new file mode 100755 index 00000000..0d97116a --- /dev/null +++ b/snap/gui/boostnote.desktop @@ -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; diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..b7c3157d --- /dev/null +++ b/snap/snapcraft.yaml @@ -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]