Coder Social home page Coder Social logo

packapk's Introduction

PackApk: Python打包apk脚本

auto.pyauto.config是使用Python写的脚本,主要用来从Git拉项目代码后打包成apk

Usage

1.环境准备:配置好python(2.x或3.x)、gradle环境

2.将auto.pyauto.config 文件放在同一级目录下。

3.然后配置auto.config文件:

  • Root_SDK_Dir 是你的SDK的绝对路径
  • git_clone_address 是你的Git地址
  • git_branch_name 要拉取的远端分支名
  • assembleRelease boolean值,是否打release包
  • base_file_dir 是一个绝对路径,可随便填
  • create_dir_name 将在base_file_dir生成一个目录,用于存放项目代码和打出来的APK文件
  • create_code_dir_name 项目代码存放的目录名
  • create_apk_dir_name APK文件存放目录名
  • apk_name 自定义apk的名字,必须带后缀.apk

配置好后你就可以使用python命令行运行该脚本,等待打包完成。

4.打开控制台,进入当前项目的目录,然后执行:

   python auto.py

或者

   python3 auto.py

packapk's People

Contributors

claymantwinkle avatar

Watchers

James Cloos avatar Joker avatar

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.