README.md in webview-0.1.0 vs README.md in webview-0.1.1

- old
+ new

@@ -1,9 +1,16 @@ # Webview -a webview GUI based on [zserge/webview](https://github.com/zserge/webview) +[![Build Status](https://travis-ci.org/xiejiangzhi/webview.svg?branch=master)](https://travis-ci.org/xiejiangzhi/webview) +[![Gem Version](https://badge.fury.io/rb/webview.svg)](https://badge.fury.io/rb/webview) +A webview GUI based on [zserge/webview](https://github.com/zserge/webview) + +## Require + +* `golang` + ## Installation Add this line to your application's Gemfile: ```ruby @@ -33,16 +40,22 @@ ``` Allow debug page ```ruby -app = Webview::App.new(debug: true) +Webview::App.new(debug: true).open('http://example.com') ``` -Run with your backend +All options ```ruby +Webview::App.new(title: 'ttt', width: 600, height: 400, resizable: true, debug: true) +``` + +Run with your backend. + +```ruby app = Webview::App.new backend = Thread.new { `rails s` } app.open('http://localhost:3000') at_exit { app.close } @@ -75,9 +88,22 @@ * fullscreen: no callback * unfullscreen: no callback * openfile: Open a dialog, and call rpc_cb('openfile', path, user_data) * opendir: Open a dialog, and call rpc_cb('opendir', path, user_data) * savefile: Open a dialog, and call rpc_cb('savefile', path, user_data) + + +## GUI Application + +If we build ruby binary for different systems, then we can public our App for normal user + +Some ways: + +* [Traveling Ruby](https://github.com/phusion/traveling-ruby). I have made a version to support ruby 2.6.3 [here](https://github.com/xiejiangzhi/traveling-ruby) for OSX and Linux +* [Ruby Packer](https://github.com/pmq20/ruby-packer) + + +When I finish my application, I will make a gem of the framework. ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.