mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
Merge remote-tracking branch 'sf/android_branch' into android_multi2
This commit is contained in:
commit
1e051e835c
3 changed files with 28 additions and 0 deletions
|
@ -16,6 +16,9 @@
|
|||
</target>
|
||||
|
||||
<target name="my-pre-build">
|
||||
<exec dir="." executable="../scripts/key-setup.sh"
|
||||
failonerror="true"
|
||||
/>
|
||||
<exec dir="." executable="../scripts/ndksetup.sh" output="/dev/null"
|
||||
failonerror="true">
|
||||
<arg value="${build.target}"/>
|
||||
|
|
BIN
xwords4/android/scripts/debug.keystore
Normal file
BIN
xwords4/android/scripts/debug.keystore
Normal file
Binary file not shown.
25
xwords4/android/scripts/key-setup.sh
Executable file
25
xwords4/android/scripts/key-setup.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e -u
|
||||
|
||||
HOMELOC=~/.android/debug.keystore
|
||||
HERELOC=$(pwd)/$(dirname $0)/debug.keystore
|
||||
# SCRIPTS=
|
||||
|
||||
if [ -L $HOMELOC ]; then
|
||||
if cmp $(readlink $HOMELOC) $HERELOC; then
|
||||
exit 0
|
||||
fi
|
||||
elif [ -e $HOMELOC ]; then
|
||||
cat << EOF
|
||||
* You are using a different keystore from what's part of this project.
|
||||
* You won't be able to install this over something built from a
|
||||
* different machine. If that's not ok, remove it (i.e. run this on a
|
||||
* commandline:
|
||||
rm $HOMELOC
|
||||
* and rerun ant to use the built-in keystore.
|
||||
EOF
|
||||
else
|
||||
echo "$0: creating link at $HOMELOC"
|
||||
ln -sf $HERELOC $HOMELOC
|
||||
fi
|
Loading…
Add table
Reference in a new issue