From b1517755dfc0bba7c2d299e1319fe5305f599b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lower?= Date: Fri, 23 Feb 2024 07:05:11 +0100 Subject: [PATCH] Add profile build scripts --- .gitignore | 2 ++ build.cmd | 6 ++++++ package.cmd | 16 ++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 package.cmd diff --git a/.gitignore b/.gitignore index ee0f66e..ffb6562 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ build*/ cmake-build*/ CMakerLists.txt CMakeLists.txt.user + +*.zip diff --git a/build.cmd b/build.cmd index 2968a87..c1180d4 100644 --- a/build.cmd +++ b/build.cmd @@ -1,3 +1,9 @@ +@echo off + +REM change path to script direcotry +%~d0 +cd %~dp0 + rmdir /S /Q build "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=x64 -host_arch=x64 & cmake -S . -B build ./build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release & cmake --build ./build --clean-first --config Release --target pacific_drive_plugin diff --git a/package.cmd b/package.cmd new file mode 100644 index 0000000..081d3a6 --- /dev/null +++ b/package.cmd @@ -0,0 +1,16 @@ +@echo off + +REM change path to script direcotry +%~d0 +cd %~dp0 + +REM mkdir is mkdir -p equivalent with extensions +setlocal enableextensions + +mkdir build\Release\profile\plugins +copy profile_template\* build\Release\profile +copy build\Release\pacific_drive_plugin.dll build\Release\profile\plugins + +del /q PenDriverPro-Win64-Shipping.zip + +7z a PenDriverPro-Win64-Shipping.zip .\build\Release\profile\*