So you want to share your scripts with other WearScript users? This is the repository to fork.
##Adding Your Script
###The Best Way
- Put your script in a gist and add the gist ID to
gists.json
###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
- Clone this repo with
hub clone OpenShades/weariverse
- Inside the repo, fork with
hub fork
- Run
bundle install
- Run
rake new[script-name-here]
and answer all of the questions - 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.
- 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
- 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. - 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. - 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
- Copy another script in the script directory and edit the manifest.json to taste.
- Rebase against our repo, then commit and submit a pull-request.
##Compiling
bundle install
if you haven't recentlyrake apps
- All app data is now in scripts.yml
##Syncing to S3
bundle install
if you haven't recently- Make sure your credentials are environmental variables at
AWS_ID
andAWS_SECRET
rake