FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
slash-framework/Tools/Build/BuildUnityPackage.bat at develop · SlashGames/slash-framework · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
SlashGames
/
slash-framework
Public
Notifications
You must be signed in to change notification settings
Fork
14
Star
75
Code
Issues
19
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
slash-framework
/
Tools
/
Build
/
BuildUnityPackage.bat
Copy path
More file actions
More file actions
Latest commit
History
History
History
83 lines (64 loc) · 2.81 KB
Breadcrumbs
slash-framework
/
Tools
/
Build
/
BuildUnityPackage.bat
Copy path
File metadata and controls
83 lines (64 loc) · 2.81 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
REM
Setup
REM
Install perl on your system, if not already existent: https://www.perl.org/get.html
REM
Set environment variables:
REM
NET40_HOME is the path to your local .NET Framework installation (e.g. C:\Windows\Microsoft.NET\Framework\v4.0.30319)
REM
UNITY_PATH is the path to your Unity3D installation (e.g. C:\Program Files\Unity)
set
UNITY_PATH
=
%~1
set
CONFIG
=
%~2
set
PACKAGE
=
%~3
if
[
"
%UNITY_PATH%
"
]
==
[
"
"
] (
echo
UNITY_PATH not set
goto
:
EOF
)
REM
Make sure logs directory exists
if
not
exist
"
%~dp0
logs
"
mkdir
"
%~dp0
logs
"
echo
Build libraries...
REM
Clean and build solution
"
%NET40_HOME%
\MSBuild.exe
"
../../Source/Slash.Framework.sln /verbosity:minimal /property:Configuration=
"
%CONFIG%
"
/p:Platform=
"
Any CPU
"
/t:Clean;Build
>
"
logs/BuildLibraries.log
"
set
BUILD_STATUS
=
%ERRORLEVEL%
if
%BUILD_STATUS%
==
0
(
echo
...success
)
if
not
%BUILD_STATUS%
==
0
(
echo
...failed with error code
%BUILD_STATUS%
goto
:
EOF
)
REM
Clear output path
if
exist
Slash.Framework
rmdir
/s /q Slash.Framework
set
ASSETS_SLASH_FRAMEWORK_PATH
=
Assets/SlashFramework
set
ASSETS_SLASH_FRAMEWORK_LIBRARIES_PATH
=
%ASSETS_SLASH_FRAMEWORK_PATH%
/Libraries
set
UNITY_SLASH_FRAMEWORK_PATH
=
Slash.Framework/
%ASSETS_SLASH_FRAMEWORK_PATH%
echo
Copy dlls to package...
REM
Symlink libraries
call
SymlinkSlashFramework.bat
echo
Copy source files to package...
REM
Copy non-DLL files
xcopy
/h /s /q /i /y
"
../../Ext/StrangeIoC/Source
"
"
Slash.Framework/Assets/StrangeIoC
"
>
nul
xcopy
/h /s /q /y
"
../../Source/Slash.Unity.Examples/Assets/SlashFramework
"
"
Slash.Framework/Assets/SlashFramework
"
>
nul
xcopy
/h /s /q /y
"
../../Source/Slash.Unity.Export/Source/Assets
"
"
Slash.Framework/Assets
"
>
nul
echo
Build addon unity packages...
REM
Build addons
mkdir
"
%~dp0
%UNITY_SLASH_FRAMEWORK_PATH%
/Addons
"
"
%UNITY_PATH%
\Editor\Unity.exe
"
-batchmode -projectPath
"
%~dp0
Slash.Framework
"
-exportPackage
"
%ASSETS_SLASH_FRAMEWORK_LIBRARIES_PATH%
/Slash.Unity.StrangeIoC
"
"
%ASSETS_SLASH_FRAMEWORK_LIBRARIES_PATH%
/Slash.Unity.StrangeIoC.Video
"
"
%~dp0
%UNITY_SLASH_FRAMEWORK_PATH%
/Addons/Slash.Unity.StrangeIoC.unitypackage
"
-logFile
"
logs/AddonStrangeIoC.log
"
-quit
set
BUILD_STATUS
=
%ERRORLEVEL%
if
%BUILD_STATUS%
==
0
(
echo
...success
)
if
not
%BUILD_STATUS%
==
0
(
echo
...failed with error code
%BUILD_STATUS%
goto
:
EOF
)
REM
Remove addons
rmdir
/s /q
"
%UNITY_SLASH_FRAMEWORK_PATH%
/Libraries/Slash.Unity.StrangeIoC
"
rmdir
/s /q
"
%UNITY_SLASH_FRAMEWORK_PATH%
/Libraries/Slash.Unity.StrangeIoC.Video
"
echo
Build main unity package...
REM
Build package
"
%UNITY_PATH%
\Editor\Unity.exe
"
-batchmode -projectPath
"
%~dp0
Slash.Framework
"
-exportPackage
"
Assets/SlashFramework
"
"
%~dp0
%PACKAGE%
.unitypackage
"
-logFile logs/MainPackage.log -quit
set
BUILD_STATUS
=
%ERRORLEVEL%
if
%BUILD_STATUS%
==
0
(
echo
...success
)
if
not
%BUILD_STATUS%
==
0
(
echo
...failed with error code
%BUILD_STATUS%
goto
:
EOF
)
Back
|
FazBrowse Home
|
New Git URL