From cfd13139e09fb09acca1ba370589ae12d4ef8e3d Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Sun, 20 Aug 2017 21:25:56 +0900 Subject: [PATCH 1/5] snapcraft init --- snap/snapcraft.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..8b613cfa --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,16 @@ +name: my-snap-name # you probably want to 'snapcraft register ' +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 +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. + +grade: devel # must be 'stable' to release into candidate/stable channels +confinement: devmode # use 'strict' once you have the right plugs and slots + +parts: + my-part: + # See 'snapcraft plugins' + plugin: nil From e48540713d66082de2ff22452184414785d8e075 Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Mon, 16 Oct 2017 13:50:46 +0900 Subject: [PATCH 2/5] Edit snapcraft.yaml to snap Boostnote --- snap/snapcraft.yaml | 54 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 43 insertions(+), 11 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 8b613cfa..b7c3157d 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,16 +1,48 @@ -name: my-snap-name # you probably want to 'snapcraft register ' -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: boostnote +version: '0.1' +summary: A note-taking app for programmers 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. + Boostnote is an open source note-taking app made for programmers just like you. https://boostnote.io + https://github.com/BoostIO/Boostnote -grade: devel # must be 'stable' to release into candidate/stable channels -confinement: devmode # use 'strict' once you have the right plugs and slots +grade: stable +confinement: strict + +apps: + asmstnote: + command: desktop-launch $SNAP/etc/boostnote/Boostnote + plugs: + - browser-support + - network + - unity7 + - gsettings parts: - my-part: - # See 'snapcraft plugins' + 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] From 43110f8f2a01c73ddaa64d89ed027ef82fc37cef Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Mon, 16 Oct 2017 13:52:13 +0900 Subject: [PATCH 3/5] Add boostnote.desktop --- snap/gui/boostnote.desktop | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 snap/gui/boostnote.desktop 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; From aa71b4c1b8776bf02677de7732168a2af0126d3a Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Mon, 16 Oct 2017 13:52:42 +0900 Subject: [PATCH 4/5] Change to snap on travisCI --- .snapcraft/travis_snapcraft.cfg | Bin 0 -> 2464 bytes .travis.yml | 22 ++++++++++++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .snapcraft/travis_snapcraft.cfg diff --git a/.snapcraft/travis_snapcraft.cfg b/.snapcraft/travis_snapcraft.cfg new file mode 100644 index 0000000000000000000000000000000000000000..dcb4a4ccae17a564ffef1197a765500e5ec3ac72 GIT bin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L}*=$5TfSd*I#0_W6T*e!iZJ1;jal4%2iJLzCo(4T3j{zq!^5%EHR z@(Odt$o=BFqS7=11Fz*5Ed8xFsWf=73L(I^8sJW>)QmTVANJ?DTK?XxgW~axVqT5J z(pL@%_eHzjT;yhT15JhOc3&E#$LFSSfq#FQl!$X9>idf+b34d>bi71|O4lGjo!DFp z;?AhVQ`}-!ra1at^6X#8TH|K$LrJ6<_U}PH*EhX3_pW~I?nk2mf{o!ar5UTr)UZgrbk*aL9k+BY$Dc+wJNHd*yugT-m?UFo1M zEJ@^$j0&_!=AX>NPj(S{qf``~HG{UDM-UX#*MN@7d(bD}emuVb@?=5b=gYfU1}0*} zi|-)ur|r23;Ua7%U)RL(Q1rrH5|4gDm&D7q-!P}zVAX5icWK z;dIg2Uog0d+^{#%wfzSiMDD~ri3Q9{4C!~cIbN@e2TmK#7u4PgoE$)Y`&M`A_kOIC_xolub48ghIr! z97**^E}dMAB*kybJ9zdK^KfSOJ@z#Ji-8pl68rf6B+x7!HTD-=IoxG)(p{3o92^4GbXlWe=ylT+ZN~JR%l9}a+Yu5c@IQ16066Zx z)C)8;iGBNj_+>Qs+!CK{7wvbh_d?FcL8q~2ozGJT-Nkm3l#z)SQ0w&$bB*9me)+qG z7hc4UAaZ>e^Wo^nzonJHuI40C2}^xJ?~`Nbz!xU(`wG+TWS%nd^93)XAnC6Iok8Dr zwu_(0Z}NE&G}MBhN(WZf#kWM->`X;g%zL0~<1W)PkY+mM(0-J11Xuc`O3m}eM%2S4 z*ddnhhm<60QCV=^;RT`4Uw@lGdXlQDWtn4l$!lY?G^$DitfrL$smN^&6q2pmUOUG9 zINZT1s1r>uoT)n>GsItt5$G#8o<|3_+BKDX*QZy+1 Date: Mon, 16 Oct 2017 14:03:19 +0900 Subject: [PATCH 5/5] Change to run build script only master branch --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index bcceed02..013169e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,7 @@ node_js: - lts/* script: - npm run lint && npm run test - - npm install -g grunt npm@5.2 && grunt pre-build + - '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