Produce local-installation tarball with static asset filename

This commit is contained in:
James Addison 2020-03-22 17:29:00 +00:00
parent 0d38b0a038
commit 53e2122a39

View File

@ -5,6 +5,14 @@ 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!package.json -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"