ema

Results 95 comments of ema

建议增加一个摧毁所有圣遗物的功能www

I wrote a packaging demo to convert `.msix` into an EXE installation program using NSIS. @MouriNaruto > Refer to [https://github.com/emako/msix-nsis](https://github.com/emako/msix-nsis)

I encounter the same exception when I want to call `AppCenter.Start(...)` in Program.cs and before create `App.xaml` class. This exception occurred in AppCenter 5.0.X, and I did not encounter this...

Full sample code here: [DarkModeForWindow.zip](https://github.com/emqx/MQTTX/files/13785688/DarkModeForWindow.zip) You can try it using `DarkModeForWindow\bin\Release\net472\DarkModeForWindow.exe`. Launch MQTTX and then launch DarkModeForWindow.exe.

This requires me to take some time to try electron. Meet something error on `yarn install`: ```bash D:\Github\MQTTX>yarn install yarn install v1.22.19 [1/6] Validating package.json... [2/6] Resolving packages... warning Resolution...

```bash D:\Github\MQTTX>cd node_modules\electron D:\Github\MQTTX\node_modules\electron>node install.js RequestError: unable to verify the first certificate at ClientRequest. (D:\Github\MQTTX\node_modules\got\source\request-as-event-emitter.js:178:14) at Object.onceWrapper (node:events:629:26) at ClientRequest.emit (node:events:526:35) at origin.emit (D:\Github\MQTTX\node_modules\@szmarczak\http-timer\source\index.js:37:11) at TLSSocket.socketErrorListener (node:_http_client:495:9) at TLSSocket.emit (node:events:514:28)...

```bash D:\Github\MQTTX>node -v v20.10.0 ``` `npm config set strict-ssl false` not work for node `v20.10.0`. Have a try with `v16` ...

https://github.com/electron/electron/issues/26910

1. set ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/ in environment variables 2. execute: yarn install 3. npm install sqlite3 --registry=https://registry.npm.taobao.org/ --node_sqlite3_binary_host_mirror=http://npm.taobao.org/mirrors

I'm not familiar with how to call the Win32 API in an electron environment. Some demo code record following... in package.json ```json "ffi-napi": "4.0.3", "ref-napi": "3.0.3" ``` in background.ts ```ts...