Skip to content

Commit 1dc4912

Browse files
author
Eric Miller
committed
Add ios build scripts
1 parent d26e353 commit 1dc4912

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/UBKit/Files/Xcode/SpecFile.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ extension File {
4343
sources:
4444
- \(projectName)
4545
- Vendor
46+
prebuildScripts:
47+
- script: rsync -rc --exclude-from=DemoApp/Unity/rsync_exclude --delete $UNITY_IOS_EXPORT_PATH/Classes/ DemoApp/Unity/Classes/\\nrsync -rc --exclude-from=DemoApp/Unity/rsync_exclude --delete $UNITY_IOS_EXPORT_PATH/Libraries/ DemoApp/Unity/Libraries/
48+
name: UnityBuildKit Prebuild
49+
postbuildScripts:
50+
- script: rm -rf "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Data"\\ncp -Rf "$UNITY_IOS_EXPORT_PATH/Data" "$TARGET_BUILD_DIR/$PRODUCT_NAME.app/Data"
51+
name: UnityBuildKit Postbuild
4652
settings:
4753
PRODUCT_BUNDLE_IDENTIFIER: \(bundleIdentifier)
4854
IOS_DEPLOYMENT_TARGET: 11.0

0 commit comments

Comments
 (0)