-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What were you trying to do?
When starting the electron app i had this issue after moving to 2.0.2
start electron app...
App threw an error during load
Error: App version is not a valid semver version: "v2"
at newError (/Users/christophe/XXX/nativephp/electron/node_modules/electron-updater/node_modules/builder-util-runtime/out/error.js:5:19)
at new AppUpdater (/Users/christophe/XXX/nativephp/electron/node_modules/electron-updater/out/AppUpdater.js:191:55)
at new MacUpdater (/Users/christophe/XXX/nativephp/electron/node_modules/electron-updater/out/MacUpdater.js:15:9)
at doLoadAutoUpdater (/Users/christophe/XXX/nativephp/electron/node_modules/electron-updater/out/main.js:48:24)
at Object.get [as autoUpdater] (/Users/christophe/XXX/nativephp/electron/node_modules/electron-updater/out/main.js:83:32)
at file:///Users/christophe/De%CC%81veloppement/XXX/electron/out/main/index.js:316:22
at ModuleJob.run (node:internal/modules/esm/module_job:345:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26)
at async loadApplicationPackage
(file:///Users/christophe/XXX/nativephp/electron/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js:127:9)
at async
file:///Users/christophe/XXX/nativephp/electron/node_modules/electron/dist/Electron.app/Contents/Resources/default_app.asar/main.js:240:9
i've fixed the issue by modifying the nativephp/electron/package.json from
"name": "nativephp",
"version": "v2",
to
"name": "nativephp",
"version": "2.0.0",
What happened?
Error: App version is not a valid semver version: "v2"
How to reproduce the bug
not sure if issue with the upgrade
Debug Output
Array
(
[Environment] => Array
(
[PHP] => Array
(
[Version] => 8.3.27
[Path] => /Users/christophe/Library/Application Support/Herd/bin/php83
)
[Laravel] => Array
(
[Version] => 12.20.0
[ConfigCached] =>
[RoutesCached] => 1
[DebugEnabled] =>
)
[Node] => Array
(
[Version] => v22.19.0
[Path] => /Users/christophe/Library/Application Support/Herd/config/nvm/versions/node/v22.19.0/bin/node
)
[NPM] => Array
(
[Version] => 10.9.3
[Path] => /Users/christophe/Library/Application Support/Herd/config/nvm/versions/node/v22.19.0/bin/npm
)
[OperatingSystem] => Darwin
)
[NativePHP] => Array
(
[Versions] => Illuminate\Support\Collection Object
(
[items:protected] => Array
(
[nativephp/desktop] => 2.0.2.0
[nativephp/php-bin] => 1.1.1.0
)
[escapeWhenCastingToString:protected] =>
)
[Configuration] => Array
(
[Provider] => App\Providers\NativeAppServiceProvider
[BuildHooks] => Array
(
[Pre] => Array
(
[0] => npm run build
)
[Post] => Array
(
)
)
[NotarizationEnabled] =>
[AzureTrustedSigningEnabled] =>
[CustomPHPBinary] =>
)
)
)
Debug Information Generated.
Which operating systems have you seen this occur on?
macOS
Notes
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working