forked from albertz/commandergenius
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
197 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/sh | ||
|
||
APK=$1 | ||
if [ -z "$APK" ] ; then | ||
APK=project/bin/DemoActivity-debug.apk | ||
fi | ||
|
||
echo Moving shared libraries on $APK to SD card | ||
APK=`pwd`/$APK | ||
|
||
[ -e $APK ] || { echo File $APK does not exist; exit 1; } | ||
|
||
TMPDIR=app2sd-$$ | ||
|
||
mkdir -p $TMPDIR | ||
cd $TMPDIR | ||
|
||
unzip $APK "lib/armeabi/*" || { echo "This apk file has already been app2sd-ed, or improperly compiled"; exit 1; } | ||
|
||
zip -j bindata.zip lib/armeabi/* | ||
mkdir assets | ||
split -b 1048576 -d -a 1 bindata.zip assets/bindata | ||
rm bindata.zip | ||
|
||
zip -d $APK "lib/armeabi/*" "META-INF/*" | ||
|
||
zip -0 $APK assets/bindata* | ||
|
||
jarsigner -verbose -keystore ~/.android/debug.keystore -storepass "android" $APK androiddebugkey | ||
|
||
zipalign 4 $APK $APK-tmp | ||
mv -f $APK-tmp $APK | ||
|
||
cd .. | ||
rm -rf $TMPDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+830 KB
...pplication/fheroes2/AndroidData/data8.zip → ...pplication/fheroes2/AndroidData/data9.zip
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ballfield | ||
fheroes2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters