Skip to content

fix(build): pass updater flag to electron-builder - #171

Open
zamuwelle wants to merge 1 commit into
NativePHP:mainfrom
zamuwelle:fix/publish-updater-env
Open

zamuwelle wants to merge 1 commit into
NativePHP:mainfrom
zamuwelle:fix/publish-updater-env

Conversation

@zamuwelle

Copy link
Copy Markdown
Contributor

Fixes #102

native:publish did not upload artifacts when NATIVEPHP_UPDATER_ENABLED=true was only set in .env. The value reached the PHP config but was never passed to the Node process, so electron-builder.mjs always saw the updater as disabled and skipped the publish config. Running NATIVEPHP_UPDATER_ENABLED=true php artisan native:publish worked because the variable was inherited from the shell.

This passes the resolved config value through to electron-builder.

Tests

  • vendor/bin/pest tests/Build/BuildCommandEnvironmentVariablesTest.php: 5 passed
  • vendor/bin/pint --test: passed

.env value stayed in PHP config; electron-builder saw updater as
disabled and skipped upload.

Fixes NativePHP#102
@zamuwelle
zamuwelle force-pushed the fix/publish-updater-env branch from 1cbc62b to b16e9c6 Compare October 29, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

native:publish won't upload artefacts on the select provider

1 participant