Skip to content

Commit 86921b3

Browse files
committed
feat: add some metadata on the Phar file
1 parent 88fcac1 commit 86921b3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/phar-generator-script.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,15 @@ public static function getExcludedFolders(): array
226226
$phar->setStub($shebang . PHP_EOL . $stub);
227227
$phar->setSignatureAlgorithm(Phar::SHA256);
228228
$phar->buildFromIterator($pharFilesList, $srcRoot);
229+
$phar->setMetadata([
230+
'vcs.git' => 'https://github.com/code-lts/doctum.git',
231+
'vcs.browser' => 'https://github.com/code-lts/doctum',
232+
'version' => $version,
233+
'build-date' => $date,
234+
'license' => 'MIT',
235+
'vendor' => 'Doctum',
236+
'name' => 'Doctum',
237+
]);
229238

230239
$files = array_map(
231240
function (string $fileRelativePath) {

0 commit comments

Comments
 (0)