Results 12 comments of kllxs

虽然我不会win32 API,但经过我的的研究已经解决了这个问题! ### 新建文件 `micro_win32.c` ```c #define PHP_MICRO_WIN32_NO_CONSOLE 1 // 设置这个变量是关键 #include "php_micro.c" ``` ### 修改 `config.w32` 注释前面的`SAPI('micro', 'php_micro.c php_micro_fileinfo.c php_micro_helper.c php_micro_hooks.c', 'micro.exe', '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1');` ``` if (PHP_MICRO_WIN32 == "yes") {...

https://github.com/0hr/php-webview

> You can achieve this via optimizers - https://docs.zephir-lang.com/latest/optimizers/ Can this method call the c library?

虽然该库还在测试阶段

我还发现了PHPCPP编译的[GTK库](https://github.com/scorninpc/php-gtk3)

> 看到不一样的 用 PHP 写桌面成的思路 > > 1、用 electron 或者 Tauri 绑定 PHP 静态运行时 https://nativephp.com/docs/1/getting-started/introduction 2、PHPCPP 编写的 [GTK库](https://github.com/scorninpc/php-gtk3) win桌面应用我已经整合方案了 [php-webview](https://gitee.com/kllxs_admin/php-web-view-basic-template)

```v module main import malisipi.vinstall #flag windows -mwindows fn main() { vinstall.run( app_developer: 'KingBes' app_name: 'PHP麻蛋编辑器' license_txt: $embed_file('license.txt') app_zip: $embed_file('PHP麻蛋编辑器.zip') executable_path: 'run.exe' desktop_shortcut: true uninstaller:$embed_file('uninstaller.exe') default_language:'Chinese' )! } ```

https://github.com/malisipi/VInstall/assets/48203677/95f043af-7db8-403e-ac70-72413c4ff8bc