Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ và dự án tuân theo [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Added / Feature
- **Motivation Quote UI**: Triển khai hiển thị câu chữ truyền động lực (Motivation Quote) bên dưới đồng hồ đếm ngược. UI tự động gọi AI lấy câu quote (theo database hoặc fallback) dựa trên các cột mốc chiến lược: `PreFocus` (bắt đầu ngẫu nhiên), `MidFocus` (qua 50% thời gian), và `PostFocus` (gần hoàn thành, vượt 90%). Khi khôi phục phiên sẽ hiển thị quote giữ lửa cố định.

### Fixed & Changed
- **MSI Installer (Wix v4)**: Khắc phục và cấu hình bổ sung nhúng file `app.ico` vào bộ cài Windows Installer. Trừ việc hiển thị logo trong app, các lối tắt (shortcuts) do thư mục bộ cài tạo ra ngoài màn hình Desktop, trong Start Menu và trong mục Add/Remove Programs (Control Panel) giờ đây sẽ tự động hiển thị logo đầy đủ của ứng dụng.

---

## [1.0.3] - 2026-04-17
Expand Down
19 changes: 15 additions & 4 deletions installer/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@
<!-- Built-in UI with license step -->
<ui:WixUI Id="WixUI_InstallDir" InstallDirectory="INSTALLFOLDER"/>

<Icon Id="AppIcon.ico" SourceFile="$(PublishDir)app.ico" />
<Property Id="ARPPRODUCTICON" Value="AppIcon.ico" />

<!-- Features -->
<Feature Id="Main" Title="Don't Be Lazy" Level="1">
<ComponentGroupRef Id="AppFiles"/>
<ComponentRef Id="AppShortcutDesktop"/>
<ComponentRef Id="AppShortcutStartMenu"/>
<ComponentRef Id="AppIconComp"/>
</Feature>

</Package>
Expand Down Expand Up @@ -65,8 +69,13 @@
KeyPath="yes"/>
</Component>

<!-- App icon (used by shortcuts) -->
<!-- If you add an .ico later, reference it here -->
<!-- App icon (auto-published alongside exe) -->
<Component Id="AppIconComp" Guid="D4E5F6A7-B890-1234-CDEF-1234567890AB">
<File Id="AppIconFile"
Source="$(PublishDir)app.ico"
Name="app.ico"
KeyPath="yes"/>
</Component>

</ComponentGroup>
</Fragment>
Expand All @@ -80,7 +89,8 @@
Name="Don't Be Lazy"
Description="Stay focused. Don't be lazy."
Target="[INSTALLFOLDER]DontBeLazy.exe"
WorkingDirectory="INSTALLFOLDER"/>
WorkingDirectory="INSTALLFOLDER"
Icon="AppIcon.ico"/>
<RemoveFolder Id="RemoveDesktopShortcut" Directory="DesktopFolder" On="uninstall"/>
<RegistryValue Root="HKCU"
Key="Software\ThanhTrunggDEV\DontBeLazy"
Expand All @@ -98,7 +108,8 @@
Name="Don't Be Lazy"
Description="Stay focused. Don't be lazy."
Target="[INSTALLFOLDER]DontBeLazy.exe"
WorkingDirectory="INSTALLFOLDER"/>
WorkingDirectory="INSTALLFOLDER"
Icon="AppIcon.ico"/>
<RemoveFolder Id="RemoveStartMenu" Directory="ProgramMenuSubFolder" On="uninstall"/>
<RegistryValue Root="HKCU"
Key="Software\ThanhTrunggDEV\DontBeLazy"
Expand Down
Loading