Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask_android
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
bitmask_android
Commits
07372e3e
Commit
07372e3e
authored
Mar 25, 2021
by
cyberta
Browse files
Options
Downloads
Patches
Plain Diff
fix prepareForDistribution script after update gradle plugin
parent
1c5e044b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!133
Fix releasing
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/prepareForDistribution.sh
+11
-11
11 additions, 11 deletions
scripts/prepareForDistribution.sh
with
11 additions
and
11 deletions
scripts/prepareForDistribution.sh
+
11
−
11
View file @
07372e3e
...
@@ -43,16 +43,16 @@ function sign {
...
@@ -43,16 +43,16 @@ function sign {
fi
fi
FINAL_APK
=
"
${
FILE_DIR
}
/
${
FILE_NAME
}
"
FINAL_APK
=
"
${
FILE_DIR
}
/
${
FILE_NAME
}
"
ALIGNED_UNSIGNED_APK
=
"
${
FILE_DIR
}
/aligned-
${
FILE_NAME
}
"
#
ALIGNED_UNSIGNED_APK="${FILE_DIR}/aligned-${FILE_NAME}"
ALIGNED_SIGNED_APK
=
"
${
FILE_DIR
}
/aligned-signed-
${
FILE_NAME
}
"
#
ALIGNED_SIGNED_APK="${FILE_DIR}/aligned-signed-${FILE_NAME}"
echo
-e
"
${
GREEN
}
-> zip align
${
ALIGNED_UNSIGNED_APK
}${
NC
}
"
#
echo -e "${GREEN} -> zip align ${ALIGNED_UNSIGNED_APK}${NC}"
${
ANDROID_BUILD_TOOLS
}
/zipalign
-v
-p
4
"
${
FINAL_APK
}
"
${
ALIGNED_UNSIGNED_APK
}
>
/dev/null
&&
echo
"zip alignment successful"
||
quit
#
${ANDROID_BUILD_TOOLS}/zipalign -v -p 4 "${FINAL_APK}" ${ALIGNED_UNSIGNED_APK} > /dev/null && echo "zip alignment successful" || quit
echo
-e
"
${
GREEN
}
-> apksign
${
ALIGNED_UNSIGNED
_APK
}${
NC
}
"
echo
-e
"
${
GREEN
}
-> apksign
${
FINAL
_APK
}${
NC
}
"
${
ANDROID_BUILD_TOOLS
}
/apksigner sign
--ks
"
${
KEY_STORE_STRING
}
"
--out
${
ALIGNED_SIGNED_APK
}
${
ALIGNED_UNSIGNED
_APK
}
||
quit
${
ANDROID_BUILD_TOOLS
}
/apksigner sign
--ks
"
${
KEY_STORE_STRING
}
"
--out
${
FINAL_APK
}
${
FINAL
_APK
}
||
quit
rm
${
ALIGNED_UNSIGNED_APK
}
#
rm ${ALIGNED_UNSIGNED_APK}
FINGERPRINT
=
$(
unzip
-p
${
ALIGNED_SIGNED
_APK
}
META-INF/
*
.RSA | keytool
-printcert
|
grep
"SHA256"
|
tr
-d
'[:space:]'
)
||
quit
FINGERPRINT
=
$(
unzip
-p
${
FINAL
_APK
}
META-INF/
*
.RSA | keytool
-printcert
|
grep
"SHA256"
|
tr
-d
'[:space:]'
)
||
quit
if
[[
${
FINGERPRINT
}
==
${
EXPECTED_FINGERPRINT
}
]]
if
[[
${
FINGERPRINT
}
==
${
EXPECTED_FINGERPRINT
}
]]
then
then
...
@@ -62,8 +62,8 @@ function sign {
...
@@ -62,8 +62,8 @@ function sign {
quit
quit
fi
fi
echo
-e
"
${
GREEN
}
-> rename aligned signed apk to
${
FINAL_APK
}${
NC
}
"
#
echo -e "${GREEN} -> rename aligned signed apk to ${FINAL_APK}${NC}"
cp
${
ALIGNED_SIGNED_APK
}
${
FINAL_APK
}
||
quit
#
cp ${ALIGNED_SIGNED_APK} ${FINAL_APK} || quit
cleanUp
cleanUp
#---- GPG SIGNING ----
#---- GPG SIGNING ----
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment