46 lines
1.2 KiB
Batchfile
46 lines
1.2 KiB
Batchfile
@echo off
|
|
echo Creating VNCServerList deployment package from Debug folder...
|
|
echo.
|
|
|
|
REM Check if Debug folder exists
|
|
if not exist "bin\Debug" (
|
|
echo Error: bin\Debug folder not found!
|
|
echo Please build the project first in Visual Studio 2017 Express:
|
|
echo 1. Open VNCServerList.sln in Visual Studio 2017 Express
|
|
echo 2. Build -> Build Solution
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo Found Debug folder. Creating deployment package...
|
|
echo.
|
|
|
|
REM Create deployment folder
|
|
if not exist "deploy" mkdir deploy
|
|
|
|
REM Copy all files from Debug folder (except .pdb files)
|
|
echo Copying files from Debug folder...
|
|
xcopy "bin\Debug\*.*" "deploy\" /E /I /Y
|
|
|
|
REM Remove .pdb files (debug symbols)
|
|
if exist "deploy\*.pdb" del "deploy\*.pdb"
|
|
|
|
REM Copy README file
|
|
if exist "README_deploy.txt" (
|
|
copy "README_deploy.txt" "deploy\README.txt"
|
|
echo Copied README.txt to deploy\
|
|
) else (
|
|
echo Warning: README_deploy.txt not found
|
|
)
|
|
|
|
echo.
|
|
echo Deployment package created in 'deploy' folder!
|
|
echo.
|
|
echo Files included:
|
|
dir deploy /b
|
|
echo.
|
|
echo Note: This package includes all necessary files from Debug folder.
|
|
echo You can now zip the 'deploy' folder and distribute it.
|
|
echo.
|
|
pause |