Skip to content

Commit

Permalink
增加 在Finder中显示 功能
Browse files Browse the repository at this point in the history
  • Loading branch information
miniers committed Jun 30, 2017
1 parent 83a2efa commit 79fe6f3
Show file tree
Hide file tree
Showing 26 changed files with 289 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### v2.9:
1. 增加Automator脚本用来快速在finder中定位下载的文件(仅支持本地aria2下载的文件)
2. 修复bug

### v2.8.2:
1. 修复页面脚本和全局脚本通信重复的bug

Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ safari extension for use aria2 to replace safari default download
11. 一键导入下载链接至迅雷或百度离线
12. English interface
13. 多User-Agent支持

14. 在 Finder 中显示

### 全局捷键:
功能 | 快捷键
Expand Down Expand Up @@ -50,6 +50,9 @@ safari extension for use aria2 to replace safari default download
content-disposition-default-utf8=true
```
3. 如需使用"在 Finder 中显示",请将safari2aria.app放置于**应用程序**目录中,并手动执行程序一次来注册url schemes。插件将自动识别rpc地址为127.0.0.1或者localhost的服务器,如需手动指定其他地址的aria2为本地,请在rpc名称中添加** _local **来辅助识别


下载列表:

![下载列表](https://user-images.githubusercontent.com/2039910/27525446-7d831888-5a70-11e7-9e2a-12d89f98cd1b.png)
Expand Down
63 changes: 63 additions & 0 deletions safari2aria.app/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -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>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>applet</string>
<key>CFBundleIconFile</key>
<string>applet</string>
<key>CFBundleIdentifier</key>
<string>com.miniers.safari2aria</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>safari2aria</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>aplt</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>safari2aria Handler</string>
<key>CFBundleURLSchemes</key>
<array>
<string>showinfinder</string>
</array>
</dict>
</array>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.6</string>
</dict>
<key>LSRequiresCarbon</key>
<true/>
<key>WindowState</key>
<dict>
<key>bundleDividerCollapsed</key>
<true/>
<key>bundlePositionOfDivider</key>
<real>0.0</real>
<key>dividerCollapsed</key>
<false/>
<key>eventLogLevel</key>
<integer>2</integer>
<key>name</key>
<string>ScriptWindowState</string>
<key>positionOfDivider</key>
<real>375</real>
<key>savedFrame</key>
<string>1440 297 1280 685 1440 -76 1920 1058 </string>
<key>selectedTab</key>
<string>result</string>
</dict>
</dict>
</plist>
Binary file added safari2aria.app/Contents/MacOS/applet
Binary file not shown.
1 change: 1 addition & 0 deletions safari2aria.app/Contents/PkgInfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPLaplt
Binary file not shown.
Binary file added safari2aria.app/Contents/Resources/applet.icns
Binary file not shown.
Binary file added safari2aria.app/Contents/Resources/applet.rsrc
Binary file not shown.
5 changes: 5 additions & 0 deletions safari2aria.app/Contents/Resources/description.rtfd/TXT.rtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{\rtf1\ansi\ansicpg936\cocoartf1504\cocoasubrtf830
{\fonttbl}
{\colortbl;\red255\green255\blue255;}
{\*\expandedcolortbl;;}
}
177 changes: 177 additions & 0 deletions safari2aria.app/Contents/_CodeSignature/CodeResources
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
<?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>files</key>
<dict>
<key>Resources/Scripts/main.scpt</key>
<data>
dF0IpfirXFUKLE/x0lbilF8ymNU=
</data>
<key>Resources/applet.icns</key>
<data>
E7pVpIfdXItIpEqfnJkpu6UJ6uc=
</data>
<key>Resources/applet.rsrc</key>
<data>
4jnipYJjJXyBj/6sUQe2tvPxAKU=
</data>
<key>Resources/description.rtfd/TXT.rtf</key>
<data>
RNBDtNrdVTOWDg4t7ErPIcIWlHk=
</data>
</dict>
<key>files2</key>
<dict>
<key>Resources/Scripts/main.scpt</key>
<dict>
<key>hash</key>
<data>
dF0IpfirXFUKLE/x0lbilF8ymNU=
</data>
<key>hash2</key>
<data>
WIgytkk/fn2F/GpTYexg104s/iEwL7Kr4FvZxaITHTU=
</data>
</dict>
<key>Resources/applet.icns</key>
<dict>
<key>hash</key>
<data>
E7pVpIfdXItIpEqfnJkpu6UJ6uc=
</data>
<key>hash2</key>
<data>
ysBSadnmunzHyWoNyLfFAZnsFcs+QL3q58FnvO3QA/w=
</data>
</dict>
<key>Resources/applet.rsrc</key>
<dict>
<key>hash</key>
<data>
4jnipYJjJXyBj/6sUQe2tvPxAKU=
</data>
<key>hash2</key>
<data>
q5Ew6GTNspy4ZHczYzGa+Zz8XqU6dB0o8DiAh2Zsixs=
</data>
</dict>
<key>Resources/description.rtfd/TXT.rtf</key>
<dict>
<key>hash</key>
<data>
RNBDtNrdVTOWDg4t7ErPIcIWlHk=
</data>
<key>hash2</key>
<data>
4n3R9Lp0n3Y5g48lLomsKAsk0TzLGYB2Muk2kULYoKc=
</data>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
Empty file added safari2aria.app/Icon
Empty file.
6 changes: 3 additions & 3 deletions safari2aria.safariextension/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>1.0</string>
<key>CFBundleShortVersionString</key>
<string>2.8.2</string>
<string>2.9</string>
<key>CFBundleVersion</key>
<string>2.8.2</string>
<string>2.9</string>
<key>Chrome</key>
<dict>
<key>Database Quota</key>
Expand Down Expand Up @@ -87,7 +87,7 @@
<key>Update From Gallery</key>
<true/>
<key>Update Manifest URL</key>
<string>https://miniers.github.io/safari2aria/update.plist?t=2.8.2</string>
<string>https://miniers.github.io/safari2aria/update.plist?t=2.8.3</string>
<key>Website</key>
<string>https://github.com/miniers/safari2aria</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion safari2aria.safariextension/global.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
<body>
<div id="app-box"></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="static/js/manifest.js"></script><script type="text/javascript" src="static/js/vendor.c1acd049edbf1f576628.js"></script><script type="text/javascript" src="static/js/global.15247ca5699b404075b7.js"></script></body>
<script type="text/javascript" src="static/js/manifest.js"></script><script type="text/javascript" src="static/js/vendor.c1acd049edbf1f576628.js"></script><script type="text/javascript" src="static/js/global.9b88090145ceb8e14093.js"></script></body>
</html>
4 changes: 2 additions & 2 deletions safari2aria.safariextension/popover.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<title>safari2aria</title>
<link href="static/css/popover.b9b1f50de82289210d58823627ecc7dd.css" rel="stylesheet"></head>
<link href="static/css/popover.0375a315414abc59db41e6bf341fddd5.css" rel="stylesheet"></head>
<body>
<div id="app-box"></div>
<!-- built files will be auto injected -->
<script type="text/javascript" src="static/js/manifest.js"></script><script type="text/javascript" src="static/js/vendor.c1acd049edbf1f576628.js"></script><script type="text/javascript" src="static/js/popover.37fcab7890f50a813f3d.js"></script></body>
<script type="text/javascript" src="static/js/manifest.js"></script><script type="text/javascript" src="static/js/vendor.c1acd049edbf1f576628.js"></script><script type="text/javascript" src="static/js/popover.7d97ede0d15e59a0a5db.js"></script></body>
</html>

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion safari2aria.safariextension/static/js/endscript.js

Large diffs are not rendered by default.

This file was deleted.

Loading

0 comments on commit 79fe6f3

Please sign in to comment.