-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (23 loc) · 768 Bytes
/
Makefile
File metadata and controls
27 lines (23 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
UNITY_APP=/Applications/Unity/Hub/Editor/2022.2.2f1/Unity.app
BUILD_DIR=Build
TARGET_NAME=AppEventMonitor
UNITY_PROJECT_PATH=Examples/UnityAppEventMonitor
ASSET_PATH=Assets/Plugins/AppEventMonitor/Plugins
all: bundle copy package
bundle:
xcodebuild \
-project ${TARGET_NAME}.xcodeproj \
-scheme ${TARGET_NAME} \
-configuration Release \
-sdk macosx \
CONFIGURATION_BUILD_DIR=$(CURDIR)/${BUILD_DIR}
copy:
cp -r ${BUILD_DIR}/${TARGET_NAME}.bundle ${UNITY_PROJECT_PATH}/${ASSET_PATH}/macOS/
package:
${UNITY_APP}/Contents/MacOS/Unity \
-exportPackage ${ASSET_PATH} $(CURDIR)/${BUILD_DIR}/${TARGET_NAME}.unitypackage \
-projectPath ${UNITY_PROJECT_PATH} \
-batchmode \
-nographics \
-quit
echo exported ${BUILD_DIR}/${TARGET_NAME}.unitypackage