Update project gen & build tools again

This commit is contained in:
Grinch_ 2021-12-28 12:32:29 +06:00
parent af526071b2
commit c17dc9078f
50 changed files with 36 additions and 25 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
archives/
build/
tools/pack/
.gitignore

View File

@ -9,7 +9,7 @@
"Aircraft": {
"Dodo": "126"
},
"Woker": {
"Worker": {
"Firetruk": "97",
"Ambulan": "106",
"Taxi": "110",

Binary file not shown.

Binary file not shown.

View File

@ -5,3 +5,9 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug
%systemroot%\System32\xcopy /s "build\bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y

View File

@ -5,3 +5,5 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuIII
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.pdb" %III_DIR% /K /D /H /Y

View File

@ -5,3 +5,5 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuSA
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.pdb" %SA_DIR% /K /D /H /Y

View File

@ -5,3 +5,5 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Debug /t:CheatMenuVC
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.pdb" %VC_DIR% /K /D /H /Y

View File

@ -1,25 +1,19 @@
@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 ------------------------------------------------------
rd /S /Q "archive" /Q
cd tools
echo Packing SA...
call :copyFiles %SA_DIR% "CheatMenuSA"
call :copyFiles "CheatMenuSA"
echo Packing VC...
call :copyFiles %VC_DIR% "CheatMenuVC"
call :copyFiles "CheatMenuVC"
echo Packing III...
call :copyFiles %III_DIR% "CheatMenuIII"
cd ..
call :copyFiles "CheatMenuIII"
rd /S /Q "pack" /Q
cd ..
exit
@ -30,9 +24,9 @@ exit
:copyFiles
set "asiPath="%~1\%~2.asi""
set "folderpath="%~1\CheatMenu""
set "archivePath="..\%~2.7z""
set "asiPath="..\build\bin\%~1.asi""
set "folderpath="..\resource\%~1""
set "archivePath="..\archive\%~1.7z""
@REM Remove existing files
rd /S /Q "pack" /Q
@ -42,6 +36,7 @@ rd /S /Q %archivePath% /Q
@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
%systemroot%\System32\xcopy /s "..\resource\common\" "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

View File

@ -5,3 +5,6 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Release
%systemroot%\System32\xcopy /s "build\bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y
%systemroot%\System32\xcopy /s "build\bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y

View File

@ -5,3 +5,4 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuIII
%systemroot%\System32\xcopy /s "bin\CheatMenuIII.asi" %III_DIR% /K /D /H /Y

View File

@ -5,3 +5,4 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuSA
%systemroot%\System32\xcopy /s "bin\CheatMenuSA.asi" %SA_DIR% /K /D /H /Y

View File

@ -5,3 +5,4 @@ echo --------------------------------------------------
echo[
call "tools\Setup.bat"
MsBuild CheatMenu.sln /property:Configuration=Release /t:CheatMenuVC
%systemroot%\System32\xcopy /s "bin\CheatMenuVC.asi" %VC_DIR% /K /D /H /Y

View File

@ -1,5 +1,11 @@
rem Generate visual studio files and run the devcmd init
@echo off
rem Set game paths below
set "SA_DIR="F:\GTASanAndreas""
set "VC_DIR="E:\GTA Vice City""
set "III_DIR="E:\GTA3""
cd tools
premake5.exe vs2022
cd ../build

View File

@ -17,12 +17,6 @@ if (PSDK_DIR == nil) then
error("PLUGIN_SDK_DIR environment variable not set")
end
-- Build directories
----------------------------
GTASA_DIR = "F:/GTASanAndreas"
GTAVC_DIR = "E:/GTA Vice City"
GTA3_DIR = "E:/GTA3"
----------------------------
workspace "CheatMenu"
@ -34,10 +28,10 @@ workspace "CheatMenu"
characterset "MBCS"
staticruntime "On"
location "../build"
targetdir "../build/bin"
project "Depend"
kind "StaticLib"
targetdir "../build/bin"
files {
"../depned/**.h",
@ -57,7 +51,6 @@ project "Depend"
project "CheatMenuIII"
kind "SharedLib"
targetdir (GTA3_DIR)
targetextension ".asi"
files {
@ -151,7 +144,6 @@ project "CheatMenuIII"
project "CheatMenuVC"
kind "SharedLib"
targetdir (GTAVC_DIR)
targetextension ".asi"
files {
@ -244,7 +236,6 @@ project "CheatMenuVC"
project "CheatMenuSA"
kind "SharedLib"
targetdir (GTASA_DIR)
targetextension ".asi"
files {