forked from renpy/rapt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_renpy.sh
executable file
·50 lines (40 loc) · 1.1 KB
/
build_renpy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
set -e
unset RENPY_STEAM_PLATFORM
unset RENPY_STEAM_SDK
export ROOT=$(dirname $(readlink -f $0))
export DIST="$ROOT/dist"
export RENPY_ROOT="${2:-/home/tom/ab/renpy}"
export PYGAME_SDL2_ROOT="${3:-/home/tom/ab/pygame_sdl2}"
pushd "$ROOT/native"
./build.sh
popd
cd "$ROOT"
rm -Rf "$RENPY_ROOT/rapt"
mkdir -p "$RENPY_ROOT/rapt"
rm -Rf "$DIST"
ln -s "$RENPY_ROOT/rapt" "$DIST"
for i in android.py blacklist.txt buildlib templates whitelist.txt; do
cp -a "$ROOT/$i" "$DIST/$i"
done
cp -a "$ROOT/project" "$DIST/prototype"
date > "$DIST/prototype/build.txt"
for i in build \
.gradle \
local.properties \
app/build \
app/build.gradle \
app/debug \
app/src/main/AndroidManifest.xml \
app/src/main/assets \
app/src/main/res/values/strings.xml \
app/src/main/res/mipmap-*dpi \
app/release \
renpyandroid/build \
renpyandroid/src/main/java/org/renpy/android/Constants.java \
renpyandroid/src/main/AndroidManifest.xml \
renpyandroid/src/main/res/values/strings.xml \
buildlib/CheckJDK8.class \
; do
rm -Rf "$DIST/prototype/$i"
done