Move Xcode project to a separate tree parallel to src

This commit is contained in:
2018-02-19 02:09:31 -05:00
parent 827e1b2a6b
commit 8759aad90a
24 changed files with 92 additions and 75 deletions

8
pkg/gitrev.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
# Usage: gitrev.sh path-to-src
REVID=`git rev-parse HEAD`;
export FULLTAG=`git tag --sort=v:refname | tail -n1`;
TAGREV=`git rev-parse $FULLTAG`;
echo -e "\n#define GIT_REVISION \"${REVID:0:7}\"\n#define GIT_TAG \"$FULLTAG\"\n#define GIT_TAG_REVISION \"${TAGREV:0:7}\"\n" > "$1/tools/gitrev.hpp"

243
pkg/mac/BoE-Info.plist Normal file
View File

@@ -0,0 +1,243 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>SAV</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>boesave</string>
<key>CFBundleTypeName</key>
<string>LegacyWinSaveGame</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>com.spidweb.bladesofexile.oldwinsave</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>boe</string>
<string>mac</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>boesave</string>
<key>CFBundleTypeName</key>
<string>LegacyMacSaveGame</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>beSV</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>com.spidweb.bladesofexile.oldmacsave</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>bmp</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>boegraphics</string>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>image/x-bmp</string>
</array>
<key>CFBundleTypeName</key>
<string>LegacyWinGraphics</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>BMPf</string>
<string>BMP</string>
</array>
<key>CFBundleTypeRole</key>
<string>None</string>
<key>LSItemContentTypes</key>
<array>
<string>com.microsoft.bmp</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>exg</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>boesave</string>
<key>CFBundleTypeName</key>
<string>Blades of Exile Saved Game</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>game</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>com.spidweb.bladesofexile.savegame</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>exs</string>
<string>boes</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>boescenario</string>
<key>CFBundleTypeName</key>
<string>Blades of Exile Scenario</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>BETM</string>
</array>
<key>CFBundleTypeRole</key>
<string>None</string>
<key>LSItemContentTypes</key>
<array>
<string>com.spidweb.bladesofexile.scenario</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>dlg</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>boeresources</string>
<key>CFBundleTypeName</key>
<string>EncounterDialog</string>
<key>CFBundleTypeRole</key>
<string>None</string>
<key>LSItemContentTypes</key>
<array>
<string>com.spidweb.bladesofexile.dialog</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>XML</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>Blades of Exile</string>
<key>CFBundleIconFile</key>
<string>BoE</string>
<key>CFBundleIdentifier</key>
<string>com.spidweb.bladesofexile</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>blx!</string>
<key>CFBundleVersion</key>
<string>2.0b1</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.role-playing-games</string>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<string>public.archive</string>
<string>org.gnu.gnu-zip-tar-archive</string>
</array>
<key>UTTypeDescription</key>
<string>Blades of Exile Scenario</string>
<key>UTTypeIconFile</key>
<string>boescenario</string>
<key>UTTypeIdentifier</key>
<string>com.spidweb.bladesofexile.scenario</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<array>
<string>BETM</string>
</array>
<key>public.filename-extension</key>
<array>
<string>exs</string>
<string>boes</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<string>public.archive</string>
<string>org.gnu.gnu-zip-tar-archive</string>
</array>
<key>UTTypeDescription</key>
<string>Blades of Exile Saved Game</string>
<key>UTTypeIconFile</key>
<string>boesave</string>
<key>UTTypeIdentifier</key>
<string>com.spidweb.bladesofexile.savegame</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<array>
<string>beSV</string>
</array>
<key>public.filename-extension</key>
<array>
<string>exg</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>com.apple.resource-map</string>
</array>
<key>UTTypeDescription</key>
<string>Blades of Exile Scenario Graphics</string>
<key>UTTypeIconFile</key>
<string>boegraphics</string>
<key>UTTypeIdentifier</key>
<string>com.spidweb.bladesofexile.oldgraphics</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>meg</string>
</array>
</dict>
</dict>
</array>
</dict>
</plist>

View File

@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>exg</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>boesave</string>
<key>CFBundleTypeName</key>
<string>SavedGame</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>beSV</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>com.spidweb.bladesofexile.savegame</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>BoE Character Editor</string>
<key>CFBundleIconFile</key>
<string>BoECharEd</string>
<key>CFBundleIdentifier</key>
<string>com.spidweb.boepceditor</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>blxe</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>UTImportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<string>public.archive</string>
<string>org.gnu.gnu-zip-tar-archive</string>
</array>
<key>UTTypeDescription</key>
<string>Blades of Exile Saved Game</string>
<key>UTTypeIconFile</key>
<string>boesave</string>
<key>UTTypeIdentifier</key>
<string>com.spidweb.bladesofexile.savegame</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>exg</string>
</array>
</dict>
</dict>
</array>
</dict>
</plist>

View File

@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>exs</string>
<string>boes</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>boescenario</string>
<key>CFBundleTypeName</key>
<string>Scenario</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>BETM</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>com.spidweb.bladesofexile.scenario</string>
</array>
<key>LSTypeIsPackage</key>
<false/>
<key>NSPersistentStoreTypeKey</key>
<string>Binary</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>BoE Scenario Editor</string>
<key>CFBundleIconFile</key>
<string>BoEScenEd</string>
<key>CFBundleIdentifier</key>
<string>com.spidweb.boesceneditor</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>BlEd</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>UTImportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<string>public.archive</string>
<string>org.gnu.gnu-zip-tar-archive</string>
</array>
<key>UTTypeDescription</key>
<string>Blades of Exile Scenario</string>
<key>UTTypeIconFile</key>
<string>boescenario</string>
<key>UTTypeIdentifier</key>
<string>com.spidweb.bladesofexile.scenario</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>exs</string>
<string>boes</string>
</array>
</dict>
</dict>
</array>
</dict>
</plist>

24
pkg/mac/fix_dylibs.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
# fix_dylibs.sh
# BoE
#
# Created by Celtic Minstrel on 14-04-17.
#
echo Fixing boost dylib install names...
EXEPATH=@executable_path/../Frameworks
BOEPATH="$BUILT_PRODUCTS_DIR/$EXECUTABLE_PATH"
BFSPATH="$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/libboost_filesystem.dylib"
BTHPATH="$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/libboost_thread.dylib"
# Update references in the executable file
install_name_tool -change libboost_system.dylib "$EXEPATH/libboost_system.dylib" "$BOEPATH"
install_name_tool -change libboost_filesystem.dylib "$EXEPATH/libboost_filesystem.dylib" "$BOEPATH"
install_name_tool -change libboost_thread.dylib "$EXEPATH/libboost_thread.dylib" "$BOEPATH"
# Update references within Boost
install_name_tool -change libboost_system.dylib "$EXEPATH/libboost_system.dylib" "$BFSPATH"
install_name_tool -change libboost_system.dylib "$EXEPATH/libboost_system.dylib" "$BTHPATH"

9
pkg/pack-scenario.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
# Usage: pack-scenario.sh scenario-folder scenario-filename
rm -f "$2"
cd "$1/.."
mv "$1" scenario
tar -czf "$2" scenario
mv scenario "$1"

7
pkg/unpack-scenario.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
# Usage: unpack-scenario.sh scenario-filename scenario-folder
rm -f "$2"
tar -xzf "$1"
mv scenario "$2"

12
pkg/validate-dialogs.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Usage: validate-dialogs.sh path-to-rsrc
function filter() {
grep -v 'validates' -
return 0
}
cd "$1/dialogs/"
set -o pipefail
xmllint --nonet --noout --schema "$1/schemas/dialog.xsd" "$1/dialogs/"*.xml 2>&1 | sed 's/%20/ /g' | filter