Browse files

added thor command to generate .air app, air skeleton

  • Loading branch information...
1 parent 2757373 commit 03e81697618a13585fb869868453a3ccc3e967ee @mustardamus mustardamus committed Jan 22, 2013
View
3 air/README.md
@@ -0,0 +1,3 @@
+Kudos to [Erik Zaadi](http://www.erikzaadi.com/) for the previous AIR app!
+
+https://github.com/erikzaadi/jqapi/tree/master/air
View
31 air/application.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8" standalone="no"?>
+<application xmlns="http://ns.adobe.com/air/application/2.5">
+ <id>com.mustardamus.jQAPI</id>
+ <filename>jQAPI</filename>
+ <name>jQAPI</name>
+ <versionNumber>1.9</versionNumber>
+ <description>
+ jQAPI - Alternative jQuery Documentation Browser
+ http://jqapi.com/
+ </description>
+ <copyright/>
+ <initialWindow>
+ <content>air/loader.html</content>
+ <title/>
+ <systemChrome>standard</systemChrome>
+ <transparent>false</transparent>
+ <visible>true</visible>
+ <minimizable>true</minimizable>
+ <maximizable>true</maximizable>
+ <resizable>true</resizable>
+ <width>1024</width>
+ <height>768</height>
+ </initialWindow>
+ <icon>
+ <image16x16>app/assets/images/icon16.png</image16x16>
+ <image32x32>app/assets/images/icon32.png</image32x32>
+ <image48x48>app/assets/images/icon48.png</image48x48>
+ <image128x128>app/assets/images/icon128.png</image128x128>
+ </icon>
+ <allowBrowserInvocation>true</allowBrowserInvocation>
+</application>
View
BIN air/jqapi.cert
Binary file not shown.
View
12 air/loader.html
@@ -0,0 +1,12 @@
+<html>
+ <head>
+ <title>jQAPI - Alternative jQuery Documentation Browser</title>
+ <script type="text/javascript" src="lib/air/AIRAliases.js">
+ </script>
+ <!-- Use the jqapi.com domain in order to place index.html content in a remote sandbox. -->
+ </head>
+ <body>
+ <iframe id="UI" src="public/index.html" sandboxRoot="http://jqapi.com/" documentRoot="app:/" style="border: none; height:100%;width:100%">
+ </iframe>
+ </body>
+</html>
View
BIN app/assets/images/icon128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN app/assets/images/icon16.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN app/assets/images/icon32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN app/assets/images/icon48.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN app/assets/images/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1 app/assets/stylesheets/main.css.sass
@@ -171,7 +171,6 @@ body
#air
a
background: url('download_air.png') top center no-repeat
- cursor: no-drop
#git
a
View
5 app/views/index.haml
@@ -173,7 +173,7 @@
.third#zip
%a{:href => '/jqapi.zip'} Download as Zip Archive
.third#air
- %a{:href => '#'} Download as AIR App (coming soon)
+ %a{:href => '/jqapi.air'} Download as AIR App
.third#git
%a{:href => 'https://github.com/jqapi/jqapi#generate-the-documentation'} Git Clone &amp; generate it yourself
@@ -260,6 +260,9 @@
%ul
%li
%span [2013-01-21]
+ jQAPI is again available as stand alone AIR app.
+ %li
+ %span [2013-01-21]
Don't set focus on search field on mobile devices if pointer is over the sidebar.
%li
%span [2013-01-18]
View
8 tasks/deploy.thor
@@ -68,4 +68,12 @@ class Deploy < Thor
%x[cd public/ && zip -r jqapi.zip .]
puts "Created public/jqapi.zip"
end
+
+ desc 'air', 'builds a AIR application wrapper, saved to public/'
+ def air
+ puts "Build AIR wrapper..."
+ puts "Cert password: "
+ %x[adt -package -storetype pkcs12 -keystore air/jqapi.cert -target air public/jqapi.air air/application.xml -C ./ public/assets public/docs public/resources public/index.html public/LICENSE app/assets/images air/loader.html]
+ puts "Done."
+ end
end

0 comments on commit 03e8169

Please sign in to comment.