Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit41d9049

Browse files
committed
test builder bat for installer vdproj workarounds for cli
1 parented7e147 commit41d9049

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

‎BuildInstaller.bat‎

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
@ECHOOFF
2+
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
3+
4+
ECHO:
5+
ECHO === Starting Installer Build Workaround ===
6+
7+
REM Store current directory
8+
SET"current_path=%CD%"
9+
10+
REM Try all known editions of Visual Studio 2022
11+
SET"vs_base_path=%ProgramFiles%\Microsoft Visual Studio\2022"
12+
FOR%%EIN (Community Professional Enterprise)DO (
13+
IFEXIST"%vs_base_path%\%%E\Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild\DisableOutOfProcBuild.exe" (
14+
SET"buildfix_path=%vs_base_path%\%%E\Common7\IDE\CommonExtensions\Microsoft\VSI\DisableOutOfProcBuild"
15+
SET"devenv_path=%vs_base_path%\%%E\Common7\IDE\devenv.exe"
16+
SET"vs_edition=%%E"
17+
GOTO :FoundEdition
18+
)
19+
)
20+
21+
ECHO [ERROR] Could not find DisableOutOfProcBuild.exe in any known VS2022 edition.
22+
EXIT /B1
23+
24+
:FoundEdition
25+
ECHO Found Visual Studio2022 Edition:%vs_edition%
26+
CD /D"%buildfix_path%"
27+
CALL DisableOutOfProcBuild.exe
28+
29+
REM Restore previous directory
30+
CD /D"%current_path%"
31+
32+
ECHO:
33+
ECHO === Building Installer ===
34+
CALL"%devenv_path%" UnityLauncherPro.sln /Rebuild Release /Project UnityLauncherProInstaller
35+
36+
ECHO:
37+
ECHO === Build Complete ===
38+
39+
REM Clean up registry key if needed (optional)
40+
REG DELETE"HKCU\Software\Microsoft\VisualStudio\Setup" /v VSDisableOutOfProcBuild /f>NUL2>&1
41+
42+
ENDLOCAL

‎UnityLauncherProInstaller/UnityLauncherProInstaller.vdproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@
804804
{
805805
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_7E1343CBA8EB43B8864B8A7BBEB62BCA"
806806
{
807-
"SourcePath" = "8:..\\UnityLauncherPro\\obj\\Release\\UnityLauncherPro.exe"
807+
"SourcePath" = "8:..\\UnityLauncherPro\\bin\\Release\\UnityLauncherPro.exe"
808808
"TargetName" = "8:"
809809
"Tag" = "8:"
810810
"Folder" = "8:_68B52FAF3D0E46A7BB2DA063CB0BC570"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp