Skip to content

Commit 623b017

Browse files
committed
futher attempts to make the autoloader work
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
1 parent e957e8e commit 623b017

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ You can also check [on GitHub](https://github.com/nextcloud/news/releases), the
1212

1313

1414
# Releases
15+
## [28.0.0-alpha.5]
16+
### Fixed
17+
- Include vendor/autoload.php and vendor/composer/ in release for proper autoloading
18+
- Add getallheaders.php to composer.json autoload files array
19+
1520
## [28.0.0-alpha.3] - 2025-11-01
1621
### Changed
1722
- Include composer.json in release archive (#3384)

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ appstore:
157157
# copy composer.json for autoload configuration
158158
cp "composer.json" "$(appstore_sign_dir)/$(app_name)"
159159

160-
# remove vendor directory (dependencies are scoped in lib/Vendor/)
161-
rm -rf "$(appstore_sign_dir)/$(app_name)/vendor"
160+
# remove vendor dependencies (they are scoped in lib/Vendor/) but keep autoloader
161+
find "$(appstore_sign_dir)/$(app_name)/vendor" -mindepth 1 -maxdepth 1 ! -name 'composer' ! -name 'autoload.php' -exec rm -rf {} +
162162

163163
# clean up unwanted files from scoped dependencies
164164
find "$(appstore_sign_dir)/$(app_name)/lib/Vendor" -name .git -type d -exec rm -rf {} + 2>/dev/null || true

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Create a [feature request](https://github.com/nextcloud/news/discussions/new)
2121
2222
Report a [feed issue](https://github.com/nextcloud/news/discussions/new)
2323
]]></description>
24-
<version>28.0.0-alpha.4</version>
24+
<version>28.0.0-alpha.5</version>
2525
<licence>agpl</licence>
2626
<author>Benjamin Brahmer</author>
2727
<author>Sean Molenaar</author>

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"OCA\\News\\": "lib/"
8080
},
8181
"files": [
82+
"lib/Vendor/getallheaders.php",
8283
"lib/Vendor/HTMLPurifier.composer.php",
8384
"lib/Vendor/HTMLPurifier.autoload.php"
8485
]

0 commit comments

Comments
 (0)