{"id":1287,"date":"2010-07-08T14:25:57","date_gmt":"2010-07-08T06:25:57","guid":{"rendered":"http:\/\/nan.im\/blog\/?p=1287"},"modified":"2010-07-08T14:25:57","modified_gmt":"2010-07-08T06:25:57","slug":"%e5%90%8c%e6%ad%a5%e5%88%b0%e7%99%be%e5%ba%a6%e7%a9%ba%e9%97%b4","status":"publish","type":"post","link":"http:\/\/www.nan.im\/blog\/1287","title":{"rendered":"\u5982\u4f55\u521b\u5efa\u4e00\u4e2a Chrome Apps \u5e94\u7528\u6216\u6269\u5c55\u63d2\u4ef6"},"content":{"rendered":"<p>\u76ee\u524d\u5f88\u591a\u786c\u4ef6\u8f6f\u4ef6\u5382\u5546\u90fd\u5728\u79ef\u6781\u6784\u5efa\u5728\u7ebf\u7f51\u7edc\u5e94\u7528\u5546\u5e97\u5176\u4e2d\u5f53\u7136\u5305\u62ec\u82f9\u679c \u8c37\u6b4c \u5fae\u8f6f \u4e2d\u56fd\u79fb\u52a8 \u751a\u81f3\u9b45\u65cf \u7b49\u7b49\uff0c\u8c37\u6b4c\u66fe\u5728 Google I\/O \u5f00\u53d1\u8005\u5927\u4f1a\u4e0a\u5ba3\u5e03\u5df2\u7ecf\u6709\u7a0b\u5e8f\u5458\u5728\u4e3a ChromeOS \u64cd\u4f5c\u7cfb\u7edf\u548c Chrome WebStore \u6d4f\u89c8\u5668\u5e94\u7528\u5546\u5e97\u5f00\u53d1\u5e94\u7528\uff0c\u8c37\u6b4c\u4e00\u76f4\u90fd\u5728\u81f4\u529b\u4e8e\u51cf\u5c11\u7f51\u9875\u4e91\u5e94\u7528\u4e0e\u684c\u9762\u5e94\u7528\u4e4b\u95f4\u7684\u5dee\u522b\uff0c\u800c\u6700\u65b0\u7684\u5f00\u53d1\u7248 Chrome \u6d4f\u89c8\u5668\u4e5f\u5df2\u7ecf\u5185\u7f6e\u4e86 ChromeApps \u7684\u529f\u80fd\uff0c\u8fd9\u91cc\u63d0\u4f9b\u4e00\u4e9b\u4ee3\u7801\u8ba9\u4f60\u80fd\u591f\u5feb\u901f\u7684\u6784\u5efa\u4e00\u4e2a\u6700\u7b80\u5355\u7684 Hello World \u6d4f\u89c8\u5668\u5e94\u7528\uff0c\u53ca\u5982\u4f55\u5411\u7ebf\u4e0a\u7684 ChromeWebStore \u63d0\u4ea4\u4f60\u7684\u5e94\u7528\u6216\u63d2\u4ef6\u2026\u2026<!--more--><\/p>\n<h3>\u5f00\u542f\u8c37\u6b4c Google Chrome Apps \u5e94\u7528\u529f\u80fd<\/h3>\n<p>\u76ee\u524d\u5373\u4f7f\u662f\u5f00\u53d1\u7248\u672c\u7684 Google Chrome \u4ecd\u9700\u8981\u6dfb\u52a0\u542f\u52a8\u53c2\u6570  &#8211;enable-apps &#8211;apps-panel \u6765\u5f00\u542f\u6d4f\u89c8\u5668\u5e94\u7528\u529f\u80fd\u548c\u4e00\u4e2a\u7c7b\u4f3c Windows \u5f00\u59cb\u83dc\u5355\u529f\u80fd\u7684 Chrome Panel \u65b0\u6807\u7b7e\u9875\u9762\u677f\u3002\u66f4\u65b0\uff1a\u76ee\u524d 7.0 \u7684\u5f00\u53d1\u7248\u5df2\u7ecf\u4e0d\u9700\u8981\u989d\u5916\u7684\u53c2\u6570\u5373\u53ef\u542f\u7528 apps \u6a21\u5f0f\u2026\u2026<\/p>\n<h3>\u968f\u5f00\u53d1\u7248 Chrome Dev \u63d0\u4f9b\u7684\u51e0\u4e2a Google Apps \u5e94\u7528<\/h3>\n<p>\u76ee\u524d\u7684\u5f00\u53d1\u7248\u4e2d Google \u5df2\u7ecf\u63d0\u4f9b\u4e86\u4e09\u4e2a Chrome Apps \u7684\u6e90\u6587\u4ef6\u4f4d\u4e8e\u6d4f\u89c8\u5668\u7684\u5b89\u88c5\u76ee\u5f55\u4e0b \\Chrome\\Application\\6.?.???.?\\Resources\\ \u91cc\u9762\u6709\u4e09\u4e2a Apps \u7684\u6e90\u6587\u4ef6\u5305\u62ec Gmail \u90ae\u7bb1 Calender \u65e5\u5386 Docs \u6587\u6863 \u4e09\u4e2a\u8c37\u6b4c\u4e91\u670d\u52a1\u5f00\u542f ChromeApps \u529f\u80fd\u4e4b\u540e\u518d\u6269\u5c55\u9875\u9762\u6253\u5f00\u201c\u5f00\u53d1\u4eba\u5458\u6a21\u5f0f\u201d\u5c31\u53ef\u4ee5\u4f7f\u7528\u201c\u8f7d\u5165\u6b63\u5728\u5f00\u53d1\u7684\u6269\u5c55\u7a0b\u5e8f\u201d\u6765\u5206\u522b\u8f7d\u5165\u8fd9\u4e09\u4e2a\u793a\u4f8b Apps \u5e94\u7528\u975e\u5e38\u7b80\u5355\u5176\u5b9e\u5c31\u662f\u63d0\u4f9b\u4e00\u4e2a\u5730\u5740\u5165\u53e3\u800c\u5df2\uff0c\u4f46\u672a\u6765\u7684\u6269\u5c55\u6027\u5219\u975e\u5e38\u8ba9\u4eba\u671f\u5f85\uff1b<\/p>\n<h3>\u5f00\u53d1\u4e00\u4e2a\u7b80\u5355\u7684 Google Chrome Apps \u5e94\u7528<\/h3>\n<p>\u65e2\u7136\u63d0\u4f9b\u4e86\u4e09\u4e2a\u793a\u4f8b\u6e90\u7a0b\u5e8f\uff0c\u6211\u4eec\u53ef\u4ee5\u4f9d\u846b\u82a6\u753b\u74e2\u822c\u7684\u5236\u4f5c\u4e00\u4e2a\u5c5e\u4e8e\u81ea\u5df1\u7684 ChromeApp \u4f8b\u5982\u6211\u7ecf\u5e38\u4f7f\u7528\u7684 GoogleReader \u9605\u8bfb\u5668\u9700\u8981\u505a\u7684\u662f\u51c6\u5907\u4e00\u4e2a\u5c0f\u56fe\u6807\u7528\u4e8e\u5728\u5e94\u7528\u9009\u9879\u5361\u4e0a\u663e\u793a\uff0c\u51c6\u5907\u4e00\u4e2a manifest.json \u505a\u4e3a\u5e94\u7528\u7684\u5165\u53e3\u6e05\u5355\u81f3\u4e8e manifest.json \u7684\u8bed\u6cd5\u53ef\u53c2\u8003 Chrome \u63d2\u4ef6\u7684\u5f00\u53d1\u6587\u6863\u6216\u8005\u968f Chrome \u63d0\u4f9b\u7684\u51e0\u4e2a\u793a\u4f8b\u5e94\u7528\u4f8b\u5982\uff1a<\/p>\n<pre lang=\"json\" line=\"1\">\n{\n  \"name\": \"Google Reader\", \"version\": \"1\",\n  \"icons\": {\"128\": \"128.png\", \"24\": \"24.png\"},\n  \"permissions\": [ \"notifications\" ],\n  \"app\": {\"launch\": {\"web_url\": \"https:\/\/www.google.com\/reader\/\"}}\n}\n<\/pre>\n<p>\u8fd9\u6837\u6211\u7684\u7b2c\u4e00\u4e2a Hello World \u5f0f\u7684 Chrome Apps \u5c31\u5236\u4f5c\u597d\u4e86\uff0c\u5f53\u7136\u91cc\u9762\u7684\u5730\u5740\u53ef\u4ee5\u662f\u672c\u5730\u5730\u5740\u7684\u4e5f\u5305\u62ec JavaScript \u548c CSS \u8fd9\u6837\u770b\u6765\u5236\u4f5c\u6d4f\u89c8\u5668\u5e94\u7528\u7684\u6838\u5fc3\u6280\u672f\u5f53\u7136\u662f HTML + CSS + JavaScript \u4e86\u6700\u597d\u662f HTML5 \u548c CSS3 \u4f7f\u7528 webkit \u548c v8 \u7684 Chrome \u5bf9\u4e8e\u8fd9\u4e24\u9879\u65b0\u6807\u51c6\u975e\u5e38\u5728\u884c\uff0c\u54c8\u54c8\u8fd9\u660e\u663e\u8981\u6bd4\u5236\u4f5c Firefox \u7684\u63d2\u4ef6\u8981\u7b80\u5355\u7684\u591a\u4e5f\u66f4\u9002\u5408\u4e92\u8054\u7f51\u5de5\u7a0b\u5e08\u7684\u53c2\u4e0e\u8981\u77e5\u9053\u5199 HTML \u8fd8\u662f\u6bd4\u5199 C++ \u7684\u8981\u591a\u7684\u591a\u5427 ^_^ \u4e0b\u9762\u770b\u770b\u622a\u56fe\u7684\u6548\u679c\uff1a<\/p>\n<p><center><a href=\"http:\/\/nan.im\/blog\/wp-content\/uploads\/GoogleChromeApps.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/nan.im\/blog\/wp-content\/uploads\/GoogleChromeApps-400x191.jpg\" alt=\"\" title=\"GoogleChromeApps\" width=\"400\" height=\"191\" class=\"aligncenter size-thumbnail wp-image-1288\" \/><\/a><\/center><\/p>\n<p>\u5e94\u7528\u7684\u9875\u9762\u770b\u8d77\u6765\u548c\u7f51\u9875\u6ca1\u4ec0\u4e48\u533a\u522b\uff0c\u6211\u4eec\u672c\u6765\u5c31\u662f\u8981\u51cf\u5c11\u4e24\u8005\u7684\u533a\u522b\uff0c\u8fd9\u79cd\u5f00\u53d1\u6a21\u5f0f\u5f53\u7136\u53ef\u4ee5\u62d3\u5c55\u5230 WebQQ \u751a\u81f3\u662f\u690d\u7269\u5927\u6218\u50f5\u5c38\u7b49\u7b49\uff0c\u5176\u5b9e\u5fae\u8f6f\u65e9\u5728\u5f88\u4e45\u4ee5\u524d\u5c31\u63d0\u4f9b\u4e86\u4ee5 hta \u683c\u5f0f\u6587\u4ef6\u6765\u8fd0\u884c html \u7684\u5e94\u7528\u300a<a href=\"http:\/\/nan.im\/blog\/1237.html\">\u5982\u4f55\u5229\u7528 HTA \u6784\u5efa\u5e94\u7528<\/a>\u300b\u53ea\u662f\u5f53\u65f6\u7684\u4e91\u670d\u52a1\u8fd8\u8fdc\u8fdc\u4e0d\u591f\u6210\u719f\u800c\u4e14 hta \u5c06\u5f88\u591a\u4e1c\u897f\u90fd\u9650\u5236\u7684\u5f88\u6b7b\u677f\uff0c\u800c\u73b0\u5728\u501f\u52a9 HTML5 \u65b0\u52a0\u5165\u7684\u5927\u91cf\u529f\u80fd\u6211\u4eec\u53ef\u4ee5\u81ea\u7531\u7684\u5b9e\u73b0\u5f88\u591a\u6709\u610f\u601d\u7684\u6d4f\u89c8\u5668\u5e94\u7528\u5305\u62ec\u6e38\u620f\uff08\u5982 <a href=\"http:\/\/www.google.com\/pacman\/\">Google.com\/PacMan<\/a> \u7b49\uff09\u66f4\u591a\u5f00\u53d1\u8d44\u6e90\u53ef\u4ee5\u8bbf\u95ee http:\/\/code.google.com\/intl\/en\/chrome\/apps\/ Google Installable Web Apps \u5373\u8c37\u6b4c\u53ef\u5b89\u88c5\u7f51\u9875\u5e94\u7528\u7684\u9879\u76ee\u9875\u9762\u2026\u2026<\/p>\n<p>\u4e00\u4e2a Chrome Apps or Extensions \u5f00\u53d1\u5b8c\u6210\u4e4b\u540e\u662f\u4e0d\u662f\u60f3\u5206\u4eab\u7ed9\u5176\u4ed6\u670b\u53cb\u4f7f\u7528\uff0c\u5f53\u7136\u6700\u597d\u662f\u63d0\u4ea4\u5230 <a href=\"https:\/\/chrome.google.com\/extensions\">ChromeWebStore<\/a> \u7ebf\u4e0a\u5e94\u7528\u5546\u5e97\u4f9b\u6240\u6709\u7684 Chrome \u7528\u6237\u4f7f\u7528\uff0c\u8fd9\u91cc\u6709\u4e00\u4e2a\u89c6\u9891\u8be6\u7ec6\u63cf\u8ff0\u4e86\u5982\u4f55\u63d0\u4ea4\u81ea\u5df1\u7684 Chrome \u5e94\u7528\u53ca\u6269\u5c55\u5230 Chrome\u7ebf\u4e0a\u5546\u5e97\uff0c\u5305\u62ec\u8bbe\u7f6e\u514d\u8d39\u53ca\u4ed8\u8d39\u6a21\u5f0f\uff0c\u800c\u4e14 ChromeWebStore \u63d0\u4f9b\u591a\u79cd\u4ed8\u8d39\u6a21\u5f0f\u800c\u975e AppleAppStore \u90a3\u79cd\u5355\u4e00\u7684\u4ed8\u8d39\u6a21\u5f0f\uff1a<\/p>\n<p>\u5982\u4f55\u4e0a\u4f20\u4f60\u7684\u5e94\u7528\u5230 Chrome \u7ebf\u4e0a\u5546\u5e97\uff1a<a href=\"http:\/\/player.youku.com\/player.php\/sid\/XMjAxMjUzNDUy\/v.swf\">How to upload your app to the Chrome Web Store<\/a><\/p>\n<p>\u4ece\u89c6\u9891\u4e2d\u53ef\u4ee5\u770b\u51fa\u4e0a\u4f20\u662f\u975e\u5e38\u65b9\u4fbf\u7684\uff0c\u800c\u4e14\u671f\u95f4\u53ef\u4ee5\u901a\u8fc7\u9009\u62e9\u5df2\u7ecf\u901a\u8fc7 Google \u7ad9\u957f\u5de5\u5177\u9a8c\u8bc1\u8fc7\u7684\u7f51\u7ad9\u6765\u4e3a\u63d2\u4ef6\u6253\u4e0a\u9a8c\u8bc1\u6807\u8bc6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u524d\u5f88\u591a\u786c\u4ef6\u8f6f\u4ef6\u5382\u5546\u90fd\u5728\u79ef\u6781\u6784\u5efa\u5728\u7ebf\u7f51\u7edc\u5e94\u7528\u5546\u5e97\u5176\u4e2d\u5f53\u7136\u5305\u62ec\u82f9\u679c \u8c37\u6b4c \u5fae\u8f6f \u4e2d\u56fd\u79fb\u52a8 \u751a\u81f3\u9b45\u65cf \u7b49\u7b49\uff0c\u8c37\u6b4c\u66fe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[19,119,20,24,37],"class_list":["post-1287","post","type-post","status-publish","format-standard","hentry","category-tech","category-good","tag-chrome","tag-cloud","tag-code","tag-develop","tag-google"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"http:\/\/www.nan.im\/blog\/wp-json\/wp\/v2\/posts\/1287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.nan.im\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.nan.im\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.nan.im\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.nan.im\/blog\/wp-json\/wp\/v2\/comments?post=1287"}],"version-history":[{"count":0,"href":"http:\/\/www.nan.im\/blog\/wp-json\/wp\/v2\/posts\/1287\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.nan.im\/blog\/wp-json\/wp\/v2\/media?parent=1287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.nan.im\/blog\/wp-json\/wp\/v2\/categories?post=1287"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.nan.im\/blog\/wp-json\/wp\/v2\/tags?post=1287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}