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
59407f9d
Commit
59407f9d
authored
Jan 23, 2024
by
fuyanbin
Browse files
cleanup
parent
a5f4b04b
Changes
1
Hide whitespace changes
Inline
Side-by-side
pack.sh
View file @
59407f9d
...
@@ -119,12 +119,7 @@ update_hugepall_zipfile() {
...
@@ -119,12 +119,7 @@ update_hugepall_zipfile() {
upload
()
{
upload
()
{
# get current time
# get current time
local
date_i
=
$(
date
+%Y-%m-%d-%s
)
local
date_i
=
$(
date
+%Y-%m-%d-%s
)
echo
"
$date_i
"
echo
"line 34 end"
echo
"
$IMAGE_FILE
"
outfile
=
$(
basename
"
$IMAGE_FILE
"
)
outfile
=
$(
basename
"
$IMAGE_FILE
"
)
echo
"
$outfile
"
MD5SUM
=
$(
md5sum
${
outfile
}
|
awk
'{print $1}'
)
MD5SUM
=
$(
md5sum
${
outfile
}
|
awk
'{print $1}'
)
if
[[
"
$NOUPLOAD
"
!=
"true"
]]
if
[[
"
$NOUPLOAD
"
!=
"true"
]]
then
then
...
@@ -138,10 +133,6 @@ upload() {
...
@@ -138,10 +133,6 @@ upload() {
upload.sh
$args
--file
${
outfile
}
--directory
product/terminal/chroot_androidrom/
${
ORGCODE
}
/
${
date_i
}
upload.sh
$args
--file
${
outfile
}
--directory
product/terminal/chroot_androidrom/
${
ORGCODE
}
/
${
date_i
}
# construct URL
# construct URL
IMG_URL
=
"https://cdn.linkfog.cn/""product/terminal/chroot_androidrom/
${
ORGCODE
}
/
${
date_i
}
"
IMG_URL
=
"https://cdn.linkfog.cn/""product/terminal/chroot_androidrom/
${
ORGCODE
}
/
${
date_i
}
"
# title
TITLE
=
"???Armbian ???,VENDOR:
${
VENDOR
}
,ORGCODE:
${
ORGCODE
}
${
date
}
"
mail.sh
${
VENDOR
}
${
IMG_URL
}
${
MD5SUM
}
${
TITLE
}
2>/dev/null
echo
"RESULT:
${
VENDOR
}
${
IMG_URL
}
${
MD5SUM
}
${
TITLE
}
"
echo
"RESULT:
${
VENDOR
}
${
IMG_URL
}
${
MD5SUM
}
${
TITLE
}
"
# delete .img file
# delete .img file
...
...
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