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:
parent
74f3453db1
commit
432d09b09c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user