Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cba6a3f969 | ||
|
|
bea8629d10 | ||
|
|
b2751872a3 |
40
ReadMe.composer-release.md
Normal file
40
ReadMe.composer-release.md
Normal file
@@ -0,0 +1,40 @@
|
||||
# Create new package in system gitea/gitlab/composer.egplusww.jp
|
||||
|
||||
## Prepare
|
||||
|
||||
The following things must have been done:
|
||||
|
||||
- full phpstan check/phan check where possible
|
||||
- a valid version tag `vX.Y.Z` must have been created and pushed to all services
|
||||
|
||||
## Publish
|
||||
|
||||
To do the final publish
|
||||
|
||||
### GITEA and GITLAB
|
||||
|
||||
Run `publish/publish.sh` script to create composer packages.
|
||||
|
||||
This will automatically run all commands to create the packages
|
||||
|
||||
### composer.egplusww.jp web host
|
||||
|
||||
For the local composer package host.
|
||||
|
||||
update `/storage/var/www/html/composer/www/pacakges.json` file with new version and commit
|
||||
The entry is a copy of the `composer.json` with the following new entries:
|
||||
|
||||
```json
|
||||
{
|
||||
...,
|
||||
"version": "X.Y.Z",
|
||||
...
|
||||
"dist": {
|
||||
"url": "https://git.egplusww.jp/Composer/CoreLibs-Composer-All/archive/vX.Y.Z.zip",
|
||||
"type": "zip"
|
||||
},
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
run `git pull egra-gitea master` on udon-core in `/var/www/html/composer/www`
|
||||
@@ -22,4 +22,4 @@ Alternative setup composer local zip file repot:
|
||||
|
||||
## Install package
|
||||
|
||||
`composer require egrajp/corelibs-composer-all:^7.11`
|
||||
`composer require egrajp/corelibs-composer-all:^8.0`
|
||||
|
||||
@@ -1 +1 @@
|
||||
7.12.2
|
||||
8.0.0
|
||||
|
||||
@@ -11,7 +11,6 @@ fi;
|
||||
# compare version, if different or newer, deploy
|
||||
if [ -f "${file_last_published}" ]; then
|
||||
LAST_PUBLISHED_VERSION=$(cat ${file_last_published});
|
||||
echo "V: ${VERSION} | ${LAST_PUBLISHED_VERSION}";
|
||||
if $(dpkg --compare-versions "${VERSION}" le "${LAST_PUBLISHED_VERSION}"); then
|
||||
echo "git tag version ${VERSION} is not newer than previous published version ${LAST_PUBLISHED_VERSION}";
|
||||
exit;
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* DEPRECATED: Use correct Convert\Json:: instead
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace CoreLibs\Check;
|
||||
|
||||
use CoreLibs\Convert\Json;
|
||||
|
||||
class Jason
|
||||
{
|
||||
/**
|
||||
* @param string|null $json a json string, or null data
|
||||
* @param bool $override if set to true, then on json error
|
||||
* set original value as array
|
||||
* @return array<mixed> returns an array from the json values
|
||||
* @deprecated Use Json::jsonConvertToArray()
|
||||
*/
|
||||
public static function jsonConvertToArray(?string $json, bool $override = false): array
|
||||
{
|
||||
return Json::jsonConvertToArray($json, $override);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bool|boolean $return_string [default=false] if set to true
|
||||
* it will return the message string and not
|
||||
* the error number
|
||||
* @return int|string Either error number (0 for no error)
|
||||
* or error string ('' for no error)
|
||||
* @deprecated Use Json::jsonGetLastError()
|
||||
*/
|
||||
public static function jsonGetLastError(bool $return_string = false): int|string
|
||||
{
|
||||
return Json::jsonGetLastError($return_string);
|
||||
}
|
||||
}
|
||||
|
||||
// __END__
|
||||
Reference in New Issue
Block a user