1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-02 05:37:56 +02:00

[ticket/17173] Add signature to packages.json

PHPBB3-17173
This commit is contained in:
Marc Alexander 2023-08-13 13:20:15 +02:00
parent 74f3453db1
commit 432d09b09c
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
2 changed files with 8 additions and 0 deletions

@ -207,6 +207,8 @@
<phingcall target="sign-packages">
<property name="dir" value="build/new_version/release_files" />
</phingcall>
<exec dir="build" command="php generate_package_json.php > new_version/packages.json"/>
</target>
<target name="checksum-dir">

@ -120,6 +120,12 @@ function phpbb_add_package_file(array &$package_list, $name, $file_name, $type,
$filedata->filesize = filesize($file_path);
$filedata->checksum = trim(preg_replace('/(^\w+)(.+)/', '$1', file_get_contents($file_path . '.sha256')));
$filedata->filetype = $extension;
if (file_exists($file_path . '.sig'))
{
$filedata->signature = trim(file_get_contents($file_path . '.sig'));
}
$package_file->files[] = $filedata;
}