mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +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') {
|
||||
$url = "https://github.com/xiaomlove/nexusphp/archive/refs/heads/php8.zip";
|
||||
} 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));
|
||||
$tmpPath = $this->update->downAndExtractCode($url, $includes);
|
||||
|
||||
Reference in New Issue
Block a user