mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
nexus update version number no need v
This commit is contained in:
@@ -70,7 +70,10 @@ class NexusUpdate extends Command
|
|||||||
if ($tag === 'dev') {
|
if ($tag === 'dev') {
|
||||||
$url = "https://github.com/xiaomlove/nexusphp/archive/refs/heads/php8.zip";
|
$url = "https://github.com/xiaomlove/nexusphp/archive/refs/heads/php8.zip";
|
||||||
} else {
|
} else {
|
||||||
$url = "https://api.github.com/repos/xiaomlove/nexusphp/tarball/v$tag";
|
if (!str_starts_with($tag, 'v')) {
|
||||||
|
$tag = "v$tag";
|
||||||
|
}
|
||||||
|
$url = "https://api.github.com/repos/xiaomlove/nexusphp/tarball/$tag";
|
||||||
}
|
}
|
||||||
$this->doLog("Specific tag: '$tag', download from '$url' and extra code, includes: " . implode(', ', $includes));
|
$this->doLog("Specific tag: '$tag', download from '$url' and extra code, includes: " . implode(', ', $includes));
|
||||||
$tmpPath = $this->update->downAndExtractCode($url, $includes);
|
$tmpPath = $this->update->downAndExtractCode($url, $includes);
|
||||||
|
|||||||
Reference in New Issue
Block a user