Skip to content

Error on bootstrap built app for Windows x64 #621

Open
@chrisbaltazar

Description

@chrisbaltazar

What were you trying to do?

Hello. I tried to build an early version of my application to test it on a Windows machine, using the command:

php artisan native:build" 

and selecting Win -> x64
After finishing the process (without issues apart from the missing signature files, not needed now) the "dist" folder is created with the installer files as expected.

What happened?

However when installing the app on the target machine, and trying to launch it I get only the "main" window frame with the default menus (File edit, View... not mine) and a blank screen in the body.
Then when checking the logs under the User APPDATA path, from the "storage/logs/laravel" file, I can see there are many errors that I can't explain myself, possibly related to a wrong directory management or issues connecting the database (SQLITE) (log attached)

laravel.log

How to reproduce the bug

Create a simple nativephp app using the same dependencies as I do, from composer:

 "require": {
        "php": "^8.3",
        "guzzlehttp/guzzle": "^7.2",
        "inertiajs/inertia-laravel": "^0.6.8",
        "laravel/breeze": "^1.29",
        "laravel/framework": "^10.10",
        "laravel/sanctum": "^3.2",
        "laravel/tinker": "^2.8",
        "nativephp/electron": "^1.0",
        "tightenco/ziggy": "^2.0"
    },

and using a SQLITE db engine, build it for Windows and try to run it there.

You can also checkout my own public repository to make a quick test and spot any issues if you like :)

https://github.com/chrisbaltazar/cityshoesdesktop

Debug Output

{
    "Environment": {
        "PHP": {
            "Version": "8.3.22",
            "Path": "/usr/local/Cellar/[email protected]/8.3.22/bin/php"
        },
        "Laravel": {
            "Version": "10.48.28",
            "ConfigCached": false,
            "RoutesCached": false,
            "DebugEnabled": true
        },
        "Node": {
            "Version": "v22.16.0",
            "Path": "/Users/cbaltazar/.nvm/versions/node/v22.16.0/bin/node"
        },
        "NPM": {
            "Version": "10.9.2",
            "Path": "/Users/cbaltazar/.nvm/versions/node/v22.16.0/bin/npm"
        },
        "OperatingSystem": "Darwin"
    },
    "NativePHP": {
        "Versions": {
            "nativephp/electron": "1.1.0.0",
            "nativephp/laravel": "1.1.0.0",
            "nativephp/php-bin": "1.0.2.0"
        },
        "Configuration": {
            "Provider": "App\Providers\NativeAppServiceProvider",
            "BuildHooks": {
                "Pre": [],
                "Post": []
            },
            "NotarizationEnabled": false,
            "CustomPHPBinary": false
        }
    }
}

Which operating systems have you seen this occur on?

Windows

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions