Sandboxie/Installer/copy_build.cmd

196 lines
6.9 KiB
Batchfile
Raw Normal View History

2021-10-16 16:19:51 +01:00
REM @ECHO OFF
2024-06-04 18:29:19 +01:00
echo %*
IF "%~4" == "" ( set "openssl_version=3.3.1" ) ELSE ( set "openssl_version=%~4" )
IF "%~3" == "" ( set "qt6_version=6.3.1" ) ELSE ( set "qt6_version=%~3" )
IF "%~2" == "" ( set "qt_version=5.15.14" ) ELSE ( set "qt_version=%~2" )
IF "%openssl_version:~0,3%" == "1.1" ( set "sslMajorVersion=1_1" ) ELSE ( set "sslMajorVersion=3" )
2022-10-12 20:13:44 +01:00
IF %1 == x86 (
set archPath=Win32
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
2024-06-04 18:29:19 +01:00
set qtPath=%~dp0..\..\Qt\%qt_version%\msvc2019
2022-10-12 20:13:44 +01:00
set instPath=%~dp0\SbiePlus_x86
)
IF %1 == x64 (
set archPath=x64
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
2024-06-04 18:29:19 +01:00
REM set qtPath=%~dp0..\..\Qt\%qt6_version%\msvc2019_64
set qtPath=%~dp0..\..\Qt\%qt_version%\msvc2019_64
2022-10-12 20:13:44 +01:00
set instPath=%~dp0\SbiePlus_x64
)
IF %1 == ARM64 (
set archPath=ARM64
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsamd64_arm64.bat"
2024-06-04 18:29:19 +01:00
set qtPath=%~dp0..\..\Qt\%qt6_version%\msvc2019_arm64
2022-10-12 20:13:44 +01:00
set instPath=%~dp0\SbiePlus_a64
2021-10-16 16:19:51 +01:00
)
2022-10-12 20:13:44 +01:00
set redistPath=%VCToolsRedistDir%\%1\Microsoft.VC142.CRT
@echo on
2021-10-16 16:19:51 +01:00
set srcPath=%~dp0..\SandboxiePlus\Bin\%archPath%\Release
set sbiePath=%~dp0..\Sandboxie\Bin\%archPath%\SbieRelease
echo inst: %instPath%
echo arch: %archPath%
2022-10-12 20:13:44 +01:00
echo redistr: %redistPath%
2021-10-16 16:19:51 +01:00
echo source: %srcPath%
echo source: %sbiePath%
mkdir %instPath%
2022-06-30 22:37:41 +01:00
ECHO Copying VC Runtime files
2022-10-12 20:13:44 +01:00
copy "%redistPath%\*" %instPath%\
2021-10-16 16:19:51 +01:00
2022-06-30 22:37:41 +01:00
ECHO Copying Qt libraries
2021-10-16 16:19:51 +01:00
2022-10-19 07:51:43 +01:00
IF NOT %archPath% == ARM64 (
REM IF %archPath% == Win32 (
2022-10-12 20:13:44 +01:00
copy %qtPath%\bin\Qt5Core.dll %instPath%\
copy %qtPath%\bin\Qt5Gui.dll %instPath%\
copy %qtPath%\bin\Qt5Network.dll %instPath%\
copy %qtPath%\bin\Qt5Widgets.dll %instPath%\
copy %qtPath%\bin\Qt5WinExtras.dll %instPath%\
2023-07-01 18:56:32 +01:00
copy %qtPath%\bin\Qt5Qml.dll %instPath%\
2022-10-12 20:13:44 +01:00
) ELSE (
copy %qtPath%\bin\Qt6Core.dll %instPath%\
copy %qtPath%\bin\Qt6Gui.dll %instPath%\
copy %qtPath%\bin\Qt6Network.dll %instPath%\
copy %qtPath%\bin\Qt6Widgets.dll %instPath%\
2023-07-01 18:56:32 +01:00
copy %qtPath%\bin\Qt6Qml.dll %instPath%\
2022-10-12 20:13:44 +01:00
)
2021-10-16 16:19:51 +01:00
mkdir %instPath%\platforms
copy %qtPath%\plugins\platforms\qdirect2d.dll %instPath%\platforms\
copy %qtPath%\plugins\platforms\qminimal.dll %instPath%\platforms\
copy %qtPath%\plugins\platforms\qoffscreen.dll %instPath%\platforms\
copy %qtPath%\plugins\platforms\qwindows.dll %instPath%\platforms\
mkdir %instPath%\styles
copy %qtPath%\plugins\styles\qwindowsvistastyle.dll %instPath%\styles\
2023-04-22 14:23:15 +01:00
IF %archPath% == ARM64 (
mkdir %instPath%\tls
copy %qtPath%\plugins\tls\qopensslbackend.dll %instPath%\tls\
)
2022-10-12 20:13:44 +01:00
2022-06-30 22:37:41 +01:00
ECHO Copying OpenSSL libraries
2021-10-16 16:19:51 +01:00
IF %archPath% == Win32 (
2024-06-04 18:29:19 +01:00
copy /y %~dp0OpenSSL\Win_x86\bin\libssl-%sslMajorVersion%.dll %instPath%\
copy /y %~dp0OpenSSL\Win_x86\bin\libcrypto-%sslMajorVersion%.dll %instPath%\
2021-10-16 16:19:51 +01:00
)
2022-10-12 20:13:44 +01:00
IF NOT %archPath% == Win32 (
2024-06-04 18:29:19 +01:00
copy /y %~dp0OpenSSL\Win_%archPath%\bin\libssl-%sslMajorVersion%-%archPath%.dll %instPath%\
copy /y %~dp0OpenSSL\Win_%archPath%\bin\libcrypto-%sslMajorVersion%-%archPath%.dll %instPath%\
2021-10-16 16:19:51 +01:00
)
2022-10-12 20:13:44 +01:00
2021-10-16 16:19:51 +01:00
2022-11-12 09:49:23 +00:00
ECHO Copying 7zip library
copy /y %~dp07-Zip\7-Zip-%archPath%\7z.dll %instPath%\
2022-06-30 22:37:41 +01:00
ECHO Copying SandMan project and libraries
2021-10-16 16:19:51 +01:00
copy %srcPath%\MiscHelpers.dll %instPath%\
copy %srcPath%\MiscHelpers.pdb %instPath%\
copy %srcPath%\QSbieAPI.dll %instPath%\
copy %srcPath%\QSbieAPI.pdb %instPath%\
copy %srcPath%\QtSingleApp.dll %instPath%\
2024-03-09 10:19:30 +00:00
copy %srcPath%\QtSingleApp.pdb %instPath%\
2021-10-16 16:19:51 +01:00
copy %srcPath%\UGlobalHotkey.dll %instPath%\
2024-03-09 10:19:30 +00:00
copy %srcPath%\UGlobalHotkey.pdb %instPath%\
2021-10-16 16:19:51 +01:00
copy %srcPath%\SandMan.exe %instPath%\
copy %srcPath%\SandMan.pdb %instPath%\
ECHO Copying SandMan translations
mkdir %instPath%\translations\
rem copy /y %~dp0..\SandboxiePlus\SandMan\sandman_*.qm %instPath%\translations\
copy /y %~dp0..\SandboxiePlus\Build_SandMan_%archPath%\release\sandman_*.qm %instPath%\translations\
2023-08-08 20:50:07 +01:00
copy /y %~dp0\qttranslations\qm\qt_*.qm %instPath%\translations\
copy /y %~dp0\qttranslations\qm\qtbase_*.qm %instPath%\translations\
copy /y %~dp0\qttranslations\qm\qtmultimedia_*.qm %instPath%\translations\
IF NOT %archPath% == ARM64 (
REM IF %archPath% == Win32 (
2021-10-19 08:34:10 +01:00
copy /y %qtPath%\translations\qtscript_*.qm %instPath%\translations\
copy /y %qtPath%\translations\qtxmlpatterns_*.qm %instPath%\translations\
)
2021-10-16 16:19:51 +01:00
2022-11-12 10:31:44 +00:00
"C:\Program Files\7-Zip\7z.exe" a %instPath%\translations.7z %instPath%\translations\*
rmdir /S /Q %instPath%\translations\
2023-07-01 18:32:18 +01:00
"C:\Program Files\7-Zip\7z.exe" a %instPath%\troubleshooting.7z %~dp0..\SandboxiePlus\SandMan\Troubleshooting\*
2021-10-16 16:19:51 +01:00
ECHO Copying Sandboxie
copy /y %sbiePath%\SbieSvc.exe %instPath%\
copy /y %sbiePath%\SbieSvc.pdb %instPath%\
copy /y %sbiePath%\SbieDll.dll %instPath%\
copy /y %sbiePath%\SbieDll.pdb %instPath%\
copy /y %sbiePath%\SbieDrv.sys %instPath%\
copy /y %sbiePath%\SbieDrv.pdb %instPath%\
copy /y %sbiePath%\SbieCtrl.exe %instPath%\
copy /y %sbiePath%\SbieCtrl.pdb %instPath%\
copy /y %sbiePath%\Start.exe %instPath%\
copy /y %sbiePath%\Start.pdb %instPath%\
copy /y %sbiePath%\kmdutil.exe %instPath%\
copy /y %sbiePath%\kmdutil.pdb %instPath%\
copy /y %sbiePath%\SbieIni.exe %instPath%\
copy /y %sbiePath%\SbieIni.pdb %instPath%\
copy /y %sbiePath%\SbieMsg.dll %instPath%\
copy /y %sbiePath%\SboxHostDll.dll %instPath%\
copy /y %sbiePath%\SboxHostDll.pdb %instPath%\
copy /y %sbiePath%\SandboxieBITS.exe %instPath%\
copy /y %sbiePath%\SandboxieBITS.pdb %instPath%\
copy /y %sbiePath%\SandboxieCrypto.exe %instPath%\
copy /y %sbiePath%\SandboxieCrypto.pdb %instPath%\
copy /y %sbiePath%\SandboxieDcomLaunch.exe %instPath%\
copy /y %sbiePath%\SandboxieDcomLaunch.pdb %instPath%\
copy /y %sbiePath%\SandboxieRpcSs.exe %instPath%\
copy /y %sbiePath%\SandboxieRpcSs.pdb %instPath%\
copy /y %sbiePath%\SandboxieWUAU.exe %instPath%\
copy /y %sbiePath%\SandboxieWUAU.pdb %instPath%\
IF %archPath% == x64 (
mkdir %instPath%\32\
copy /y %~dp0..\Sandboxie\Bin\Win32\SbieRelease\SbieSvc.exe %instPath%\32\
copy /y %~dp0..\Sandboxie\Bin\Win32\SbieRelease\SbieDll.dll %instPath%\32\
2022-07-03 08:56:23 +01:00
2022-05-15 13:03:36 +01:00
copy /y %~dp0..\SandboxiePlus\x64\Release\SbieShellExt.dll %instPath%\
copy /y %~dp0..\SandboxiePlus\x64\Release\SbieShellPkg.msix %instPath%\
2021-10-16 16:19:51 +01:00
)
2022-10-12 20:13:44 +01:00
IF %archPath% == ARM64 (
mkdir %instPath%\32\
copy /y %~dp0..\Sandboxie\Bin\Win32\SbieRelease\SbieSvc.exe %instPath%\32\
copy /y %~dp0..\Sandboxie\Bin\Win32\SbieRelease\SbieDll.dll %instPath%\32\
mkdir %instPath%\64\
copy /y %~dp0..\Sandboxie\Bin\ARM64EC\SbieRelease\SbieDll.dll %instPath%\64\
copy /y %~dp0..\SandboxiePlus\ARM64\Release\SbieShellExt.dll %instPath%\
copy /y %~dp0..\SandboxiePlus\ARM64\Release\SbieShellPkg.msix %instPath%\
)
2021-10-16 16:19:51 +01:00
copy /y %~dp0..\Sandboxie\install\Templates.ini %instPath%\
copy /y %~dp0..\Sandboxie\install\Manifest0.txt %instPath%\
copy /y %~dp0..\Sandboxie\install\Manifest1.txt %instPath%\
copy /y %~dp0..\Sandboxie\install\Manifest2.txt %instPath%\
2023-05-04 22:13:12 +01:00
ECHO Copying Sandboxie Tools
2022-11-20 17:29:24 +00:00
2023-08-24 19:25:24 +01:00
copy /y %~dp0..\SandboxieTools\%archPath%\Release\ImBox.exe %instPath%\
2023-08-25 18:18:17 +01:00
copy /y %~dp0..\SandboxieTools\%archPath%\Release\ImBox.pdb %instPath%\
2023-05-04 22:13:12 +01:00
copy /y %~dp0..\SandboxieTools\%archPath%\Release\UpdUtil.exe %instPath%\
2023-08-25 18:18:17 +01:00
copy /y %~dp0..\SandboxieTools\%archPath%\Release\UpdUtil.pdb %instPath%\
2022-11-20 17:29:24 +00:00
2021-10-16 16:19:51 +01:00