Update build sys
This commit is contained in:
parent
b7731418f7
commit
af526071b2
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,2 +1,6 @@
|
|||||||
build/
|
build/
|
||||||
|
tools/pack/
|
||||||
|
.gitignore
|
||||||
|
CheatMenuVC.7z
|
||||||
|
CheatMenuIII.7z
|
||||||
|
CheatMenuSA.7z
|
||||||
|
81
.vscode/tasks.json
vendored
81
.vscode/tasks.json
vendored
@ -165,5 +165,86 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"label": "Build DebugAll",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "${workspaceFolder}/tools/DebugAll.bat",
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": false,
|
||||||
|
"panel": "shared",
|
||||||
|
"showReuseMessage": false,
|
||||||
|
"clear": true
|
||||||
|
},
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"windows": {
|
||||||
|
"options": {
|
||||||
|
"shell": {
|
||||||
|
"executable": "cmd.exe",
|
||||||
|
"args": [
|
||||||
|
"/d", "/c"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build ReleaseAll",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "${workspaceFolder}/tools/ReleaseAll.bat",
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": false,
|
||||||
|
"panel": "shared",
|
||||||
|
"showReuseMessage": false,
|
||||||
|
"clear": true
|
||||||
|
},
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"windows": {
|
||||||
|
"options": {
|
||||||
|
"shell": {
|
||||||
|
"executable": "cmd.exe",
|
||||||
|
"args": [
|
||||||
|
"/d", "/c"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Package all",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "${workspaceFolder}/tools/PackAll.bat",
|
||||||
|
"presentation": {
|
||||||
|
"echo": true,
|
||||||
|
"reveal": "always",
|
||||||
|
"focus": false,
|
||||||
|
"panel": "shared",
|
||||||
|
"showReuseMessage": false,
|
||||||
|
"clear": true
|
||||||
|
},
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
},
|
||||||
|
"windows": {
|
||||||
|
"options": {
|
||||||
|
"shell": {
|
||||||
|
"executable": "cmd.exe",
|
||||||
|
"args": [
|
||||||
|
"/d", "/c"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#define MENU_NAME "Cheat Menu"
|
#define MENU_NAME "Cheat Menu"
|
||||||
#define MENU_VERSION_NUMBER "3.1"
|
#define MENU_VERSION_NUMBER "3.1"
|
||||||
#define MENU_VERSION MENU_VERSION_NUMBER
|
#define MENU_VERSION MENU_VERSION_NUMBER"-beta"
|
||||||
#define BUILD_NUMBER "20211222"
|
#define BUILD_NUMBER "20211227"
|
||||||
#define MENU_TITLE MENU_NAME " v" MENU_VERSION
|
#define MENU_TITLE MENU_NAME " v" MENU_VERSION
|
||||||
|
7
tools/DebugAll.bat
Normal file
7
tools/DebugAll.bat
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
@echo off
|
||||||
|
echo --------------------------------------------------
|
||||||
|
echo Building DebugAll
|
||||||
|
echo --------------------------------------------------
|
||||||
|
echo[
|
||||||
|
call "tools\Setup.bat"
|
||||||
|
MsBuild CheatMenu.sln /property:Configuration=Debug
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
cd tools
|
echo --------------------------------------------------
|
||||||
premake5.exe vs2022
|
echo Building DebugIII
|
||||||
cd ../build
|
echo --------------------------------------------------
|
||||||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
|
echo[
|
||||||
|
call "tools\Setup.bat"
|
||||||
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuIII
|
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuIII
|
||||||
cd ..
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
cd tools
|
echo --------------------------------------------------
|
||||||
premake5.exe vs2022
|
echo Building DebugSA
|
||||||
cd ../build
|
echo --------------------------------------------------
|
||||||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
|
echo[
|
||||||
|
call "tools\Setup.bat"
|
||||||
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuSA
|
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuSA
|
||||||
cd ..
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
cd tools
|
echo --------------------------------------------------
|
||||||
premake5.exe vs2022
|
echo Building DebugVC
|
||||||
cd ../build
|
echo --------------------------------------------------
|
||||||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
|
echo[
|
||||||
|
call "tools\Setup.bat"
|
||||||
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuVC
|
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuVC
|
||||||
cd ..
|
|
||||||
|
53
tools/PackAll.bat
Normal file
53
tools/PackAll.bat
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
@echo off
|
||||||
|
@REM Packs all game files into their proper archives (Yes I'm that lazy)
|
||||||
|
|
||||||
|
@REM ------------------------------------------------------
|
||||||
|
@REM Set game paths below
|
||||||
|
set "SA_DIR="F:\GTASanAndreas""
|
||||||
|
set "VC_DIR="E:\GTA Vice City""
|
||||||
|
set "III_DIR="E:\GTA3""
|
||||||
|
@REM ------------------------------------------------------
|
||||||
|
|
||||||
|
echo ------------------------------------------------------
|
||||||
|
echo "CheatMenu Packaging Utility"
|
||||||
|
echo ------------------------------------------------------
|
||||||
|
cd tools
|
||||||
|
echo Packing SA...
|
||||||
|
call :copyFiles %SA_DIR% "CheatMenuSA"
|
||||||
|
echo Packing VC...
|
||||||
|
call :copyFiles %VC_DIR% "CheatMenuVC"
|
||||||
|
echo Packing III...
|
||||||
|
call :copyFiles %III_DIR% "CheatMenuIII"
|
||||||
|
cd ..
|
||||||
|
rd /S /Q "pack" /Q
|
||||||
|
exit
|
||||||
|
|
||||||
|
|
||||||
|
@REM ------------------------------------------------------
|
||||||
|
@REM Functions
|
||||||
|
@REM ------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
:copyFiles
|
||||||
|
set "asiPath="%~1\%~2.asi""
|
||||||
|
set "folderpath="%~1\CheatMenu""
|
||||||
|
set "archivePath="..\%~2.7z""
|
||||||
|
|
||||||
|
@REM Remove existing files
|
||||||
|
rd /S /Q "pack" /Q
|
||||||
|
rd /S /Q %archivePath% /Q
|
||||||
|
|
||||||
|
@REM Copy the files to a temp folder
|
||||||
|
@REM straight xcopy doesn't seem to work on my system, broken registry?
|
||||||
|
%systemroot%\System32\xcopy /s %asiPath% "pack\" /K /D /H /Y
|
||||||
|
%systemroot%\System32\xcopy /s %folderpath% "pack\CheatMenu\" /K /D /H /Y
|
||||||
|
|
||||||
|
@REM Remove the config and versioninfo files since we don't want to distribute them
|
||||||
|
del "pack\CheatMenu\json\config.json" /Q
|
||||||
|
del "pack\CheatMenu\json\versioninfo.json" /Q
|
||||||
|
|
||||||
|
@REM Guessing we have 7zip installed already, well I have
|
||||||
|
"C:\Program Files\7-Zip\7z.exe" a -t7z %archivePath% ".\pack\*"
|
||||||
|
|
||||||
|
@REM ------------------------------------------------------
|
7
tools/ReleaseAll.bat
Normal file
7
tools/ReleaseAll.bat
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
@echo off
|
||||||
|
echo --------------------------------------------------
|
||||||
|
echo Building ReleaseAll
|
||||||
|
echo --------------------------------------------------
|
||||||
|
echo[
|
||||||
|
call "tools\Setup.bat"
|
||||||
|
MsBuild CheatMenu.sln /property:Configuration=Release
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
cd tools
|
echo --------------------------------------------------
|
||||||
premake5.exe vs2022
|
echo Building ReleaseIII
|
||||||
cd ../build
|
echo --------------------------------------------------
|
||||||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
|
echo[
|
||||||
|
call "tools\Setup.bat"
|
||||||
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuIII
|
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuIII
|
||||||
cd ..
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
cd tools
|
echo --------------------------------------------------
|
||||||
premake5.exe vs2022
|
echo Building ReleaseSA
|
||||||
cd ../build
|
echo --------------------------------------------------
|
||||||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
|
echo[
|
||||||
|
call "tools\Setup.bat"
|
||||||
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuSA
|
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuSA
|
||||||
cd ..
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
cd tools
|
echo --------------------------------------------------
|
||||||
premake5.exe vs2022
|
echo Building ReleaseVC
|
||||||
cd ../build
|
echo --------------------------------------------------
|
||||||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
|
echo[
|
||||||
|
call "tools\Setup.bat"
|
||||||
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuVC
|
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuVC
|
||||||
cd ..
|
|
||||||
|
6
tools/Setup.bat
Normal file
6
tools/Setup.bat
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
rem Generate visual studio files and run the devcmd init
|
||||||
|
@echo off
|
||||||
|
cd tools
|
||||||
|
premake5.exe vs2022
|
||||||
|
cd ../build
|
||||||
|
call "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Tools\VsDevCmd.bat"
|
Loading…
Reference in New Issue
Block a user