-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·32 lines (28 loc) · 895 Bytes
/
build.sh
File metadata and controls
executable file
·32 lines (28 loc) · 895 Bytes
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
#!/bin/sh
sdk_name=renpy-$1-sdk
echo "Downloading the specified SDK (${sdk_name})..."
wget -q https://www.renpy.org/dl/$1/${sdk_name}.tar.bz2
clear
echo "Downloaded SDK version (${sdk_name})."
echo "Setting up the specified SDK (${sdk_name})..."
tar -xf ./${sdk_name}.tar.bz2
rm ./${sdk_name}.tar.bz2
mv ./${sdk_name} ../renpy
if $3; then
echo "Downloading Steam libraries..."
wget -q http://www.renpy.org/dl/steam/renpy-steam-libs.zip
unzip renpy-steam-libs.zip
rm renpy-steam-libs.zip
echo "Copying Steam libraries over to the Ren'Py SDK..."
cp -rv lib/ ../renpy/lib/
rm -r lib
echo "Files copied."
fi
echo "Building the project at $2..."
if ../renpy/renpy.sh ../renpy/launcher distribute $2; then
built_dir=$(ls | grep '\-dists')
echo ::set-output name=dir::$built_dir
echo ::set-output name=version::${built_dir%'-dists'}
else
return 1
fi