Language: BASH Shell Script
- Jenkins server on any macOS machine
-
- (Mandatory) Install
Xcodecommand line tools from "https://developer.apple.com/download/more/" for only iOS
- (Mandatory) Install
-
- (Mandatory) Install
jqvia HomeBrew, brew install jq
- (Mandatory) Install
-
- (Mandatory) Install
bundletoolfor Android AAB output since 2021 Aug, brew install bundletool
- (Mandatory) Install
-
- (Optional) Install
slackfrom "https://github.com/rockymadden/slack-cli" (also use "brew install rockymadden/rockymadden/slack-cli"), run "slack init", and Enter Slack API token from https://api.slack.com/custom-integrations/legacy-tokens
- (Optional) Install
-
- (Optional) If using slack, Adjust
jqpath as "/usr/local/bin/jq" in "/usr/local/bin/slac"
- (Optional) If using slack, Adjust
-
- (Optional) Install
a2psvia HomeBrew, brew install a2ps
- (Optional) Install
-
- (Optional) Install
gsvia HomeBrew, brew install gs
- (Optional) Install
-
- (Optional) Install
convert(ImageMagick) via HomeBrew, brew install imagemagick
- (Optional) Install
- First you should get it into your iOS or Android source working copy like following:
git submodule add https://github.com/neoroman/JenkinsBuild.git jenkins git submodule init git submodule update - Add pull rebase true to global configuration of git
git config pull.rebase true
-
Just put following line if you don't want add as submodule
git submodule add https://github.com/neoroman/JenkinsBuild.git jenkins -
Update submodule for
iOSinto{WebServer}/{DocumentRoot}/NeoRoman/AppProjectgit config -f .gitmodules submodule.jenkins.url https://github.com/neoroman/JenkinsBuild.git git submodule sync git submodule update --force --recursive --init --remote git submodule foreach git pull origin main ## Actual script for executing build bash -ex ${WORKSPACE}/jenkins/build.sh -p ios --toppath "NeoRoman/AppProject" -
Update submodule for
Androidinto{WebServer}/{DocumentRoot}/NeoRoman/AppProjectgit config -f .gitmodules submodule.jenkins.url https://github.com/neoroman/JenkinsBuild.git git submodule sync git submodule update --force --recursive --init --remote git submodule foreach git pull origin main ## Actual script for executing build bash -ex ${WORKSPACE}/jenkins/build.sh -p android --toppath "NeoRoman/AppProject"
## Actual script for executing build
bash -ex ${WORKSPACE}/jenkins/build.sh -p android --toppath "NeoRoman/AppProject" \
--config "${WORKSPACE}/jenkins_config/config.json" \
--language "${WORKSPACE}/jenkins_config/lang_ko.json"
- Add configurations of distribution sites with --config argument.
- Add language for display messages of distribution sites with --language argument.
ALTERANT / [email protected]
See the LICENSE file for more info.
