{"id":1455,"date":"2015-01-01T10:24:05","date_gmt":"2015-01-01T02:24:05","guid":{"rendered":"https:\/\/www.ookangzheng.com\/?p=1455"},"modified":"2020-05-24T16:00:27","modified_gmt":"2020-05-24T08:00:27","slug":"ionicframework-%e8%b3%87%e6%96%99%e6%95%b4%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.ookangzheng.com\/ionicframework-%e8%b3%87%e6%96%99%e6%95%b4%e7%90%86\/","title":{"rendered":"ionicFramework \u8cc7\u6599\u6574\u7406"},"content":{"rendered":"

\"\"<\/p>\n

\u6211\u9019\u88e1\u4e3b\u8981\u91dd\u5c0d\u81ea\u5df1\u4f7f\u7528ionic\u958b\u767c\u7684HybirdApp \u7a2e\u7a2e\u554f\u984c\u7684\u8a18\u9304\u548c\u89e3\u7b54<\/p>\n

    \n
  1. \u5982\u4f55\u5b89\u88ddIonic\n
      \n
    1. \u78ba\u4fdd\u96fb\u8166\u5b89\u88dd\u4e86Nodejs\uff0c\u57f7\u884c\u5168\u5c40\u5b89\u88dd npm install -g cordova ionic bower<\/li>\n
    2. \u5728\u6bd4\u5982Desktop \u5275\u5efaProject, \u57f7\u884c ionic start myApp blank \u5168\u767d, blank, tabs, sidemenu \u9019\u4e09\u500b\u9078\u9805<\/li>\n<\/ol>\n<\/li>\n
    3. \u5982\u4f55build android app\n
        \n
      1. \u78ba\u4fdd\u96fb\u8166\u5b89\u88dd\u4e86JDK, Android SDK, Apache Ant, Cordova\u53ca\u8a2d\u5b9a\u597dEnvironment Path \u8b8a\u91cf\n
          \n
        1. \u57f7\u884cionic platform android, \u63a5\u4e0b\u4f86\u5c31\u53ef\u4ee5 ionic build android\u4e86 (\u8a18\u5f97\u5728Project \u6839\u76ee\u9304\u91cc\u54e6)<\/li>\n
        2. \u5982\u679c\u8981\u6b63\u5f0fBuild App \uff0c\u4e00\u6a23 cordova build –release android<\/li>\n
        3. \u5728\u63d0\u4ea4App\u540c\u6642\uff0c\u9032\u5165 C:ProjectAppplatformandroidant-build \u9019\u88e1\u57f7\u884c\u5275\u5efakey.store\u6587\u4ef6\n
          keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048<\/span> -validity 10000<\/code><\/pre>\n<\/li>\n
        4. \u63a5\u4e0b\u4f86\u78ba\u4fdd\u60a8\u7684\u96fb\u8166\u53ef\u4ee5\u57f7\u884c jarsigner\u6307\u4ee4\uff0c\u904e\u5f8c\u57f7\u884c\n
          jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore CordovaApp-release-unsigned.apk alias_name<\/code><\/pre>\n<\/li>\n
        5. \u6700\u5f8c\u57f7\u884czipalign\n
          zipalign -v 4<\/span> CordovaApp-release-unsigned.apk HelloWorld.apk<\/code><\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n
        6. \u5347\u7d1aionic Lib\u7684\u6642\u5019\u5982\u4f55\u5347\u7d1a\n
            \n
          1. \u5728\u8a72\u6a94\u6848\u76ee\u9304\u4e0b\u57f7\u884c ionic lib update<\/li>\n<\/ol>\n<\/li>\n
          2. \u5347\u7d1aionic CLI \u5982\u4f55\u5462\uff1f\n
              \n
            1. npm update -g ionic<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"

              \u6211\u9019\u88e1\u4e3b\u8981\u91dd\u5c0d\u81ea\u5df1\u4f7f\u7528ionic\u958b\u767c\u7684HybirdApp \u7a2e\u7a2e\u554f\u984c\u7684\u8a18\u9304\u548c\u89e3\u7b54 \u5982\u4f55\u5b89\u88ddIonic \u78ba\u4fdd\u96fb\u8166\u5b89\u88dd\u4e86Nodejs\uff0c\u57f7\u884c\u5168\u5c40\u5b89\u88dd npm install -g cordova ionic bower \u5728\u6bd4\u5982Desktop \u5275\u5efaProject, \u57f7\u884c ionic start myApp blank \u5168\u767d, blank, tabs,…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-1455","post","type-post","status-publish","format-standard","hentry","category-front-end"],"_links":{"self":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts\/1455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/comments?post=1455"}],"version-history":[{"count":0,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/posts\/1455\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/media?parent=1455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/categories?post=1455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ookangzheng.com\/wp-json\/wp\/v2\/tags?post=1455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}