forked from openframeworks/openFrameworks
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·59 lines (45 loc) · 1.76 KB
/
install.sh
File metadata and controls
executable file
·59 lines (45 loc) · 1.76 KB
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
51
52
53
54
55
56
57
58
59
OF_ROOT=$PWD
SCRIPT_DIR="${BASH_SOURCE%/*}"
RELEASE="${RELEASE:-nightly}"
if [[ ! -d "$SCRIPT_DIR" ]]; then SCRIPT_DIR="$PWD"; fi
. "$SCRIPT_DIR/../../dev/downloader.sh"
unset BITS
cd "${OF_ROOT}"
./scripts/vs/download_libs.sh -p vs --silent -t $RELEASE
rm -rf projectGenerator
mkdir -p projectGenerator
cd projectGenerator
if [[ "$RELEASE" == "nightly" ]] || [[ "$RELEASE" == "latest" ]]; then
echo "Downloading nightly projectGenerator from Github Latest"
URL="https://github.com/openframeworks/projectGenerator/releases/download/nightly/projectGenerator-vs.zip"
else
echo "Downloading projectGenerator for release $RELEASE from Github"
URL="https://github.com/openframeworks/projectGenerator/releases/download/$RELEASE/projectGenerator-vs.zip"
fi
echo "Downloading projectGenerator from Github Nightly"
downloader $URL 2> /dev/null
unzip projectGenerator-vs.zip 2> /dev/null
rm projectGenerator-vs.zip
cd "${OF_ROOT}"
OFW_ROOT=$(cygpath -w "$PWD")
PG_OFX_PATH="${OF_ROOT}\\projectGenerator\\projectGenerator.exe"
PG_OF_PATH="${OF_ROOT}/projectGenerator/projectGenerator.exe"
PGW_OFX_PATH=$(cygpath -w "$PG_OF_PATH")
PROJECTS=(
"examples\\templates\\emptyExample"
"examples\\templates\\allAddonsExample"
)
ADDONS=(
""
"ofxAssimpModelLoader,ofxGui,ofxKinect,ofxNetwork,ofxOpenCv,ofxOsc,ofxSvg,ofxThreadedImageLoader,ofxXmlSettings"
)
echo "Updating projects with PG at:${PG_OF_PATH}"
for i in "${!PROJECTS[@]}"; do
PROJECT=${PROJECTS[i]}
ADDON=${ADDONS[i]}
OPTIONS="-o\"${OF_ROOT}\" -v -a\"$ADDON\" -p\"vs\" -t\"\" \"${OF_ROOT}\\${PROJECT}\""
# Run the project generator executable with the combined options
echo "Updating: ${PROJECT} with:${PG_OF_PATH}"
#cmd.exe /c "${PG_OF_PATH} ${OPTIONS}"
eval "${PG_OF_PATH} ${OPTIONS}"
done