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(): ...@@ -65,6 +65,12 @@ def make_argument_parser():
default='', default='',
help='url tag' help='url tag'
) )
parser.add_argument(
'--qrcode-app',
default=False,
type=bool,
help='install qrcode app'
)
parser.add_argument( parser.add_argument(
'--event', '--event',
default='', default='',
...@@ -89,6 +95,7 @@ def package(options): ...@@ -89,6 +95,7 @@ def package(options):
argv['project_id'] = argv.get('project_id', options.project_id) argv['project_id'] = argv.get('project_id', options.project_id)
argv['pipeline_id'] = argv.get('pipeline_id', options.pipeline_id) argv['pipeline_id'] = argv.get('pipeline_id', options.pipeline_id)
argv['url_tag'] = argv.get('url_tag', options.url_tag) argv['url_tag'] = argv.get('url_tag', options.url_tag)
argv['qrcode_app'] = argv.get('qrcode_app', options.qrcode_app)
if options.event == 'deploy': if options.event == 'deploy':
package_script = './pack-deploy-ci.sh' package_script = './pack-deploy-ci.sh'
elif options.event == 'system-part': elif options.event == 'system-part':
...@@ -105,6 +112,7 @@ def package(options): ...@@ -105,6 +112,7 @@ def package(options):
'--project-id', argv['project_id'], '--project-id', argv['project_id'],
'--pipeline-id', argv['pipeline_id'], '--pipeline-id', argv['pipeline_id'],
'--url-tag', argv['url_tag'], '--url-tag', argv['url_tag'],
'--qrcode-app', str(argv['qrcode_app']).lower(),
]) ])
......
...@@ -8,6 +8,7 @@ usage() { ...@@ -8,6 +8,7 @@ usage() {
--project-id <project id> --project-id <project id>
--pipeline-id <pipeline id> --pipeline-id <pipeline id>
--url-tag <url tag> --url-tag <url tag>
--qrcode-app
--help" --help"
exit 1 exit 1
} }
...@@ -20,12 +21,13 @@ PACK_TYPE="owner" ...@@ -20,12 +21,13 @@ PACK_TYPE="owner"
PROJECT_ID="" PROJECT_ID=""
PIPELINE_ID="" PIPELINE_ID=""
URL_TAG="" URL_TAG=""
INSTALL_QRCODE_APP="false"
CHROOT_TYPE="androidrom" CHROOT_TYPE="androidrom"
DEPLOY="elf" 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 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}" eval set -- "${PARSED_ARUGMENTS}"
while : while :
do do
...@@ -38,6 +40,7 @@ do ...@@ -38,6 +40,7 @@ do
--project-id) PROJECT_ID="$2"; shift 2;; --project-id) PROJECT_ID="$2"; shift 2;;
--pipeline-id) PIPELINE_ID="$2"; shift 2;; --pipeline-id) PIPELINE_ID="$2"; shift 2;;
--url-tag) URL_TAG="$2"; shift 2;; --url-tag) URL_TAG="$2"; shift 2;;
--qrcode-app) INSTALL_QRCODE_APP="$2"; shift 2;;
--help) usage ;; --help) usage ;;
--) shift; break;; --) shift; break;;
*) usage ;; *) usage ;;
......
...@@ -25,7 +25,7 @@ CHROOT_TYPE="androidrom" ...@@ -25,7 +25,7 @@ CHROOT_TYPE="androidrom"
DEPLOY="elf" DEPLOY="elf"
export PATH=${PATH}:$(pwd)/tools/ 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}" eval set -- "${PARSED_ARUGMENTS}"
while : while :
do do
......
...@@ -25,7 +25,7 @@ CHROOT_TYPE="androidrom" ...@@ -25,7 +25,7 @@ CHROOT_TYPE="androidrom"
DEPLOY="elf" DEPLOY="elf"
export PATH=${PATH}:$(pwd)/tools/ 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}" eval set -- "${PARSED_ARUGMENTS}"
while : while :
do 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