Skip to content

timothyclemans/weariverse

 
 

Repository files navigation

WearScript Contrib

So you want to share your scripts with other WearScript users? This is the repository to fork.

##Adding Your Script

###The Snazzy Way To use our snazzy tools, you must have Ruby installed on your machine. Quickest method is RVM: curl -sSL https://get.rvm.io | bash -s stable We also recomend you install hub, on OS X with brew, do brew install hub. On Linux, check your repositories. Worst case, gem install hub

  1. Clone this repo with hub clone OpenShades/weariverse
  2. Inside the repo, fork with hub fork
  3. Run bundle install
  4. Run rake new[script-name-here] and answer all of the questions
  5. Edit manifest.json to taste. This is what we use to render your script listing. Includes are for additional javascript or image files that you want to be able to load from the WebView. Require tells the WS server that other scripts should also be installed on the user's Glass for everything to work happily.
  6. For added coolness (and to possible qualify for our featured section), make sure you add some screenshots. You can take a screenshot with the command adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png
  7. If you would like your script distributed also as an APK, run rake compile[script-name-here] to compile the APK. This requires a full android environment on your machine.
  8. Once you are done writing your script and are ready to submit it, run rake submit[script-name-here]. This will make sure your local copy is fully rebased and commit your changes.
  9. Submit a pull request, either via the GitHub website or of the format hub pull-request -m "Script: YOUR_SCRIPT_NAME" -b origin:master -h YOUR_USERNAME:master

###The Manual Way

  1. Copy another script in the script directory and edit the manifest.json to taste.
  2. Rebase against our repo, then commit and submit a pull-request.

##Compiling

Running rake apps will generate scripts.yml which can then be copied over to the site builder and used to update it.

##Syncing to S3

Running rake will rebuild the YAML and sync all index.html files to the S3 bucket.

About

Community contributed WearScripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 50.5%
  • Ruby 49.5%