mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Reorganized dev scripts and tools
This commit is contained in:
parent
fcdeda91d9
commit
e08dfb408c
16
.devtools/create_release_package.bat
Normal file
16
.devtools/create_release_package.bat
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
set projectPath=%~dp0
|
||||||
|
if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1%
|
||||||
|
set projectPath=%projectPath%\..
|
||||||
|
|
||||||
|
set releasePath=%projectPath%\.release
|
||||||
|
mkdir "%releasePath%"
|
||||||
|
|
||||||
|
copy "%projectPath%\version.json" versiontemp.json
|
||||||
|
for /f "tokens=*" %%a in ('tools\jq.exe .Version versiontemp.json --raw-output') do set version=%%a
|
||||||
|
del versiontemp.json
|
||||||
|
|
||||||
|
del "%releasePath%\grocy_%version%.zip"
|
||||||
|
"tools\7za.exe" a -r "%releasePath%\grocy_%version%.zip" "%projectPath%\*" -xr!.* -xr!build.bat -xr!composer.json -xr!composer.lock -xr!package.json -xr!yarn.lock -xr!publication_assets
|
||||||
|
"tools\7za.exe" a "%releasePath%\grocy_%version%.zip" "%projectPath%\public\.htaccess"
|
||||||
|
"tools\7za.exe" rn "%releasePath%\grocy_%version%.zip" .htaccess public\.htaccess
|
||||||
|
"tools\7za.exe" d "%releasePath%\grocy_%version%.zip" data\*.* data\storage data\viewcache\*
|
4
.devtools/install_dependencies.bat
Normal file
4
.devtools/install_dependencies.bat
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
pushd ..
|
||||||
|
composer install
|
||||||
|
yarn install
|
||||||
|
popd
|
4
.devtools/update_dependencies.bat
Normal file
4
.devtools/update_dependencies.bat
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
pushd ..
|
||||||
|
composer update
|
||||||
|
yarn upgrade
|
||||||
|
popd
|
13
build.bat
13
build.bat
@ -1,13 +0,0 @@
|
|||||||
set projectPath=%~dp0
|
|
||||||
if %projectPath:~-1%==\ set projectPath=%projectPath:~0,-1%
|
|
||||||
|
|
||||||
set releasePath=%projectPath%\.release
|
|
||||||
mkdir "%releasePath%"
|
|
||||||
|
|
||||||
for /f "tokens=*" %%a in ('build_tools\jq.exe .Version version.json --raw-output') do set version=%%a
|
|
||||||
|
|
||||||
del "%releasePath%\grocy_%version%.zip"
|
|
||||||
"build_tools\7za.exe" a -r "%releasePath%\grocy_%version%.zip" "%projectPath%\*" -xr!.* -xr!build_tools -xr!build.bat -xr!composer.json -xr!composer.lock -xr!package.json -xr!yarn.lock -xr!publication_assets
|
|
||||||
"build_tools\7za.exe" a "%releasePath%\grocy_%version%.zip" "%projectPath%\public\.htaccess"
|
|
||||||
"build_tools\7za.exe" rn "%releasePath%\grocy_%version%.zip" .htaccess public\.htaccess
|
|
||||||
"build_tools\7za.exe" d "%releasePath%\grocy_%version%.zip" data\*.* data\storage data\viewcache\*
|
|
28
composer.lock
generated
28
composer.lock
generated
@ -210,16 +210,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "illuminate/container",
|
"name": "illuminate/container",
|
||||||
"version": "v5.8.2",
|
"version": "v5.8.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/illuminate/container.git",
|
"url": "https://github.com/illuminate/container.git",
|
||||||
"reference": "2b390ea16656162a7c1a5f2ad547b4de917324bf"
|
"reference": "b984960d2634c6be97b0dd368a8953e8c4e06ec7"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/illuminate/container/zipball/2b390ea16656162a7c1a5f2ad547b4de917324bf",
|
"url": "https://api.github.com/repos/illuminate/container/zipball/b984960d2634c6be97b0dd368a8953e8c4e06ec7",
|
||||||
"reference": "2b390ea16656162a7c1a5f2ad547b4de917324bf",
|
"reference": "b984960d2634c6be97b0dd368a8953e8c4e06ec7",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -251,11 +251,11 @@
|
|||||||
],
|
],
|
||||||
"description": "The Illuminate Container package.",
|
"description": "The Illuminate Container package.",
|
||||||
"homepage": "https://laravel.com",
|
"homepage": "https://laravel.com",
|
||||||
"time": "2019-02-23T13:57:12+00:00"
|
"time": "2019-03-03T15:13:35+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "illuminate/contracts",
|
"name": "illuminate/contracts",
|
||||||
"version": "v5.8.2",
|
"version": "v5.8.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/illuminate/contracts.git",
|
"url": "https://github.com/illuminate/contracts.git",
|
||||||
@ -299,7 +299,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "illuminate/events",
|
"name": "illuminate/events",
|
||||||
"version": "v5.8.2",
|
"version": "v5.8.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/illuminate/events.git",
|
"url": "https://github.com/illuminate/events.git",
|
||||||
@ -344,7 +344,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "illuminate/filesystem",
|
"name": "illuminate/filesystem",
|
||||||
"version": "v5.8.2",
|
"version": "v5.8.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/illuminate/filesystem.git",
|
"url": "https://github.com/illuminate/filesystem.git",
|
||||||
@ -396,16 +396,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "illuminate/support",
|
"name": "illuminate/support",
|
||||||
"version": "v5.8.2",
|
"version": "v5.8.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/illuminate/support.git",
|
"url": "https://github.com/illuminate/support.git",
|
||||||
"reference": "013cfab5d44c530b56d70cc9ccb891c8b25ebbce"
|
"reference": "0f0291d1bc2f036af3fceb8e46900b58812533c4"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/illuminate/support/zipball/013cfab5d44c530b56d70cc9ccb891c8b25ebbce",
|
"url": "https://api.github.com/repos/illuminate/support/zipball/0f0291d1bc2f036af3fceb8e46900b58812533c4",
|
||||||
"reference": "013cfab5d44c530b56d70cc9ccb891c8b25ebbce",
|
"reference": "0f0291d1bc2f036af3fceb8e46900b58812533c4",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -453,11 +453,11 @@
|
|||||||
],
|
],
|
||||||
"description": "The Illuminate Support package.",
|
"description": "The Illuminate Support package.",
|
||||||
"homepage": "https://laravel.com",
|
"homepage": "https://laravel.com",
|
||||||
"time": "2019-02-27T14:00:44+00:00"
|
"time": "2019-03-05T13:38:58+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "illuminate/view",
|
"name": "illuminate/view",
|
||||||
"version": "v5.8.2",
|
"version": "v5.8.3",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/illuminate/view.git",
|
"url": "https://github.com/illuminate/view.git",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user