23c933bfa2
Backend: - last_user.go: writes/reads <UserConfigDir>/matrix_client_pc/last_user.txt. Login persists; Logout clears. - GetLastUserID bind replaces fragile localStorage in App.tsx. - GetDiagnostics bind: live snapshot (started, client_ready, crypto_init, sync_active, rooms_count, encrypted_rooms, dms_count, last_error). - applog.go: slog to stderr + <UserConfigDir>/matrix_client_pc/app.log. GetLogTail + GetLogPath binds. - matrix_service.go logs throughout Login/Start. After MatrixClientInit, if client.DeviceID empty -> retry whoami + persist back (defensive). - main.go inits logger before wails.Run, OnShutdown logs close. Frontend: - App.tsx awaits GetLastUserID() instead of localStorage. - HomeScreen.tsx Health modal (green stethoscope button) with HealthRow status dots — comprobar chats. - Auto-relogin on token-rejected error in Start(). Icon: - appicon.ico (Phosphor chat-circle + #7c3aed) generated via generate_app_icon. - build/windows/icon.ico replaced (Wails embeds via windres). - build/appicon.png regenerated from ico (256x256). Refs: issues 0147 + 0148 + 0150 (partial). Fixes M_UNKNOWN_TOKEN auto-recovery.
Build Directory
The build directory is used to house all the build files and assets for your application.
The structure is:
- bin - Output directory
- darwin - macOS specific files
- windows - Windows specific files
Mac
The darwin directory holds files specific to Mac builds.
These may be customised and used as part of the build. To return these files to the default state, simply delete them
and
build with wails build.
The directory contains the following files:
Info.plist- the main plist file used for Mac builds. It is used when building usingwails build.Info.dev.plist- same as the main plist file but used when building usingwails dev.
Windows
The windows directory contains the manifest and rc files used when building with wails build.
These may be customised for your application. To return these files to the default state, simply delete them and
build with wails build.
icon.ico- The icon used for the application. This is used when building usingwails build. If you wish to use a different icon, simply replace this file with your own. If it is missing, a newicon.icofile will be created using theappicon.pngfile in the build directory.installer/*- The files used to create the Windows installer. These are used when building usingwails build.info.json- Application details used for Windows builds. The data here will be used by the Windows installer, as well as the application itself (right click the exe -> properties -> details)wails.exe.manifest- The main application manifest file.