Skip to content

Commit

Permalink
revert to npapi-file-io
Browse files Browse the repository at this point in the history
  • Loading branch information
gbk committed Nov 21, 2013
1 parent 65e7437 commit 6225b68
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 105 deletions.
5 changes: 1 addition & 4 deletions build/build.sh
Expand Up @@ -7,7 +7,6 @@ MAIN="../main"
RELEASE="../release"

rm -rf "$RELEASE"
mkdir "$RELEASE"
cp -r "$MAIN" "$RELEASE"
rm -rf "$RELEASE/scripts"
rm -rf "$RELEASE/styles"
Expand All @@ -19,7 +18,6 @@ doCompress () {
TARGET="$RELEASE/$1"
for i in `ls -1p $SOURCE | grep -v "/$"`
do
echo "$SOURCE/$i"
java -jar "$YUI" --charset=utf-8 -o "$TARGET/$i" "$SOURCE/$i"
done
}
Expand All @@ -29,7 +27,6 @@ doCompress "scripts/handle"
doCompress "scripts/model"
doCompress "scripts/util"
doCompress "styles"
mkdir "$RELEASE/scripts\lib"
cp -r "$MAIN/scripts/lib" "$RELEASE/scripts/lib"
cp -r "$MAIN/scripts/lib" "$RELEASE/scripts"

echo finish
6 changes: 3 additions & 3 deletions main/manifest.json
Expand Up @@ -22,11 +22,11 @@
"options_page": "option.html",
"permissions": [ "proxy", "tabs", "webRequest", "webRequestBlocking", "http://*/*", "https://*/*" ],
"plugins": [ {
"path": "./plugins/npNPAPIFileIOforChrome.dll"
"path": "./plugins/npapi-file-io-32.dll"
}, {
"path": "./plugins/npNPAPIFileIOforChrome.so"
"path": "./plugins/npapi-file-io-32.so"
}, {
"path": "./plugins/npNPAPIFileIOforChrome.plugin"
"path": "./plugins/npapi-file-io-64.so"
} ],
"requirements": {
"plugins": {
Expand Down
Binary file removed main/plugins/npNPAPIFileIOforChrome.dll
Binary file not shown.
74 changes: 0 additions & 74 deletions main/plugins/npNPAPIFileIOforChrome.plugin/Contents/Info.plist

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

Binary file removed main/plugins/npNPAPIFileIOforChrome.so
Binary file not shown.
Binary file added main/plugins/npapi-file-io-32.dll
Binary file not shown.
Binary file added main/plugins/npapi-file-io-32.so
Binary file not shown.
Binary file added main/plugins/npapi-file-io-64.so
Binary file not shown.
4 changes: 2 additions & 2 deletions main/scripts/background.js
Expand Up @@ -34,7 +34,7 @@
*/
getHostsPath: function() {
try {
if (/windows/i.test(navigator.userAgent)) { // TODO
if (embed.getPlatform() == 'windows') {
return embed.getSystemPath() + '\\drivers\\etc\\hosts';
} else {
return '/etc/hosts';
Expand Down Expand Up @@ -194,7 +194,7 @@
});
})((function() {
var embed = document.createElement('embed');
embed.type = 'application/x-npapifileioforchrome';
embed.type = 'application/x-npapi-file-io';
document.getElementsByTagName('body')[0].appendChild(embed);
return embed;
})(), {});

0 comments on commit 6225b68

Please sign in to comment.