From 801cb3e9affb1c1e63adca780764b2ab70d3dd1a Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sat, 20 Jan 2018 14:50:54 +1300 Subject: [PATCH] Added build scripts --- LAYOUT.svg | 1 + README.md | 40 +++++----------------------------------- package.json | 13 ++++++++++++- 3 files changed, 18 insertions(+), 36 deletions(-) create mode 100644 LAYOUT.svg diff --git a/LAYOUT.svg b/LAYOUT.svg new file mode 100644 index 0000000..edd7deb --- /dev/null +++ b/LAYOUT.svg @@ -0,0 +1 @@ +ESCDOCUMENT1ZOOM RES2ZOOM 2X3ZOOM 4X4567890-+BACKSPACERESETTABQQUITWEREXPORT ITYUIIMPORT IOOPEN IMAP[DEC SIZE]INC SIZE|CAPSASDFFILL WITGHHIDEJKL;'ENTERFULLSCRESHIFTZBELOW LAXCOLORCABOVE LAVBNNEW IMAGM,ABOUT.INSPECT/CAPSLOCKCTRLCMDALTSPACECTRLPNFNALT \ No newline at end of file diff --git a/README.md b/README.md index 55a15a4..a5609ec 100644 --- a/README.md +++ b/README.md @@ -1,45 +1,15 @@ # Ronin -Ronin is a graphic design tool. +Ronin is a graphic design tool under development. -## Cursor +## Themes -- `shift drag`, drag content of layer. -- `alt drag`, erase. -- `alt shift click`, color pick. +Drag a .thm file on the window to install it. -### Special Input +## Controls -Include `$` in a query and click on the canvas to inject the cursor position in the query. - -- `$ click` inject a **Pos**. -- `$+ click` inject a **Pos**, and append `$+` for multiple positions. -- `$ shift click` inject a **Rect**. - -## Zoom - -- `1`, zoom **100%**. -- `2`, zoom **200%**. -- `3`, zoom **400%**. - -## Commander - -- `Tab`, display input. - -## Layers - -- `z`, toggle between above and below layers. - -## Brush - -- `x`, toggle between primary and secondary color. -- `[`, decrease brush size. -- `]`, increase brush size. - -## Macros - -- `ctrl f`, inject `frame fill:[#primary]` + ## Extras diff --git a/package.json b/package.json index 2371d26..80d5cdd 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,18 @@ "version": "0.1.0", "main": "main.js", "scripts": { - "start": "electron ." + "start": "electron .", + "clean" : "rm -r ~/Desktop/Ronin-darwin-x64/ ; rm -r ~/Desktop/Ronin-linux-x64/ ; rm -r ~/Desktop/Ronin-win32-x64/ ; echo 'cleaned build location'", + "build_osx" : "electron-packager . Ronin --platform=darwin --arch=x64 --out ~/Desktop/ --overwrite --icon=icon.icns ; echo 'Built for OSX'", + "build_linux" : "electron-packager . Ronin --platform=linux --arch=x64 --out ~/Desktop/ --overwrite --icon=icon.ico ; echo 'Built for LINUX'", + "build_win" : "electron-packager . Ronin --platform=win32 --arch=x64 --out ~/Desktop/ --overwrite --icon=icon.ico ; echo 'Built for WIN'", + "build" : "npm run clean ; npm run build_osx ; npm run build_linux ; npm run build_win", + "push_osx" : "~/butler push ~/Desktop/Ronin-darwin-x64/ hundredrabbits/ronin:osx-64", + "push_linux" : "~/butler push ~/Desktop/Ronin-linux-x64/ hundredrabbits/ronin:linux-64", + "push_win" : "~/butler push ~/Desktop/Ronin-win32-x64/ hundredrabbits/ronin:windows-64", + "push_theme" : "~/butler push ~/Github/HundredRabbits/Themes/themes/ hundredrabbits/ronin:themes", + "push_status" : "~/butler status hundredrabbits/ronin", + "push" : "npm run build ; npm run push_theme ; npm run push_osx ; npm run push_linux ; npm run push_win ; npm run clean ; npm run push_status" }, "devDependencies": { "electron": "^1.8.1"