Permalink
Browse files

nitial commit

  • Loading branch information...
0 parents commit 852e39af2e3c38aa8dbe00300371e857a3a8d102 @swdyh committed Jun 14, 2010
@@ -0,0 +1,40 @@
+require 'rubygems'
+require 'plist'
+
+pub_file_dir = '/Users/youhei/dev/www/autopagerize.net/public/files'
+
+def update_versions
+ info = Plist::parse_xml('src.safariextension/Info.plist')
+ v = info['CFBundleShortVersionString']
+ bv = info['CFBundleVersion']
+ up = Plist::parse_xml('update.plist.org')
+ up['Extension Updates'][0]['CFBundleShortVersionString'] = v
+ up['Extension Updates'][0]['CFBundleVersion'] = bv
+ up.save_plist 'update.plist'
+ v
+end
+
+def sy cmd
+ puts cmd
+ system cmd
+end
+
+task :default do
+end
+
+desc 'update'
+task :update do
+ v = update_versions
+ sy 'chmod 644 src.safariextz'
+ sy 'xattr -d com.apple.quarantine src.safariextz'
+ sy "cp src.safariextz packages/autopagerize_for_safari-#{v}.safariextz"
+ sy "cp src.safariextz #{pub_file_dir}/autopagerize_for_safari.safariextz"
+ sy "cp packages/autopagerize_for_safari-#{v}.safariextz #{pub_file_dir}/"
+ sy "cp update.plist #{pub_file_dir}/"
+end
+
+desc 'deploy'
+task :deploy do
+ sy 'sh /Users/youhei/dev/www/autopagerize.net/dep.sh'
+end
+
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Author</key>
+ <string>swdyh</string>
+ <key>CFBundleDisplayName</key>
+ <string>AutoPagerize</string>
+ <key>CFBundleIdentifier</key>
+ <string>net.autopagerize.autppagerizeforsafari</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleShortVersionString</key>
+ <string>0.1.1</string>
+ <key>CFBundleVersion</key>
+ <string>11</string>
+ <key>Chrome</key>
+ <dict>
+ <key>Context Menu Items</key>
+ <array>
+ <dict>
+ <key>Command</key>
+ <string>autopagerize_toggle</string>
+ <key>Identifier</key>
+ <string>autopagerize_toggle</string>
+ <key>Title</key>
+ <string>AutoPagerize on/off</string>
+ </dict>
+ </array>
+ <key>Global Page</key>
+ <string>global.html</string>
+ </dict>
+ <key>Content</key>
+ <dict>
+ <key>Scripts</key>
+ <dict>
+ <key>End</key>
+ <array>
+ <string>autopagerize.user.js</string>
+ <string>yhoo_ac.user.js</string>
+ <string>google_image.user.js</string>
+ <string>twiiter.user.js</string>
+ </array>
+ </dict>
+ </dict>
+ <key>Description</key>
+ <string>A browser Extension for auto loading paginated web pages</string>
+ <key>ExtensionInfoDictionaryVersion</key>
+ <string>1.0</string>
+ <key>Permissions</key>
+ <dict>
+ <key>Website Access</key>
+ <dict>
+ <key>Level</key>
+ <string>All</string>
+ </dict>
+ </dict>
+ <key>Update Manifest URL</key>
+ <string>http://autopagerize.net/files/update.plist</string>
+ <key>Website</key>
+ <string>http://autopagerize.net/</string>
+</dict>
+</plist>
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<array>
+ <dict>
+ <key>DefaultValue</key>
+ <true/>
+ <key>Key</key>
+ <string>display_message_bar</string>
+ <key>Title</key>
+ <string>Display Message Bar</string>
+ <key>Type</key>
+ <string>CheckBox</string>
+ </dict>
+ <dict>
+ <key>DefaultValue</key>
+ <string>http://www.example.com/search?* /[^.]+\.example\.com\//</string>
+ <key>Key</key>
+ <string>exclude_patterns</string>
+ <key>Title</key>
+ <string>Exclude Patterns</string>
+ <key>Type</key>
+ <string>TextField</string>
+ </dict>
+</array>
+</plist>
Oops, something went wrong.

0 comments on commit 852e39a

Please sign in to comment.