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
d3635361
Commit
d3635361
authored
Jan 24, 2024
by
fuyanbin
Browse files
fix: packtype and channelid
parent
a029686f
Changes
2
Show whitespace changes
Inline
Side-by-side
pack.sh
View file @
d3635361
...
...
@@ -8,6 +8,7 @@ usage() {
--chroot-type <pack type>
--orgcode <organization code>
--channelid <channel id>
--packtype <pack type>
--help"
exit
1
}
...
...
@@ -19,6 +20,7 @@ DEPLOY="elf"
ORGCODE
=
""
CHANNELID
=
""
IMAGE_FILE
=
""
PACK_TYPE
=
"other"
# new append
NOUPLOAD
=
"false"
...
...
@@ -36,6 +38,7 @@ do
--chroot-type
)
CHROOT_TYPE
=
"
$2
"
;
shift
2
;;
--orgcode
)
ORGCODE
=
"
$2
"
;
shift
2
;;
--channelid
)
CHANNELID
=
"
$2
"
;
shift
2
;;
--packtype
)
PACK_TYPE
=
"
$2
"
;
shift
2
;;
--help
)
usage
;;
--
)
shift
;
break
;;
*
)
usage
;;
...
...
@@ -87,7 +90,7 @@ build_image() {
rm
-f
"
$systemfile_ext4
"
fi
aml_image_v2_packer
-r
"/
$build_dir
/image.cfg"
"
$build_dir
"
"
${
packge_dir
}
/
$(
basename
"
$img
"
)
"
rm
-rf
"
$build_dir
/
"
rm
-rf
"
$build_dir
"
}
generate_vendor_confg
()
{
...
...
@@ -101,6 +104,8 @@ generate_vendor_confg() {
sed
-i
''
"s#__ORGCODE__#
$ORGCODE
#g"
"
$yaml_file_src
"
sed
-i
''
"s#__CHROOT_TYPE__#
$CHROOT_TYPE
#g"
"
$yaml_file_src
"
sed
-i
''
"s#__DEPLOY__#
$DEPLOY
#g"
"
$yaml_file_src
"
sed
-i
''
"s#__CHANNEL_ID__#
$CHANNELID
#g"
"
$yaml_file_src
"
sed
-i
''
"s#__PACK_TYPE__#
$PACK_TYPE
#g"
"
$yaml_file_src
"
aio
-m
enc
-i
"
$yaml_file_src
"
-o
"
$yaml_file
"
}
...
...
@@ -137,7 +142,7 @@ upload() {
echo
"RESULT:
${
VENDOR
}
${
IMG_URL
}
${
MD5SUM
}
${
TITLE
}
"
rm
-f
"
$outfile
"
"
$outfile_7z
"
rm
-rf
"
$packge_dir
/
"
rm
-rf
"
$packge_dir
"
fi
}
...
...
vendor.yaml.src
View file @
d3635361
...
...
@@ -5,3 +5,5 @@ info:
mode: arm32
chroottype: __CHROOT_TYPE__
deploy: __DEPLOY__
packtype: __PACK_TYPE__
channelid: __CHANNEL_ID__
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