From 79f455c09aa7139a2bfa8710c47a2f9047ca2749 Mon Sep 17 00:00:00 2001 From: Ram Lmn Date: Sun, 24 Sep 2017 23:21:28 +0530 Subject: [PATCH] Add linux support --- README.md | 40 +++++++++++------- media/logo.svg | 12 ++++++ package.json | 16 +++++-- src/build-assets/icon/png/128x128.png | Bin 0 -> 2798 bytes .../build-assets/icon/win/win.ico | Bin src/main/main.js | 3 +- src/renderer/components/clippy-app.html | 13 +++++- src/renderer/stylesheets/main.css | 1 - 8 files changed, 61 insertions(+), 24 deletions(-) create mode 100644 media/logo.svg create mode 100644 src/build-assets/icon/png/128x128.png rename media/icon/clip-icon.ico => src/build-assets/icon/win/win.ico (100%) diff --git a/README.md b/README.md index 9ec7360..d316561 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,38 @@ +

+
+ Clippy +
+
+

+ # Clippy -A clipboard manager built on [electron](https://github.com/electron/electron/), using [WebComponents](https://developer.mozilla.org/en-US/docs/Web/Web_Components) +> A clipboard manager built on [electron](https://github.com/electron/electron/), using [WebComponents](https://developer.mozilla.org/en-US/docs/Web/Web_Components) ## Installation -> **Note:** Pre-built [binaries](https://github.com/ramlmn/electron-clippy/releases) are available for Windows only +_Linux, and Windows 7+ are supported (64-bit only)_ -Clone the repo and install dependencies -``` -$ git clone https://github.com/ramlmn/electron-clippy.git -$ cd electron-clippy -$ npm i -``` +### Linux +[**Download**](https://github.com/ramlmn/electron-clippy/releases/latest) the `.AppImage` or `.deb` file + +_The AppImage needs to be [made executable](http://discourse.appimage.org/t/how-to-make-an-appimage-executable/80) after download_ + +### Windows +[**Download**](https://github.com/ramlmn/electron-clippy/releases/latest) the `.exe` file -For running the application from console: +## Usage +By default the app would be running in the background and can be accessed by the keyboard shortcut: `Ctrl+Shift+V` + +## Dev +### Run ``` -$ npm start +$ npm install && npm start ``` -For building a binary: +### Build ``` $ npm run build ``` -The binary(for your platform) would be available in `dist` directory - -## Usage -The app is still in beta and doesn't have a feature to customize anything. -The app would be running in the system tray and can be accessed by the keyboard shortcut: `Ctrl+Shift+V` or `Cmd+Shift+V` +or check [`electron-builder` docs](https://www.electron.build/multi-platform-build) ## Acknowledgements * UI inspired from [Alfred app](https://www.alfredapp.com/) diff --git a/media/logo.svg b/media/logo.svg new file mode 100644 index 0000000..96ca895 --- /dev/null +++ b/media/logo.svg @@ -0,0 +1,12 @@ + + + + diff --git a/package.json b/package.json index cb0626d..5cf064f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clippy", - "version": "1.0.0-alpha.3", + "version": "1.0.0-alpha.4", "description": "A clipboard manager built on electron", "license": "MIT", "repository": "ramlmn/electron-clippy", @@ -18,10 +18,10 @@ "pack": "build --dir" }, "devDependencies": { - "electron": "^1.6.11", + "electron": "1.6.13", "electron-builder": "^19.8.0", "eslint": "^4.1.1", - "eslint-config-google": "^0.8.0", + "eslint-config-google": "^0.9.1", "eslint-plugin-html": "^3.0.0" }, "build": { @@ -32,8 +32,16 @@ "node_modules", "!(*.markdown|*.md|*.txt|.*|LICENSE|README|test)" ], + "linux": { + "category": "Productivity", + "icon": "src/build-assets/icon/png", + "target": [ + "AppImage", + "deb" + ] + }, "win": { - "icon": "media/icon/clip-icon.ico", + "icon": "src/build-assets/icon/win/win.ico", "target": [ "nsis" ] diff --git a/src/build-assets/icon/png/128x128.png b/src/build-assets/icon/png/128x128.png new file mode 100644 index 0000000000000000000000000000000000000000..d65023f0bf4de400d815b4da4fde5f2149f6c3ac GIT binary patch literal 2798 zcmVE zJ0ir;*7m_gvsthUQsX|gxX^5A*gpBE>_g|Fi9X~ZhO#b%NFUaWS$3p?>x5<5ph8BB zmpqkFfNK2B#(nvpmzuwVJ88MM`GbgGJtvL zRRFFs@WB$vwGseE0gOdr;UpPAAAG+HiCnRiWJVbAiV-9N?{6bWMTXx2V7P=ry_K$E zpqM#=R3z|005?5U#(ANPyj+Z`K`sLPYXBY-{0y}Mc+CDcr5OQOtN%!VI^GN82$$T7 z2C_@=djKpDd{YVmSYZD%@gq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+kC34LtjQvyhw;!OzcF&MFNO zyiHJZJl6ovclHQ=k>F<^EG-*_2$4nbjoHc?0|b-cI76rv?hD;)nc#C#g0Y2B1mGS8 zQoH-QNg=^^MWb3T<}<(uI8G5Se!iIl$f*sJ2)?G00LDxkAQB5F^Et*+;rVIqF(~a< zP7!<;TR&rJIs$Nw0<-tla;9+K=zN)LS3vM}TmMMDU*Cby@b>06*m#;ks3miDu>5;6S~}_gDLsR?_w9GO z*Quy1$J_6R@bfo+NbvJ38i|GfX!NE-X0Fs!*EIv3BghNUlcgO^6DZ>YO+TxJ1PNcS z{5Qu4HMId;_)QRR|2d?&)QjL}B!1!f)mw&1ykz!@y=SMc0r->CS$nowlzIG$%5vQk zya;}V-jBq>*UY?8D&(rX*9+9uAHnZFXtX^vytuH5zyD#u$uoCFQpSA0kqUh}_!2md z5Uwt5<9bgFcW*3P`h044A9qF{VW@A8;J*m{mkRlSROlUg&rbCKxXJsQ*VG1Zp)-i) zwi7vvN3*rDp2FN)ajv9cOV3=1@sHKL+YBZdwM$PfSLHDq+p2Eh{ z6c#_jWBUd3Q5+I zKBLh-N4fx2R}cblAA+7cAUOQhXr}NCZ$tf+`jXXt2nh;takc<+kMXw|9Ej zxWr{?c-K<~U?%86dhY?s3(WWT1BFiPc-8>S1VI2FQI}w-DAKcfuH;aX+kYMJl|>~c z(<^y|HGnD_+yu}{%-wJGMK^%T2pudp2>Q6Z8_;@c*B1s*m5Wya^!q4DRGzvTajLu% z#sEGuf@i>c&H!0P=wU`Em98Pdz>j$ayk`xdkt1{i=nxeAB!KZ^_VGd+AggLn%;5EL zggDYWtV|Xot1n3d @@ -34,6 +41,10 @@ } ready() { + if (process.platform === 'linux') { + this.classList.add('is-linux'); + } + window.addEventListener('load', this.init); // Critical key events diff --git a/src/renderer/stylesheets/main.css b/src/renderer/stylesheets/main.css index 66c96e3..b07fa5e 100644 --- a/src/renderer/stylesheets/main.css +++ b/src/renderer/stylesheets/main.css @@ -36,7 +36,6 @@ body { line-height: 1.5; flex-direction: column; background: transparent; - padding: 1em; } .panes-container {