Skip to content

Commit 42ab115

Browse files
authored
update create_package.sh closes #7856
1 parent 0428b5c commit 42ab115

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

scripts/dev/create_package.sh

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,20 +194,13 @@ function createProjectFiles {
194194

195195
cd ${pkg_ofroot}
196196
echo "Creating project files for $pkg_platform"
197-
if [ "$pkg_platform" == "vs" ]; then
198-
pg_platform="vs"
199-
else
197+
if [ "$pkg_platform" == "vs" ] || [ "$pkg_platform" == "android" ] || [ "$pkg_platform" == "ios" ]; then
200198
pg_platform=$pkg_platform
201-
fi
202-
203-
#add vscode to all platforms apart from ios/tvos/android
204-
if [ "$pkg_platform" == "android" ] || [ "$pkg_platform" == "ios" ]; then
205-
pg_template=" "
206199
else
207-
pg_template="-tvscode"
200+
pg_platform="$pkg_platform,vscode"
208201
fi
209202

210-
${main_ofroot}/apps/projectGenerator/commandLine/bin/projectGenerator_debug --recursive -p${pg_platform} ${pg_template} -o$pkg_ofroot $pkg_ofroot/examples > /dev/null
203+
${main_ofroot}/apps/projectGenerator/commandLine/bin/projectGenerator_debug --recursive -p${pg_platform} -o$pkg_ofroot $pkg_ofroot/examples > /dev/null
211204

212205
#fix config.make because the project generator is putting in the full path to the OF_ROOT as it is designed to do.
213206
#in this case we actually don't want to set it as the default of ../../../ is fine.

0 commit comments

Comments
 (0)