Skip to content

Commit

Permalink
Improve packaging scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dictoon committed Sep 19, 2016
1 parent 624faa6 commit 8315a00
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 4 deletions.
24 changes: 22 additions & 2 deletions scripts/make-package-debug.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
@echo off
tools\7z\7z.exe a -r -mx9 appleseed-max2015-x.x.x-yyyy-debug.zip ..\bin\appleseed-max2015\x64\Debug\*.*
tools\7z\7z.exe a -r -mx9 appleseed-max2017-x.x.x-yyyy-debug.zip ..\bin\appleseed-max2017\x64\Debug\*.*

pushd %~dp0

REM Cleanup
rmdir /S /Q appleseed 2>nul
del appleseed-max2015-x.x.x-yyyy-debug.zip 2>nul
del appleseed-max2017-x.x.x-yyyy-debug.zip 2>nul

REM 3ds Max 2015 archive
mkdir appleseed
copy ..\bin\appleseed-max2015\x64\Debug\*.* appleseed
tools\7z\7z.exe a -r -mx9 appleseed-max2015-x.x.x-yyyy-debug.zip appleseed
rmdir /S /Q appleseed

REM 3ds Max 2017 archive
mkdir appleseed
copy ..\bin\appleseed-max2017\x64\Debug\*.* appleseed
tools\7z\7z.exe a -r -mx9 appleseed-max2017-x.x.x-yyyy-debug.zip appleseed
rmdir /S /Q appleseed

popd

pause
24 changes: 22 additions & 2 deletions scripts/make-package-ship.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
@echo off
tools\7z\7z.exe a -r -mx9 appleseed-max2015-x.x.x-yyyy.zip ..\bin\appleseed-max2015\x64\Ship\*.*
tools\7z\7z.exe a -r -mx9 appleseed-max2017-x.x.x-yyyy.zip ..\bin\appleseed-max2017\x64\Ship\*.*

pushd %~dp0

REM Cleanup
rmdir /S /Q appleseed 2>nul
del appleseed-max2015-x.x.x-yyyy.zip 2>nul
del appleseed-max2017-x.x.x-yyyy.zip 2>nul

REM 3ds Max 2015 archive
mkdir appleseed
copy ..\bin\appleseed-max2015\x64\Ship\*.* appleseed
tools\7z\7z.exe a -r -mx9 appleseed-max2015-x.x.x-yyyy.zip appleseed
rmdir /S /Q appleseed

REM 3ds Max 2017 archive
mkdir appleseed
copy ..\bin\appleseed-max2017\x64\Ship\*.* appleseed
tools\7z\7z.exe a -r -mx9 appleseed-max2017-x.x.x-yyyy.zip appleseed
rmdir /S /Q appleseed

popd

pause

0 comments on commit 8315a00

Please sign in to comment.