Giter Site home page Giter Site logo

ztool's Introduction

How to install

use the follow command to install all the tools.

git clone https://github.com/peter-m-shi/ztool.git $HOME/ztool;sh $HOME/ztool/setup.sh

use the foloow command to install a special tool.

sh setup.sh ipa

How to use tools

gitf

before use gitf

Make sure user name is configrured, it will be used for checking a branch is personal or not.

git config --global user.name sp

Make sure stash config is inited, before 'pr' can be used.

stash configure

feature flow

Start a feature flow

ff featureA go

Create a feature branch merge pull request

ff featureA pr

Finish a feature flow

ff featureA ok

release flow

Start a release flow

fr 5.0.0 go

Create a release branch merge pull request

fr 5.0.0 pr

Finish a release flow

fr 5.0.0 ok

bugfix flow

Start a bugfix flow

fb JIRA-4902 go

Create a bugfix branch merge pull request

fb JIRA-4902 pr

Finish a bugfix flow

fb JIRA-4902 ok

hotfix flow

Start a hotfix flow

fh adCrash go

Create a hotfix branch merge pull request

fh adCrash pr

Finish a hotfix flow

fh adCrash ok

gitz

How to switch sub

Create a sub personal branch:

zb

How to switch super

Switch back to super branch:

zp

How to delete

Delete both local and remote branch:

zd feature-newTest

How to pull

Pull update from remote

zl

How to push

Push update to remote

zh

How to create pull request

Create a pull request to stash server

zr

package

Change xcode project configuration by gien config file

pkg -env dev.cfg

Build xcode project

pkg -build

Build xcode project by Debug or Release

pkg -build Debug

Clean xcode project

pkg -clean

Make ipa file

pkg -make

Batch make ipa file

pkg -bat

Env configuration

[Use ':' to define Action && Object]
|							Action							|		Object			  |
|			Key 		  |flag|			Value 			|subObj|		Obj 	  |
GCC_PREPROCESSOR_DEFINITIONS++DEBUG=1 INHOUCE_LOC=0 OTHER=1:Widget<-Project.xcodeproj

Action flag:
[>>]
Use 'key>>value' Set key-value in Action: 
CFBundleIdentifier>>com.company.product

[++]
Use 'key++value' add key-value in Action:
GCC_PREPROCESSOR_DEFINITIONS++A=1 B=3 C=3

[Object]
Use 'subObj<-Obj' define target of project:
Widget<-Project.xcodeproj

[Object Support Type]
.plist
.entitlements
.xcodeproj
.file(only format)

Make configuration

1、Defined by action

filed description remark
Build Mode argument used in 'pkg -b [debug/release]'
Build Time the time when build/make %Y%m%d%H%M%S

2、Defined in Info.plist

filed description remark
Product Name Bundle name String type, etc. "Product"
Product Version Bundle versions string, short String type, etc. "6.2.0"
Build Version Bundle version Interger type, etc. 620

3、Custom filed defined in Info.plist

filed description remark
Product Stage APP_STAGE String type, etc. "stage 1"
Git Version APP_GIT_REVISION
Channel APP_CHANNEL String type, etc. "91"
Environment APP_ENV Interger type,0-DevEnv 1-TestEnv 2-GreyEnv 3-ReleaseEnv
Custom APP_CUSTOM String type, etc. "custom filed"

4、Fields prioprity in ipa name:

{Product Name}\_{Product Version}\_{Build Mode}\_{Product Stage}\_{Build Time}\_{Channel}\_{Environment}\_{Custom}\_{Build Version}\_{Git Version}

5、Enable build version auto increase

set CFBundleVersionAutoIncrease=1 in Info.plist

mptools

List all the provisionprofile file

mplist

Remove all the provisionprofile file

mpclean

Install provisionprofile file

mpinstall xxx.provisionprofile

Install provisionprofile folder

mpinstall ./Download/Profiles/

localizable

Use locinit to init configrure in localizable folder

locinit

Use loc2s to convert xls to strings file

loc2s

Use loc2x to convert strings file to xls

loc2x

Use lochelp to show help info

lochelp

utility

Quik start project by Xcode

xx

Quik start project by AppCode

aa

Quik start project by Android Studio

ss

shell

change shell to zsh

sh setup.sh shell

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.