Skip to content

Commit 312077b

Browse files
arun-govindanconniefry
authored andcommitted
Fixes for issues in renaming for pxscene to spark and sparkEdge. (#1404)
* Fixes for spark and spaekEdge name conversion issues * Updated variable name * Updated variable name * code cleanup * for older pxscene version to get updated to spark. * Renaming on echo * test * test * Replace pxscene app with spark app
1 parent 4e9de4c commit 312077b

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

examples/pxScene2d/src/macstuff/dmgresources/engine_install

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,21 @@ echo "Info: Proceeding now that spark has shut down" >> $LOGFILE
2424
PKGNAME="$(dirname $(dirname `pwd`))"
2525
PKGBASE="$(basename $PKGNAME)"
2626
PKGEXT="${PKGBASE##*.}"
27+
PKGNAMEUPDT="${PKGNAME}"
2728

2829
if [ $PKGEXT == "app" ]; then
2930
echo "Info: Running in app" >> $LOGFILE
3031
echo "Info: Copying software..." >> $LOGFILE
3132
rm -r $PKGNAME
32-
cp -a $1/Spark.app $PKGNAME
33-
echo $PKGNAME >> $LOGFILE
33+
34+
if [[ "$PKGNAME" == *pxscene.app ]] ;
35+
then
36+
echo "app name is pxscene"
37+
PKGNAMEUPDT=`echo "${PKGNAME/pxscene.app/Spark.app}"`
38+
fi
39+
40+
cp -a $1/Spark.app $PKGNAMEUPDT
41+
echo $PKGNAMEUPDT >> $LOGFILE
3442
echo "Info: Software Updated" >> $LOGFILE
3543
else
3644
echo "Warning: Not running in app bundle. Skip." >> $LOGFILE

examples/pxScene2d/src/macstuff/software_update.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<key>Predicate</key>
1010
<string>Ticket.version != '__VERSION__'</string>
1111
<key>Codebase</key>
12-
<string>http://www.pxscene.org/dist/osx/pxscene/pxscene.dmg</string>
12+
<string>http://www.pxscene.org/dist/osx/pxscene/Spark.dmg</string>
1313
<key>Hash</key>
1414
<string>__HASH__</string>
1515
<key>Size</key>

0 commit comments

Comments
 (0)