iOS自動打包指令碼

2021-06-20 11:23:55 字數 976 閱讀 6018

最近比較對指令碼感興趣,但是學起來,感覺不但很多編輯器,而且指令碼種類眾多,而且實現方法也比較多,所以所學以shell指令碼為準,編輯器以vim,但是大同小異,大家也可以參考。

首先貼上**:

#!/bin/sh

#工程絕對路徑

cd $1

project_path=$(pwd)

#build資料夾路徑

build_path=$/build

ipa_path=$/ipa-build

cd $project_path

#target名稱編譯工程

if [ $# = 2 ];then

xcodebuild -target $2 clean

xcodebuild -target $2 || exit

else

xcodebuild -alltargets clean

xcodebuild -alltargets || exit

fi#打包

if [ -d ./ipa-build ];then

rm -rf ipa-build

fimkdir -p ./ipa-build

#cd ipa-build

#zip -r $.ipa *

#rm -rf payload

folder_a="$1/build/release-iphoneos"

for file_a in $/*; do

temp_file=$file_a

echo $inpath

#echo $outname

#echo $inpath

done

這個指令碼主要實現了xode下的自動打包功能,而且是多渠道的哦,針對多個target,使用起來也很簡單,

./ipa-build 工程的絕對路徑  target name(可選)

如果不寫的話,預設編譯所有target

iOS自動打包指令碼

ios自動打包指令碼,並實現素材 文字資源 部分 的替換和重簽名,基於python實現。config.py 配置指令碼 autopackage.py 自動化指令碼 prepareimagestool.py 拷貝工程中的結構出來用來更換後準備替換 2 伺服器的ip位址 3 反饋郵箱 6 在mac電腦中...

Unity 自動化打包指令碼

unity的專案手動打包確實很痛苦,得慢慢等著,好無聊,能自動化指令碼打包什麼的最好了,閒話不多說直接上指令碼。windows的bat指令碼 echo off set companyname 公司名字 set productname 遊戲名字 set platform 0 這個是平台編號 set o...

gxt工程打包指令碼

build.xml the directories where all the source information is located that is used to populate the target directory.the directory where all the interm...