File tree 9 files changed +125
-0
lines changed
9 files changed +125
-0
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,5 @@ Contains projects of:
13
13
* ** kFOV** - Field of View Mesh Modifier - Cutting out colliding meshes.
14
14
* ** kMultiplyEditor** - A editor extension for comfortable cloning gameobjects in the scene view.
15
15
* ** kPolyMesh** - Editor Window for mesh creation in a Unity3D project.
16
+ * ** Shell Helper** - collection of bash files for unity projects.
16
17
and ...
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ source /Users/pknab/Desktop/RemoteRepository " malwas"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ DIRECTORY=" temp"
4
+ REPOSITORY_PATH=
" https://[email protected] /k-lock/"
5
+ REPOSITORY_NAME=" petapult"
6
+
7
+ echo ' $0 = ' $1
8
+ echo " ---------------------------------------------------------------"
9
+ echo " cloning repository - " ${REPOSITORY_NAME}
10
+ echo " ---------------------------------------------------------------"
11
+
12
+ if [ -d " ${DIRECTORY} " ]
13
+ then
14
+ rm -rf temp
15
+ fi
16
+
17
+ git clone ${REPOSITORY_PATH}${REPOSITORY_NAME} .git temp/ && source /Users/pknab/Desktop/UnityProjectBuilder || echo -e " ---------------------------------------------------------------\n cloning failed\n---------------------------------------------------------------"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ BUILD_CLASS=" BuildJob."
4
+
5
+ BUILD_METHOD[0]=" PerformMacOSXBuild"
6
+ BUILD_METHOD[1]=" PerformIOSBuild"
7
+ BUILD_METHOD[2]=" PerformAndroidBuild"
8
+ BUILD_METHOD[3]=" PerformWindows64Build"
9
+
10
+ UNITY_PATH=" /Applications/Unity/Unity.app/Contents/MacOS/Unity"
11
+ PROJECT_PATH=" /Users/pknab/Workspace/unity3d/ReflectorProject/Reflector"
12
+ PROJECT_PATH=" /Users/pknab/temp/"
13
+
14
+ BUILD_ID=" 1"
15
+
16
+ echo " ---------------------------------------------------------------"
17
+ echo " automated build starting"
18
+ echo " ---------------------------------------------------------------"
19
+
20
+ echo " project path : ${PROJECT_PATH} "
21
+ echo " build type : ${BUILD_METHOD["${BUILD_ID}"]} "
22
+
23
+ " ${UNITY_PATH} " -projectPath " ${PROJECT_PATH} " -batchmode -executeMethod " ${BUILD_CLASS}${BUILD_METHOD["${BUILD_ID}"]} " -quit
24
+
25
+ echo " ---------------------------------------------------------------"
26
+ echo " building complete"
27
+ echo " ---------------------------------------------------------------"
28
+
29
+
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ PROJECT_PATH=" /Users/pknab/Workspace/unity3d/ReflectorProject/Reflector/Build/IOS/ReflectorV0.app/"
4
+ XCODE_PROJECT=" Unity-iPhone.xcodeproj"
5
+ SIGN_IDENTITY=" iPhone Developer"
6
+
7
+
8
+ # xcodebuild -project ${PROJECT_PATH}${XCODE_PROJECT} -target "Unity-iPhone" -configuration Release clean build DEPLOYMENT_POSTPROCESSING=YES CODE_SIGN_IDENTITY="${SIGN_IDENTITY}"
9
+
10
+
11
+ xcrun -sdk iphoneos PackageApplication " /Users/pknab/Workspace/unity3d/ReflectorProject/Reflector/Build/IOS/ReflectorV0.app"
12
+ -o " /Users/pknab/Workspace/MyApp.ipa"
13
+ --sign " iPhone Distribution"
14
+ --embed " /Users/pknab/certificates/Provisioning-reflector.mobileprovision"
15
+
16
+ # xcodebuild
17
+ # -project /Users/pknab/Workspace/unity3d/ReflectorProject/Reflector/Build/IOS/ReflectorV0.app/Unity-iPhone.xcodeproj
18
+ # -target "Unity-iPhone"
19
+ # -configuration Release clean build DEPLOYMENT_POSTPROCESSING=YES CODE_SIGN_IDENTITY="iPhone Developer"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ echo " ---------------------------------------------------------------"
3
+ echo -n " Enter the unity project path:"
4
+ read -e DIRECTORY
5
+ PROJECTDIR=$DIRECTORY " /Assets/"
6
+ DWLDIR=" /Users/pknab/Downloads/vsc/"
7
+ REPOSITORY_PATH=" https://github.com/dotBunny/VSCode.git"
8
+ PLUGINDIR=" Plugins/"
9
+ EDITORDIR=" Editor/"
10
+ echo " ---------------------------------------------------------------"
11
+ echo " create temp download directory"
12
+ if [ -d ${DWLDIR} ]
13
+ then
14
+ rm -rf ${DWLDIR}
15
+ fi
16
+ echo " ---------------------------------------------------------------"
17
+ echo " cloning repository - Visual Studio Code"
18
+ echo " ---------------------------------------------------------------"
19
+ git clone ${REPOSITORY_PATH} ${DWLDIR}
20
+ echo " ---------------------------------------------------------------"
21
+ echo " check / create plugins and editor directory"
22
+ if [ ! -e ${PROJECTDIR}${PLUGINDIR} ]
23
+ then
24
+ mkdir ${PROJECTDIR}${PLUGINDIR}
25
+ fi
26
+ if [ ! -e ${PROJECTDIR}${PLUGINDIR}${EDITORDIR} ]
27
+ then
28
+ mkdir ${PROJECTDIR}${PLUGINDIR}${EDITORDIR}
29
+ fi
30
+ echo " ---------------------------------------------------------------"
31
+ echo " copy vsc editor script"
32
+ echo " ---------------------------------------------------------------"
33
+ cp -R ${DWLDIR} " Plugins/Editor/" ${PROJECTDIR}${PLUGINDIR}${EDITORDIR}
34
+ echo " ---------------------------------------------------------------"
35
+ echo " remove temp download directory data"
36
+ echo " ---------------------------------------------------------------"
37
+ rm -rf ${DWLDIR}
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # # directory list
4
+ FOLDERS=(" Scenes" " Resources" " Resources/Prefabs" " Resources/Textures" " Plugins" " Scripts" " Materials" )
5
+ # # unity project path input
6
+ echo -n " Enter the unity project path:"
7
+ read -e DIRECTORY
8
+ # # map to the asset folder of the current selected project
9
+ PROJECTDIR=$DIRECTORY " /Assets/"
10
+ # # loop the directory list and create folders in not existing
11
+ for f in " ${FOLDERS[@]} "
12
+ do
13
+ if [ ! -e ${PROJECTDIR} " $f " ]
14
+ then
15
+ mkdir ${PROJECTDIR} " $f "
16
+ fi
17
+ done
18
+
19
+
You can’t perform that action at this time.
0 commit comments