Skip to content

Commit

Permalink
Add profile build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
keton committed Feb 23, 2024
1 parent 6a7bde0 commit b151775
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ build*/
cmake-build*/
CMakerLists.txt
CMakeLists.txt.user

*.zip
6 changes: 6 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
@@ -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
16 changes: 16 additions & 0 deletions package.cmd
Original file line number Diff line number Diff line change
@@ -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\*

0 comments on commit b151775

Please sign in to comment.