Git Product home page Git Product logo

apk-build's Introduction

apk-build

apk-build node 一款安卓打包apk的工具

npm version

how to install

  1. 打开你的终端Terminal
  • 输入npm -v查看是否安装npm
  • 如果没有安装,请到nodejs官网进行安装
  • npm安装完成以后,终端运行npm install -g apk-build
  • 终端运行apk-build -h确认安装成功

如果还有其他疑问,可以参照npm相关资料,希望可以帮助你更好得了解它

Command

apk-build <project_path> <keystore_path> <keystore_name> <keystore_password> -v -o <ipa_output_path> 

参数(必填项):

参数 参数说明
project_path 代表项目路径
keystore_path 代表打包证书的路径
keystore_name 代表打包证书的名称
keystore_password 代表打包证书的密码

可选项:

可选项 参数用途 参数例子 默认参数
-v 打印日志 无需参数 无输出
-o ipa输出路径 ~/.apk 终端当前路径下的build文件夹

Usages

  1. 打开终端Terminal
  • 输入cd指令进入你的项目文件夹
  • 输入apk-build test/node/android test/android.keystore android.keystore 123456
  • 输入open .获取apk文件

目前版本不是很稳定,只能打包简单的Android项目。

keystore

如何生成keystore

进入终端,输入下列命令,然后根据指定的要求输入特定的内容。

keytool -genkey -alias android.keystore -keyalg RSA -validity 20000 -keystore android.keystore

Test

如何测试apk-build?

打开终端,输入npm test,等打包完毕,输入open .,就可以看到生成完毕的signed.apk

##Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

History

  • v0.1.0 初始化版本

Welcome fork and feedback

如有建议或意见,请在issue提问或邮件

License

this repo is released under the MIT License.

apk-build's People

Contributors

andy0323 avatar

Stargazers

 avatar dave avatar Zerofo avatar 残血战士 avatar kuleyu avatar CodeFarmer avatar Breno Ribeiro avatar super watano avatar

Watchers

James Cloos avatar  avatar

apk-build's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.