airake 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.4.2 2008-02-29
2
+
3
+ * Fixes for AIR release 1.0
4
+
1
5
  === 0.4.1 2008-01-28
2
6
 
3
7
  * Fix manifest
data/Manifest.txt CHANGED
@@ -1,5 +1,6 @@
1
1
  History.txt
2
2
  License.txt
3
+ MIT-LICENSE
3
4
  Manifest.txt
4
5
  Notes.txt
5
6
  README.txt
@@ -10,15 +11,12 @@ air_generators/class/templates/Class.as
10
11
  app_generators/airake/USAGE
11
12
  app_generators/airake/airake_generator.rb
12
13
  app_generators/airake/templates/README
13
- app_generators/browsair/USAGE
14
- app_generators/browsair/browsair_generator.rb
15
- app_generators/browsair/templates/README
16
14
  app_generators/shared/Rakefile
17
15
  app_generators/shared/airake.yml
18
16
  app_generators/shared/application.mxml
17
+ app_generators/shared/descriptor_1.xml
19
18
  app_generators/shared/descriptor_M5.xml
20
19
  app_generators/shared/descriptor_M6.xml
21
- app_generators/shared/icons/MouseRunnerDotComGraphicsLicense.txt
22
20
  app_generators/shared/icons/Web.png
23
21
  app_generators/shared/lib/corelib-08.30.2007.swc
24
22
  app_generators/shared/lib/flexunit-08.30.2007.swc
@@ -26,15 +24,23 @@ app_generators/shared/test/Test-app.xml
26
24
  app_generators/shared/test/Test.mxml
27
25
  app_generators/shared/test/suite/AllTests.as
28
26
  bin/airake
29
- bin/browsair
30
27
  config/hoe.rb
31
28
  config/requirements.rb
29
+ html/app_generators.html
30
+ html/component_generators.html
31
+ html/copy_to_rubyforge.sh
32
+ html/index.html
33
+ html/resources.html
34
+ html/screen.css
35
+ html/tasks.html
32
36
  lib/airake.rb
33
37
  lib/airake/commands/acompc.rb
34
38
  lib/airake/commands/adl.rb
35
39
  lib/airake/commands/adt.rb
36
40
  lib/airake/commands/asdoc.rb
37
41
  lib/airake/commands/base.rb
42
+ lib/airake/commands/fcsh.rb
43
+ lib/airake/commands/flash_player.rb
38
44
  lib/airake/commands/mxmlc.rb
39
45
  lib/airake/core_ext/blank.rb
40
46
  lib/airake/daemonize.rb
@@ -55,8 +61,7 @@ tasks/environment.rake
55
61
  tasks/website.rake
56
62
  test/test_airake.rb
57
63
  test/test_airake_generator.rb
58
- test/test_browsair_generator.rb
59
64
  test/test_class_generator.rb
60
65
  test/test_generator_helper.rb
61
66
  test/test_helper.rb
62
- MIT-LICENSE
67
+ test/test_runner.rb
data/README.txt CHANGED
@@ -1,79 +1,43 @@
1
1
  == Setup
2
2
 
3
- Flex SDK: http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html
4
-
5
- To include mxmlc and fcsh (from Flex SDK):
6
- export PATH="/path/to/flex_sdk_3/bin"
3
+ To include mxmlc, adl and adt (from Flex Builder):
4
+ export PATH="/Applications/Adobe Flex Builder 3/sdks/moxie/bin:$PATH"
7
5
 
8
- AIR SDK: http://labs.adobe.com/downloads/airsdk.html
9
-
10
- To include adl and adt (from AIR SDK):
11
- export PATH="/path/to/air_sdk/bin:$PATH"
6
+ To include adl and adt (from Apollo SDK):
7
+ export PATH="/Applications/ApolloSDK/bin:$PATH"
12
8
 
13
9
  == Creating an AIR project
14
10
 
15
- airake MyProject
11
+ airake path/to/MyProject com.company.MyProject
12
+
13
+ will build a project scaffold with application name of MyProject and application id (used for AIR descriptor) of com.company.MyProject
14
+
15
+ The project includes as3corelib and flexunit, and test scaffolding as well.
16
16
 
17
17
  == Tasks
18
18
 
19
- # View all tasks
20
- rake --tasks
19
+ Run: rake --tasks
21
20
 
22
21
  # Compiling
23
- rake air:compile
22
+ rake compile
24
23
 
25
24
  # Running air debug launcher (ADL)
26
- rake air:adl
25
+ rake adl
27
26
 
28
27
  # Start FCSHD (for faster compilation)
29
28
  rake fcsh:start
30
29
 
31
30
  # Stop FCSHD
32
- rake fcsh:stop
31
+ rake fcsh:stop
33
32
 
34
33
  # Restart FCSHD
35
- rake fcsh:restart
36
-
37
- # Running alternate MXML, (we expect src/Test-app.xml descriptor)
38
- rake air:adl MXML=src/Test.mxml
34
+ rake fcsh:restart
39
35
 
40
- # Run ADL with debug disabled
41
- rake air:adl DEBUG=false
36
+ # Running alternate MXML, (the following expects src/Test-app.xml descriptor file)
37
+ rake adl MXML=src/Test.mxml
42
38
 
43
39
  # Testing
44
- rake air:test
45
-
46
- # Create certificate (Specify ENV["CERTIFICATE"] = "path/to/certificate.pfx")
47
- rake air:certificate
40
+ rake test
48
41
 
49
42
  # Package AIR file
50
- rake air:package
51
-
52
- == Adding other tasks
53
-
54
- Add tasks to the rakefile, for example:
55
-
56
- # Run ADL for Catalog mxml
57
- task :catalog do
58
- ENV["MXML"] = "src/catalog/Catalog.mxml"
59
- Rake::Task["air:adl"].invoke
60
- end
61
-
62
- == Override default settings for Rakefile
63
-
64
- This is experimental. In the Rakefile, specify:
65
-
66
- # Override default settings, this is experimental
67
- # cwd = File.expand_path(File.dirname(__FILE__))
68
- #ENV["AMXMLC_PATH"] = "mxmlc"
69
- #ENV["ADT_PATH"] = "adt"
70
- #ENV["BIN_DIR"] = "#{cwd}/bin"
71
- #ENV["SRC_DIR"] = "#{cwd}/src"
72
- #ENV["LIB_DIR"] = "#{cwd}/lib"
73
- #ENV["TEST_DIR"] = "#{cwd}/test"
74
- #ENV["APPXML_PATH"] = "#{cwd}/src/MyProject-app.xml"
75
- #ENV["AIR_PATH"] = "#{cwd}/bin/MyProject.air"
76
- #ENV["SWF_PATH"] = "#{cwd}/bin/MyProject.swf"
77
- #ENV["AMXMLC_EXTRA_OPTS"] = ...
78
- #ENV["ADL_EXTRA_OPTS"] = ...
79
- #ENV["ADT_EXTRA_OPTS"] = ...
43
+ rake package
@@ -41,14 +41,13 @@ class AirakeGenerator < RubiGen::Base
41
41
  m.file "test/suite/AllTests.as", "test/suite/AllTests.as"
42
42
 
43
43
  m.template "Rakefile", "Rakefile"
44
- m.template "descriptor_M6.xml", "src/#{app_name}-app.xml"
44
+ m.template "descriptor_1.xml", "src/#{app_name}-app.xml"
45
45
  m.template "application.mxml", "src/#{app_name}.mxml"
46
46
  m.template "airake.yml", "airake.yml"
47
47
 
48
48
  # Icons
49
49
  m.directory "src/assets/app_icons"
50
50
  m.file "icons/Web.png", "src/assets/app_icons/icon_128.png"
51
- m.file "icons/MouseRunnerDotComGraphicsLicense.txt", "src/assets/app_icons/MouseRunnerDotComGraphicsLicense.txt"
52
51
 
53
52
  m.dependency "install_rubigen_scripts", [destination_root, "air", "airake"], :shebang => options[:shebang]
54
53
 
@@ -1,72 +1,43 @@
1
1
  == Setup
2
2
 
3
- Flex SDK: http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html
3
+ To include mxmlc, adl and adt (from Flex Builder):
4
+ export PATH="/Applications/Adobe Flex Builder 3/sdks/moxie/bin:$PATH"
5
+
6
+ To include adl and adt (from Apollo SDK):
7
+ export PATH="/Applications/ApolloSDK/bin:$PATH"
8
+
9
+ == Creating an AIR project
4
10
 
5
- To include mxmlc and fcsh (from Flex SDK):
6
- export PATH="/path/to/flex_sdk_3/bin"
11
+ airake path/to/MyProject com.company.MyProject
7
12
 
8
- AIR SDK: http://labs.adobe.com/downloads/airsdk.html
13
+ will build a project scaffold with application name of MyProject and application id (used for AIR descriptor) of com.company.MyProject
9
14
 
10
- To include adl and adt (from AIR SDK):
11
- export PATH="/path/to/air_sdk/bin:$PATH"
12
-
15
+ The project includes as3corelib and flexunit, and test scaffolding as well.
16
+
13
17
  == Tasks
14
18
 
15
- # View all tasks
16
- rake --tasks
19
+ Run: rake --tasks
17
20
 
18
21
  # Compiling
19
- rake air:compile
22
+ rake compile
20
23
 
21
24
  # Running air debug launcher (ADL)
22
- rake air:adl
23
-
25
+ rake adl
26
+
24
27
  # Start FCSHD (for faster compilation)
25
28
  rake fcsh:start
26
29
 
27
30
  # Stop FCSHD
28
- rake fcsh:stop
31
+ rake fcsh:stop
29
32
 
30
33
  # Restart FCSHD
31
- rake fcsh:restart
32
-
33
- # Running alternate MXML, (we expect src/Test-app.xml descriptor)
34
- rake air:adl MXML=src/Test.mxml
34
+ rake fcsh:restart
35
35
 
36
- # Run ADL with debug disabled
37
- rake air:adl DEBUG=false
36
+ # Running alternate MXML, (the following expects src/Test-app.xml descriptor file)
37
+ rake adl MXML=src/Test.mxml
38
38
 
39
39
  # Testing
40
- rake air:test
40
+ rake test
41
41
 
42
42
  # Package AIR file
43
- rake air:package
44
-
45
- == Adding other tasks
46
-
47
- Add tasks to the rakefile, for example:
48
-
49
- # Run ADL for Catalog mxml
50
- task :catalog do
51
- ENV["MXML"] = "src/catalog/Catalog.mxml"
52
- Rake::Task["air:adl"].invoke
53
- end
54
-
55
- == Override default settings for Rakefile
56
-
57
- This is experimental. In the Rakefile, specify:
58
-
59
- # Override default settings, this is experimental
60
- # cwd = File.expand_path(File.dirname(__FILE__))
61
- #ENV["MXMLC_PATH"] = "mxmlc"
62
- #ENV["ADT_PATH"] = "adt"
63
- #ENV["BIN_DIR"] = "#{cwd}/bin"
64
- #ENV["SRC_DIR"] = "#{cwd}/src"
65
- #ENV["LIB_DIR"] = "#{cwd}/lib"
66
- #ENV["TEST_DIR"] = "#{cwd}/test"
67
- #ENV["APPXML_PATH"] = "#{cwd}/src/MyProject-app.xml"
68
- #ENV["AIR_PATH"] = "#{cwd}/bin/MyProject.air"
69
- #ENV["SWF_PATH"] = "#{cwd}/bin/MyProject.swf"
70
- #ENV["MXMLC_EXTRA_OPTS"] = ...
71
- #ENV["ADL_EXTRA_OPTS"] = ...
72
- #ENV["ADT_EXTRA_OPTS"] = ...
43
+ rake package
@@ -8,6 +8,7 @@ ENV["AIRAKE_ENV"] = "development"
8
8
  task :test => [ "air:test" ] do; end
9
9
  task :compile => [ "air:compile" ] do; end
10
10
  task :package => [ "air:package" ] do; end
11
+ task :certificate => [ "air:certificate" ] do; end
11
12
  task :adl => [ "air:adl" ] do; end
12
13
  task :docs => [ "air:docs" ] do; end
13
14
  task :clean => [ "air:clean" ] do; end
@@ -14,6 +14,7 @@ development:
14
14
  debug: true
15
15
 
16
16
  test:
17
+ swf_path: bin/Test.swf
17
18
  mxml_path: test/Test.mxml
18
19
  appxml_path: test/Test-app.xml
19
20
  src_dirs: [ 'src', 'test' ]
@@ -3,19 +3,17 @@
3
3
 
4
4
  <mx:VBox width="100%" height="100%" backgroundColor="#FFFFFF" verticalGap="0">
5
5
 
6
- <% if show_buttons %>
7
6
  <mx:HBox id="buttons" width="100%" paddingLeft="5" paddingTop="5"
8
7
  borderColor="#CCCCCC" borderSides="bottom" borderThickness="2" borderStyle="solid">
9
8
 
10
- <mx:Button label="Back" click="html.htmlControl.historyBack()" />
11
- <mx:Button label="Forward" click="html.htmlControl.historyForward()" />
9
+ <mx:Button label="Back" click="html.historyBack()" />
10
+ <mx:Button label="Forward" click="html.historyForward()" />
12
11
  <mx:Button label="Home" click="html.location='<%= url %>'" />
13
12
 
14
13
  <mx:HBox width="100%" horizontalAlign="right" paddingBottom="5" paddingRight="5">
15
14
  <mx:Button label="Hide" click="buttons.height = 0" />
16
15
  </mx:HBox>
17
16
  </mx:HBox>
18
- <% end %>
19
17
 
20
18
  <mx:VBox width="100%" height="100%">
21
19
  <mx:HTML id="html" width="100%" height="100%" location="<%= url %>" />
@@ -0,0 +1,57 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <application
3
+ xmlns="http://ns.adobe.com/air/application/1.0"
4
+ minimumPatchLevel="0">
5
+ <!-- AIR Application Descriptor File. See http://www.adobe.com/go/air_1.0_application_descriptor. -->
6
+ <id>com.exampleCompany.<%= app_name %></id>
7
+ <name><%= app_name %></name>
8
+ <version>1.0</version>
9
+ <filename><%= app_name %></filename>
10
+ <description><%= description %></description>
11
+ <copyright>(c) <%= Date.today.year %></copyright>
12
+ <initialWindow>
13
+ <content>bin/<%= app_name %>.swf</content>
14
+ <title><%= title %></title>
15
+ <systemChrome>standard</systemChrome>
16
+ <transparent>false</transparent>
17
+ <visible>true</visible>
18
+ <minimizable>true</minimizable>
19
+ <maximizable>true</maximizable>
20
+ <resizable>true</resizable>
21
+ <width>1024</width>
22
+ <height>768</height>
23
+ <x>100</x>
24
+ <y>50</y>
25
+ <minSize>300 300</minSize>
26
+ <maxSize>800 800</maxSize>
27
+ </initialWindow>
28
+ <!--
29
+ <installFolder><%= app_name %></installFolder>
30
+ <programMenuFolder><%= app_name %></programMenuFolder>
31
+ -->
32
+ <icon>
33
+ <!--
34
+ <image16x16>icons/AIRApp_16.png</image16x16>
35
+ <image32x32>icons/AIRApp_32.png</image32x32>
36
+ <image48x48>icons/AIRApp_48.png</image48x48>-->
37
+ <image128x128>src/assets/app_icons/icon_128.png</image128x128>
38
+ </icon>
39
+ <customUpdateUI>false</customUpdateUI>
40
+ <allowBrowserInvocation>false</allowBrowserInvocation>
41
+ <!--
42
+ <fileTypes>
43
+ <fileType>
44
+ <name>com.example</name>
45
+ <extension>xmpl</extension>
46
+ <description>Example file</description>
47
+ <contentType>example/x-data-type</contentType>
48
+ <icon>
49
+ <image16x16>icons/AIRApp_16.png</image16x16>
50
+ <image32x32>icons/AIRApp_32.png</image32x32>
51
+ <image48x48>icons/AIRApp_48.png</image48x48>
52
+ <image128x128>icons/AIRApp_128.png</image128x128>
53
+ </icon>
54
+ </fileType>
55
+ </fileTypes>
56
+ -->
57
+ </application>
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="utf-8" ?>
2
2
  <application
3
- xmlns="http://ns.adobe.com/air/application/1.0.M6"
4
- minimumPatchLevel="4">
3
+ xmlns="http://ns.adobe.com/air/application/1.0"
4
+ minimumPatchLevel="0">
5
5
  <!-- AIR Application Descriptor File. See http://www.adobe.com/go/air_1.0_application_descriptor. -->
6
6
  <id>com.Test</id>
7
7
  <name>Test</name>
@@ -32,25 +32,9 @@
32
32
  <image16x16>icons/AIRApp_16.png</image16x16>
33
33
  <image32x32>icons/AIRApp_32.png</image32x32>
34
34
  <image48x48>icons/AIRApp_48.png</image48x48>
35
- <image128x128>src/assets/app_icons/icon_128.png</image128x128>
35
+ <image128x128>icons/AIRApp_128.png</image128x128>
36
36
  -->
37
37
  </icon>
38
38
  <customUpdateUI>false</customUpdateUI>
39
- <allowBrowserInvocation>false</allowBrowserInvocation>
40
- <fileTypes>
41
- <fileType>
42
- <name>com.example</name>
43
- <extension>xmpl</extension>
44
- <description>Example file</description>
45
- <contentType>example/x-data-type</contentType>
46
- <icon>
47
- <!--
48
- <image16x16>icons/AIRApp_16.png</image16x16>
49
- <image32x32>icons/AIRApp_32.png</image32x32>
50
- <image48x48>icons/AIRApp_48.png</image48x48>
51
- <image128x128>src/assets/app_icons/icon_128.png</image128x128>
52
- -->
53
- </icon>
54
- </fileType>
55
- </fileTypes>
39
+ <allowBrowserInvocation>false</allowBrowserInvocation>
56
40
  </application>
@@ -0,0 +1,42 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html>
4
+ <head>
5
+ <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
6
+ <title>Airake - Rake tasks for Adobe AIR</title>
7
+ <link rel="stylesheet" href="screen.css" type="text/css" media="screen"/>
8
+ </head>
9
+ <body>
10
+ <div id="page">
11
+ <div id="content">
12
+ <div id="header">
13
+ <h1>App generators</h1>
14
+ <p><a href="/">Home</a> | <a href="rdoc/">RDOC</a> | <a href="http://ducktyper.com">Blog</a></p>
15
+ </div>
16
+
17
+ <div class="section">
18
+ <h1>Airake</h1>
19
+
20
+ <pre>
21
+ Description:
22
+ Creates an AIR project scaffold.
23
+
24
+ Usage:
25
+ airake [path/to/AppName]
26
+ </pre>
27
+
28
+ </div>
29
+
30
+ </div>
31
+
32
+ <div id="footer">&nbsp;</div>
33
+ </div>
34
+
35
+ <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
36
+ </script>
37
+ <script type="text/javascript">
38
+ _uacct = "UA-1286493-4";
39
+ urchinTracker();
40
+ </script>
41
+ </body>
42
+ </html>