Commit e3c4381b authored by fuyanbin's avatar fuyanbin
Browse files

指定参数安装qrcode app

parent f942e97f
Pipeline #59200 failed with stages
in 4 seconds
......@@ -65,6 +65,12 @@ def make_argument_parser():
default='',
help='url tag'
)
parser.add_argument(
'--qrcode-app',
default=False,
type=bool,
help='install qrcode app'
)
parser.add_argument(
'--event',
default='',
......@@ -89,6 +95,7 @@ def package(options):
argv['project_id'] = argv.get('project_id', options.project_id)
argv['pipeline_id'] = argv.get('pipeline_id', options.pipeline_id)
argv['url_tag'] = argv.get('url_tag', options.url_tag)
argv['qrcode_app'] = argv.get('qrcode_app', options.qrcode_app)
if options.event == 'deploy':
package_script = './pack-deploy-ci.sh'
elif options.event == 'system-part':
......@@ -105,6 +112,7 @@ def package(options):
'--project-id', argv['project_id'],
'--pipeline-id', argv['pipeline_id'],
'--url-tag', argv['url_tag'],
'--qrcode-app', str(argv['qrcode_app']).lower(),
])
......
......@@ -8,6 +8,7 @@ usage() {
--project-id <project id>
--pipeline-id <pipeline id>
--url-tag <url tag>
--qrcode-app
--help"
exit 1
}
......@@ -20,12 +21,13 @@ PACK_TYPE="owner"
PROJECT_ID=""
PIPELINE_ID=""
URL_TAG=""
INSTALL_QRCODE_APP="false"
CHROOT_TYPE="androidrom"
DEPLOY="elf"
export PATH=$(pwd)/tools/android-tools:$(pwd)/tools/:$(pwd)/tools/amlogic_tool:$(pwd)/tools/rockchip_tool:$(pwd)/tools/rockchip_tool/obsutil:$(pwd)/tools/allwinner:$PATH
PARSED_ARUGMENTS=$(getopt -a -n "$0" -o 'x' --long help,build-directory:,vendor:,orgcode:,channel-id:,package-type:,project-id:,pipeline-id:,url-tag: -- "$@")
PARSED_ARUGMENTS=$(getopt -a -n "$0" -o 'x' --long help,build-directory:,vendor:,orgcode:,channel-id:,package-type:,project-id:,pipeline-id:,url-tag:,qrcode-app:, -- "$@")
eval set -- "${PARSED_ARUGMENTS}"
while :
do
......@@ -38,6 +40,7 @@ do
--project-id) PROJECT_ID="$2"; shift 2;;
--pipeline-id) PIPELINE_ID="$2"; shift 2;;
--url-tag) URL_TAG="$2"; shift 2;;
--qrcode-app) INSTALL_QRCODE_APP="$2"; shift 2;;
--help) usage ;;
--) shift; break;;
*) usage ;;
......
......@@ -25,7 +25,7 @@ CHROOT_TYPE="androidrom"
DEPLOY="elf"
export PATH=${PATH}:$(pwd)/tools/
PARSED_ARUGMENTS=$(getopt -a -n "$0" -o 'x' --long help,build-directory:,vendor:,orgcode:,channel-id:,package-type:,project-id:,pipeline-id:,url-tag: -- "$@")
PARSED_ARUGMENTS=$(getopt -a -n "$0" -o 'x' --long help,build-directory:,vendor:,orgcode:,channel-id:,package-type:,project-id:,pipeline-id:,url-tag:,qrcode-app:, -- "$@")
eval set -- "${PARSED_ARUGMENTS}"
while :
do
......
......@@ -25,7 +25,7 @@ CHROOT_TYPE="androidrom"
DEPLOY="elf"
export PATH=${PATH}:$(pwd)/tools/
PARSED_ARUGMENTS=$(getopt -a -n "$0" -o 'x' --long help,build-directory:,vendor:,orgcode:,channel-id:,package-type:,project-id:,pipeline-id:,url-tag: -- "$@")
PARSED_ARUGMENTS=$(getopt -a -n "$0" -o 'x' --long help,build-directory:,vendor:,orgcode:,channel-id:,package-type:,project-id:,pipeline-id:,url-tag:,qrcode-app:, -- "$@")
eval set -- "${PARSED_ARUGMENTS}"
while :
do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment