Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions scripts/templates/ios/toJson.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
#!/bin/sh
cd "$(dirname "$0")"

checkLib() {
for lib in "$@"
do
if ! command -v $lib 2>&1 >/dev/null
then
echo "<$lib> not found, installing via brew"
executa brew install $lib
else
echo "$lib ok"
fi
done
}

checkLib jq

plutil -convert json ./emptyExample.xcodeproj/project.pbxproj
cd ./emptyExample.xcodeproj
mv project.pbxproj p.pbxproj
jq --tab . p.pbxproj > project.pbxproj
rm p.pbxproj

plutil -convert json -r ./emptyExample.xcodeproj/project.pbxproj
echo "OF XCode template conversion to JSON complete"
25 changes: 0 additions & 25 deletions scripts/templates/macos/toJson.command

This file was deleted.

6 changes: 6 additions & 0 deletions scripts/templates/macos/toJson.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
cd "$(dirname "$0")"

plutil -convert json -r ./emptyExample.xcodeproj/project.pbxproj
echo "OF XCode template conversion to JSON complete"

22 changes: 1 addition & 21 deletions scripts/templates/osx/toJson.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
#!/bin/sh
cd "$(dirname "$0")"

checkLib() {
for lib in "$@"
do
if ! command -v $lib 2>&1 >/dev/null
then
echo "<$lib> not found, installing via brew"
executa brew install $lib
else
echo "$lib ok"
fi
done
}

checkLib jq

plutil -convert json ./emptyExample.xcodeproj/project.pbxproj
cd ./emptyExample.xcodeproj
mv project.pbxproj p.pbxproj
jq --tab . p.pbxproj > project.pbxproj
rm p.pbxproj

plutil -convert json -r ./emptyExample.xcodeproj/project.pbxproj
echo "OF XCode template conversion to JSON complete"
22 changes: 1 addition & 21 deletions scripts/templates/tvOS/toJson.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
#!/bin/sh
cd "$(dirname "$0")"

checkLib() {
for lib in "$@"
do
if ! command -v $lib 2>&1 >/dev/null
then
echo "<$lib> not found, installing via brew"
executa brew install $lib
else
echo "$lib ok"
fi
done
}

checkLib jq

plutil -convert json ./emptyExample.xcodeproj/project.pbxproj
cd ./emptyExample.xcodeproj
mv project.pbxproj p.pbxproj
jq --tab . p.pbxproj > project.pbxproj
rm p.pbxproj

plutil -convert json -r ./emptyExample.xcodeproj/project.pbxproj
echo "OF XCode template conversion to JSON complete"
Loading