Skip to content

Commit

Permalink
enhancement: improved APK Names
Browse files Browse the repository at this point in the history
  • Loading branch information
adityastic committed Jul 1, 2019
1 parent 7e8a10e commit 60c4b9e
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions scripts/upload-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ else
fi

\cp -r ../app/build/outputs/apk/*/**.apk .
\cp -r ../app/build/outputs/apk/debug/output.json debug-output.json
\cp -r ../app/build/outputs/apk/release/output.json release-output.json
\cp -r ../README.md .

# Signing Apps

Expand All @@ -37,14 +34,22 @@ fi

if [[ "$TRAVIS_BRANCH" == "$PUBLISH_BRANCH" ]]; then
for file in app*; do
mv ${file} badge-magic-master-${file%%}
done
if [[ ${file} =~ "unsigned" || ${file} =~ "unaligned" ]]; then
rm ${file}
else
mv ${file} badge-magic-master-${file:4}
fi
done
fi

if [[ "$TRAVIS_BRANCH" == "$DEPLOY_BRANCH" ]]; then
for file in app*; do
mv ${file} badge-magic-dev-${file%%}
done
if [[ ${file} =~ "unsigned" ]]; then
rm ${file}
else
mv ${file} badge-magic-dev-${file:4}
fi
done
fi

# Create a new branch that will contains only latest apk
Expand Down

0 comments on commit 60c4b9e

Please sign in to comment.