mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 20:38:52 +00:00
[ticket/17173] Add signature to packages.json
PHPBB3-17173
This commit is contained in:
parent
74f3453db1
commit
432d09b09c
2 changed files with 8 additions and 0 deletions
|
@ -207,6 +207,8 @@
|
||||||
<phingcall target="sign-packages">
|
<phingcall target="sign-packages">
|
||||||
<property name="dir" value="build/new_version/release_files" />
|
<property name="dir" value="build/new_version/release_files" />
|
||||||
</phingcall>
|
</phingcall>
|
||||||
|
|
||||||
|
<exec dir="build" command="php generate_package_json.php > new_version/packages.json"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="checksum-dir">
|
<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->filesize = filesize($file_path);
|
||||||
$filedata->checksum = trim(preg_replace('/(^\w+)(.+)/', '$1', file_get_contents($file_path . '.sha256')));
|
$filedata->checksum = trim(preg_replace('/(^\w+)(.+)/', '$1', file_get_contents($file_path . '.sha256')));
|
||||||
$filedata->filetype = $extension;
|
$filedata->filetype = $extension;
|
||||||
|
|
||||||
|
if (file_exists($file_path . '.sig'))
|
||||||
|
{
|
||||||
|
$filedata->signature = trim(file_get_contents($file_path . '.sig'));
|
||||||
|
}
|
||||||
|
|
||||||
$package_file->files[] = $filedata;
|
$package_file->files[] = $filedata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue