GithubHelp home page GithubHelp logo

rudolfcn / iospackage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from forkong/iospackage

0.0 2.0 0.0 619 KB

iOS批量编译输出渠道包(Python)

Objective-C 48.71% Makefile 14.43% Python 36.86%

iospackage's Introduction

iOS批量编译输出渠道包

背景

最近朋友公司的app渠道变多了,每个渠道包基本没有太多差异,只要更换一下图片和渠道号就行。

如果手动打的话,实在太繁琐了,所以,我就帮他写了个Python脚本

(主要是我Python比较水,找机会练手)

工程目录结构

工程目录结构主要类似于下面:

.
├── ArcTest
│   ├── ArcTest
│   ├── ArcTest.xcodeproj
│   ├── ArcTestTests
│   └── build
├── IPA
│   └── PP
├── MultiChannels
│   ├── 91
│   ├── AppStore
│   ├── HAIMA
│   ├── HULU
│   ├── KuaiYong
│   ├── PP
│   ├── TongBuTui
│   ├── XY
│   └── iTools
└── build.py
  • ArcTest:工程目录
  • MultiChannels:多渠道文件,里面包含需要替换的图片和包含渠道名称和渠道号的plist文件
.
├── 91
│   ├── Channel.plist
│   ├── [email protected]
│   ├── [email protected]
│   ├── [email protected]
│   └── [email protected]
├── AppStore
│   ├── Channel.plist
│   ├── [email protected]
│   ├── [email protected]
│   ├── [email protected]
│   └── [email protected]
  • build.py:批量打包使用的python文件
  • IPA:最后打包生成的文件目录,里面包含各个渠道的文件夹,各渠道文件夹内包含生成的.app .dSYM .ipa文件

build.py

主要过程就是:

  1. 替换文件
  2. clean
  3. 编译
  4. copy文件到IPA目录
  5. 生成.ipa文件

iospackage's People

Watchers

James Cloos avatar  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.