mirror of
https://github.com/grocy/grocy.git
synced 2026-04-06 04:46:16 +02:00
21 lines
972 B
Batchfile
21 lines
972 B
Batchfile
set projectPath=%~dp0
|
|
if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1%
|
|
set projectPath=%projectPath%\..
|
|
|
|
set releasePath=%projectPath%\.release
|
|
mkdir "%releasePath%"
|
|
|
|
del "%releasePath%\grocy.tar"
|
|
del "%releasePath%\grocy.tar.gz"
|
|
7za a -r "%releasePath%\grocy.tar" "%projectPath%\*" -xr!.* -xr!publication_assets
|
|
7za a "%releasePath%\grocy.tar" "%projectPath%\public\.htaccess"
|
|
7za rn "%releasePath%\grocy.tar" .htaccess public\.htaccess
|
|
7za d "%releasePath%\grocy.tar" data\*.* data\storage data\viewcache\*
|
|
7za a "%releasePath%\grocy.tar.gz" "%releasePath%\grocy.tar"
|
|
|
|
del "%releasePath%\grocy.zip"
|
|
7za a -r "%releasePath%\grocy.zip" "%projectPath%\*" -xr!.* -xr!build.bat -xr!composer.json -xr!composer.lock -xr!package.json -xr!yarn.lock -xr!publication_assets
|
|
7za a "%releasePath%\grocy.zip" "%projectPath%\public\.htaccess"
|
|
7za rn "%releasePath%\grocy.zip" .htaccess public\.htaccess
|
|
7za d "%releasePath%\grocy.zip" data\*.* data\storage data\viewcache\*
|