Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SteelT
SRB2
Commits
6694b203
Commit
6694b203
authored
6 years ago
by
Marco Z
Browse files
Options
Downloads
Patches
Plain Diff
Finishing touches 2
parent
d4718fa6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
windows-installer/BuildInstaller.bat
+5
-1
5 additions, 1 deletion
windows-installer/BuildInstaller.bat
windows-installer/new-install/staging.bat
+17
-4
17 additions, 4 deletions
windows-installer/new-install/staging.bat
with
22 additions
and
5 deletions
windows-installer/BuildInstaller.bat
+
5
−
1
View file @
6694b203
...
@@ -26,6 +26,8 @@ if ["%SVZIP%"] == [""] (
...
@@ -26,6 +26,8 @@ if ["%SVZIP%"] == [""] (
:: Operate on install archives
:: Operate on install archives
type
NUL
>
"
%SCRIPTDIR%
\new-install\staging.txt"
if
exist
"
%SCRIPTDIR%
\Installer.7z"
(
if
exist
"
%SCRIPTDIR%
\Installer.7z"
(
if
[
"
%SVZIP%
"
]
==
[
""
]
(
if
[
"
%SVZIP%
"
]
==
[
""
]
(
echo
.
echo
.
...
@@ -60,4 +62,6 @@ if exist "%SCRIPTDIR%\Patch_x64.7z" (
...
@@ -60,4 +62,6 @@ if exist "%SCRIPTDIR%\Patch_x64.7z" (
"
%SVZIP%
"
a
"
%SCRIPTDIR%
\Patch_x64.7z"
"
%SCRIPTDIR%
\new-install\"
"
%SVZIP%
"
a
"
%SCRIPTDIR%
\Patch_x64.7z"
"
%SCRIPTDIR%
\new-install\"
)
)
copy
/y /b
"
%SCRIPTDIR%
\sfx\7zsd_LZMA2_x64.sfx"
+
"
%SCRIPTDIR%
\sfx\config-patch.txt"
+
"
%SCRIPTDIR%
\Patch_x64.7z"
"
%SCRIPTDIR%
\SRB2-
%SRB2
VERSIONNAME
%
-x64-Patch.exe"
copy
/y /b
"
%SCRIPTDIR%
\sfx\7zsd_LZMA2_x64.sfx"
+
"
%SCRIPTDIR%
\sfx\config-patch.txt"
+
"
%SCRIPTDIR%
\Patch_x64.7z"
"
%SCRIPTDIR%
\SRB2-
%SRB2
VERSIONNAME
%
-x64-Patch.exe"
)
)
\ No newline at end of file
del
/f /q
"
%SCRIPTDIR%
\new-install\staging.txt"
This diff is collapsed.
Click to expand it.
windows-installer/new-install/staging.bat
+
17
−
4
View file @
6694b203
...
@@ -29,6 +29,15 @@ set "STAGINGDIR=%STAGINGDIR:~0,-1%"
...
@@ -29,6 +29,15 @@ set "STAGINGDIR=%STAGINGDIR:~0,-1%"
for
%%d
in
(
"
%STAGINGDIR%
"
)
do
set
INSTALLDIR
=
%%~dpd
for
%%d
in
(
"
%STAGINGDIR%
"
)
do
set
INSTALLDIR
=
%%~dpd
set
"INSTALLDIR=
%INSTALLDIR
:~0,-1
%
"
set
"INSTALLDIR=
%INSTALLDIR
:~0,-1
%
"
:: FAILSAFE: Check if staging.txt exists in the directory
:: If not, exit, so we don't mess up anything by accident.
if
exist
"
%STAGINGDIR%
\staging.txt"
(
echo
.
)
else
(
exit
)
:: Check if we need to create %userprofile%\SRB2
:: Check if we need to create %userprofile%\SRB2
set
"USERDIR=
%INSTALLDIR%
"
set
"USERDIR=
%INSTALLDIR%
"
...
@@ -90,11 +99,11 @@ echo f | xcopy /y "%STAGINGDIR%\LICENSE.txt" "%USERDIR%\LICENSE.txt"
...
@@ -90,11 +99,11 @@ echo f | xcopy /y "%STAGINGDIR%\LICENSE.txt" "%USERDIR%\LICENSE.txt"
echo
f
|
xcopy
/y
"
%STAGINGDIR%
\LICENSE-3RD-PARTY.txt"
"
%USERDIR%
\LICENSE-3RD-PARTY.txt"
echo
f
|
xcopy
/y
"
%STAGINGDIR%
\LICENSE-3RD-PARTY.txt"
"
%USERDIR%
\LICENSE-3RD-PARTY.txt"
echo
Your
game
data
and
mods
folder
is
:
>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
Your
game
data
and
mods
folder
is
:
>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
.
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
.
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
"
%USERDIR%
"
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
%USERDIR%
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
.
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
.
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
Your
install
folder
is
:
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
Your
install
folder
is
:
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
.
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
.
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
"
%INSTALLDIR%
"
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
%INSTALLDIR%
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
.
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
.
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
To
run
SRB2
,
go
to
:
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
To
run
SRB2
,
go
to
:
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
.
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
echo
.
>>
"
%USERDIR%
\
!
Data and Mods Go Here
!
.txt"
...
@@ -186,7 +195,11 @@ for %%F in ("%STAGINGDIR%\*") DO (
...
@@ -186,7 +195,11 @@ for %%F in ("%STAGINGDIR%\*") DO (
if
[
"
%%~nxF
"
]
==
[
"staging.bat"
]
(
if
[
"
%%~nxF
"
]
==
[
"staging.bat"
]
(
echo
.
echo
.
)
else
(
)
else
(
move
"
%STAGINGDIR%
\
%%~nxF
"
"
%INSTALLDIR%
\
%%~nxF
"
if
[
"
%%~nxF
"
]
==
[
"staging.txt"
]
(
echo
.
)
else
(
move
"
%STAGINGDIR%
\
%%~nxF
"
"
%INSTALLDIR%
\
%%~nxF
"
)
)
)
)
)
...
@@ -222,7 +235,7 @@ if ["%OLDINSTALLCHANGED%"] == ["1"] (
...
@@ -222,7 +235,7 @@ if ["%OLDINSTALLCHANGED%"] == ["1"] (
"
%systemroot%
\explorer.exe"
"
%USERDIR%
"
"
%systemroot%
\explorer.exe"
"
%USERDIR%
"
echo
Finished
!
You
may
find
your
game
data
in
this
folder
:
>
%TEMP%
\srb2msgprompt.txt
echo
Finished
!
You
may
find
your
game
data
in
this
folder
:
>
%TEMP%
\srb2msgprompt.txt
echo
.
>>
%TEMP%
\srb2msgprompt.txt
echo
.
>>
%TEMP%
\srb2msgprompt.txt
echo
%USERDIR%
>>
%TEMP%
\srb2msgprompt.txt
echo
%USERDIR%
>>
%TEMP%
\srb2msgprompt.txt
echo
.
>>
%TEMP%
\srb2msgprompt.txt
echo
.
>>
%TEMP%
\srb2msgprompt.txt
echo
To
run
SRB2
,
go
to
:
Start
Menu
^>
Programs
^>
Sonic
Robo
Blast
2
.
>>
%TEMP%
\srb2msgprompt.txt
echo
To
run
SRB2
,
go
to
:
Start
Menu
^>
Programs
^>
Sonic
Robo
Blast
2
.
>>
%TEMP%
\srb2msgprompt.txt
%MSGEXE%
"
%username%
"
<
%TEMP%
\srb2msgprompt.txt
%MSGEXE%
"
%username%
"
<
%TEMP%
\srb2msgprompt.txt
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment