Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
付燕斌
android-image-pack-tool
Commits
e3c4381b
Commit
e3c4381b
authored
Oct 28, 2024
by
fuyanbin
Browse files
指定参数安装qrcode app
parent
f942e97f
Pipeline
#59200
failed with stages
in 4 seconds
Changes
4
Pipelines
25
Show whitespace changes
Inline
Side-by-side
gitlab-ci.py
View file @
e3c4381b
...
...
@@ -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
(),
])
...
...
pack-ci.sh
View file @
e3c4381b
...
...
@@ -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
;;
...
...
pack-deploy-ci.sh
View file @
e3c4381b
...
...
@@ -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
...
...
pack-system-part-ci.sh
View file @
e3c4381b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment