Skip to content

Commit 30fa6e5

Browse files
Vitexusclaude
andcommitted
fix: only composer type=project packages define APP_NAME/APP_VERSION
Libraries (type=library) only populate InstalledVersions with their name and version; APP_NAME/APP_VERSION constants are reserved for application packages (type=project). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent de4cff5 commit 30fa6e5

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

debian/rules

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@ override_dh_install:
1818
mkdir -p debian/tmp
1919
jq '.version = "'`dpkg-parsechangelog | sed -n 's/^Version: //p'| sed 's/~.*//'`'"' debian/composer.json |sponge debian/tmp/composer.json
2020
dh_install
21-
sed -i "1a defined('APP_NAME') || define('APP_NAME', '$(PKG_SOURCE)');" \
22-
debian/php-vitexsoftware-ease-html-widgets/usr/share/php/EaseHtmlWidgets/autoload.php
2321
sed -i "s|: 'unknown'|: '$(PKG_SOURCE)'|" \
2422
debian/php-vitexsoftware-ease-html-widgets/usr/share/php/EaseHtmlWidgets/autoload.php
2523
sed -i "s|: '0.0.0'|: '$(PKG_VERSION)'|" \
2624
debian/php-vitexsoftware-ease-html-widgets/usr/share/php/EaseHtmlWidgets/autoload.php
27-
sed -i "2a defined('APP_VERSION') || define('APP_VERSION', '$(PKG_VERSION)');" \
28-
debian/php-vitexsoftware-ease-html-widgets/usr/share/php/EaseHtmlWidgets/autoload.php

0 commit comments

Comments
 (0)