Description
What were you trying to do?
define my local management project with .env:
NATIVEPHP_APP_VERSION="1.0.0"
NATIVEPHP_APP_ID="com.netziweb.history"
NATIVEPHP_DEEPLINK_SCHEME="nativephp"
NATIVEPHP_APP_AUTHOR="NetziWeb"
NATIVEPHP_UPDATER_ENABLED=false
NATIVEPHP_UPDATER_PROVIDER=
NATIVEPHP_UPDATER_URL=
but to execute it php artisan native:publish generates this in file vendor/nativephp/electron/src/Updater/UpdaterManager.php:71 : NativePHP updater provider [] is not defined.
$config = $this->getConfig($name);
if (is_null($config)) {
throw new InvalidArgumentException("NativePHP updater provider [{$name}] is not defined."); //error generate
}
$driverMethod = 'create'.ucfirst($config['driver']).'Driver';
What happened?
You will also eliminate NATIVEPHP_UPDATER_PROVIDER and NATIVEPHP_UPDATER_URL from .env but continue with the same problem.
Also envied in NATIVEPHP_UPDATER_PROVIDER as empty or null but generates the same problem.
NativePHP updater provider [{$name}] is not defined.
How to reproduce the bug
I am using php 8.3.6, Ubuntu 24.04.2 LTS, y laravel 12.0, "nativephp/electron": "^1.0@beta" , sqlite 3, npm 10.8.2, node v20.18.3
Package Versions
jhoan@jhoan:~/code/clinicHistory.com$ composer show "nativephp/*" --format=json
{
"installed": [
{
"name": "nativephp/electron",
"direct-dependency": true,
"homepage": "https://github.com/nativephp/electron",
"source": "https://github.com/NativePHP/electron/tree/1.0.0-beta.4",
"version": "1.0.0-beta.4",
"description": "Electron wrapper for the NativePHP framework.",
"abandoned": false
},
{
"name": "nativephp/laravel",
"direct-dependency": false,
"homepage": "https://github.com/nativephp/laravel",
"source": "https://github.com/NativePHP/laravel/tree/1.0.0-beta.2",
"version": "dev-main 0102a92",
"description": "Laravel wrapper for the NativePHP framework.",
"abandoned": false
},
{
"name": "nativephp/php-bin",
"direct-dependency": false,
"homepage": "https://nativephp.com",
"source": "https://github.com/NativePHP/php-bin/tree/0.5.6",
"version": "0.5.6",
"description": "PHP binaries used by the NativePHP framework",
"abandoned": false
}
]
}
PHP Version
8.3.6
Laravel Version
12.0
Node Version
v20.18.3
Which operating systems have you seen this occur on?
Ubuntu
OS version
24.04.2
Notes
No response