FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
UnityLauncherPro/Build.cmd at master · unitycoder/UnityLauncherPro · GitHub
unitycoder
UnityLauncherPro
Repository navigation
Code
Issues
23
(23)
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
UnityLauncherPro
/
Build.cmd
Copy path
More file actions
More file actions
Latest commit
History
History
History
77 lines (65 loc) · 2.28 KB
Breadcrumbs
UnityLauncherPro
/
Build.cmd
Copy path
File metadata and controls
77 lines (65 loc) · 2.28 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
@
echo
off
REM
Default VS paths to check if no Paths.cmd file exists
set
VISUAL_STUDIO_PATH_0
=
"
%programfiles%
\Microsoft Visual Studio\18\Community\MSBuild\Current\Bin\msbuild.exe
"
set
VISUAL_STUDIO_PATH_1
=
"
%programfiles%
\Microsoft Visual Studio\18\Professional\MSBuild\Current\Bin\msbuild.exe
"
set
VISUAL_STUDIO_PATH_2
=
"
%programfiles%
\Microsoft Visual Studio\18\Enterprise\MSBuild\Current\Bin\msbuild.exe
"
set
VISUAL_STUDIO_PATH_3
=
"
%programfiles%
\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\msbuild.exe
"
set
VISUAL_STUDIO_PATH_4
=
"
%programfiles%
\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\msbuild.exe
"
set
VISUAL_STUDIO_PATH_5
=
"
%programfiles(x86)%
\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\msbuild.exe
"
set
VISUAL_STUDIO_PATH_6
=
"
%programfiles(x86)%
\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe
"
pushd
"
%~dp0
"
if
exist
Debug
rd
/s /q Debug
if
exist
Release
rd
/s /q Release
if
exist
x64
rd
/s /q x64
if
exist
"
Paths.cmd
"
(
REM
Prefer Paths.cmd as Visual Studio path source if it exists.
call
Paths.cmd
goto
build
)
else
(
REM
Otherwise try to auto-detect the Visual Studio path.
if
exist
%VISUAL_STUDIO_PATH_0%
(
set
VISUAL_STUDIO_PATH
=
%VISUAL_STUDIO_PATH_0%
goto
build
)
if
exist
%VISUAL_STUDIO_PATH_1%
(
set
VISUAL_STUDIO_PATH
=
%VISUAL_STUDIO_PATH_1%
goto
build
)
if
exist
%VISUAL_STUDIO_PATH_2%
(
set
VISUAL_STUDIO_PATH
=
%VISUAL_STUDIO_PATH_2%
goto
build
)
if
exist
%VISUAL_STUDIO_PATH_3%
(
set
VISUAL_STUDIO_PATH
=
%VISUAL_STUDIO_PATH_3%
goto
build
)
if
exist
%VISUAL_STUDIO_PATH_4%
(
set
VISUAL_STUDIO_PATH
=
%VISUAL_STUDIO_PATH_4%
goto
build
)
if
exist
%VISUAL_STUDIO_PATH_5%
(
set
VISUAL_STUDIO_PATH
=
%VISUAL_STUDIO_PATH_5%
goto
build
)
if
exist
%VISUAL_STUDIO_PATH_6%
(
set
VISUAL_STUDIO_PATH
=
%VISUAL_STUDIO_PATH_6%
goto
build
)
REM
No default path found. Let the user know what to do.
echo
No Visual Studio installation found. Please configure it manually.
echo
1. Copy 'Paths.cmd.template'.
echo
2. Rename it to 'Paths.cmd'.
echo
3. Enter your Visual Studio path in there.
echo
4. Restart the build.
REM
Allow disabling pause to support non-interacting build chains.
if
NOT
"
%~1
"
==
"
-no-pause
"
pause
goto
end
)
:
build
REM
Log the used Vistual Studio version.
@
echo
on
%VISUAL_STUDIO_PATH%
/p:Configuration=Release
@
echo
off
:
end
popd
@
echo
on
Back
|
FazBrowse Home
|
New Git URL