Skip to content

Commit

Permalink
Merge pull request #207 from chewing/prepare-24.10-rc.1
Browse files Browse the repository at this point in the history
Prepare 24.10-rc.1
  • Loading branch information
kanru authored Nov 9, 2024
2 parents c533db4 + b7f0203 commit 65a2f29
Show file tree
Hide file tree
Showing 10 changed files with 200 additions and 17 deletions.
92 changes: 92 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Changelog

All notable changes to this project will be documented in this file.

## [unreleased]

### 🚀 Features

- Build MSI installer with WiX
- Register COM Server and TSF from MSI
- Uninstall NSIS installation from MSI
- Register dll as icon (not working)
- *(msi)* Correctly quote icon path
- *(msi)* Use ITfInputProcessorProfileMgr to register our TS
- *(msi)* Allow upgrade and downgrades
- *(msi)* [**breaking**] Remove nsis installer
- *(prefs)* Enable new keyboard layouts
- Use chewing_ack
- Support config conv engine
- Use 9-patch bitmap to draw candidate window
- Show chi/eng mode toast after manual toggle

### 🐛 Bug Fixes

- Rednering on hidpi device
- Reset composition buffer after toggle chi/eng mode
- Shift key handling
- Only use GetSysColor color index

### 🚜 Refactor

- *(msi)* Use high compression level
- *(libime)* Decouple Window and Dialog
- *(pref)* Decouple with libIME
- Delete unused chewingwrapper
- Draw candidate window with Direct2D
- Draw message window with Direct2D
- Validate client region after drawing
- Remove special immersive mode CandidateWindow
- Use winrt::com_ptr and VersionHelper
- Reimplement MessageWindow in rust
- Hide unused CandidateWindow public methods
- Implement CandidateWindow in rust
- Draw message window background using bitmap
- Cleanup font handling
- Add missing asset
- Simplify candidate window size calculation
- Remove unused DLL registration code (moved to tsfreg)

### 📚 Documentation

- Refresh and add code signing policy info

### ⚙️ Miscellaneous Tasks

- Update dependencies
- Add github actions ci.yaml
- Fix build with Ninja
- Add nightly build workflow
- Introduce dependabot version updates
- Specify LANGUAGES in build script
- Use CMake variable to set MSVC runtime library
- Use CMake variable for enabling LTCG
- Drop redundant macro define
- Drop compiler flag override files
- Reorder override flag
- Remove redundant compile defines
- Specify source code encoding as UTF-8
- Set LANGUAGES property properly
- Add msbuild to path
- Remove libIME as submodule
- Merge libIME back as subdirectory
- Bump libchewing to 0.9.0-rc.3
- Remove cmake minimum version for libIME
- *(libime)* Remove UNICODE defines
- *(libime)* Move files only used by preferences
- Bump libchewing to 0.9.0
- Update signpath action to 1.0
- Simplify cmake files
- Use c++17
- Merge rustlib and libime2
- Fix release workflow
- Bump version to 24.10.258.0
- Bump libchewing to v0.9.0
- Use vcpkg for dependencies
- Update dependencies
- Fix tsfreg artifact location
- Update gitignore
- Remove unused ImeEngine files
- Add git-cliff config file

<!-- generated by git-cliff -->
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ add_subdirectory(libchewing)
add_subdirectory(libIME)
add_subdirectory(ChewingTextService)
add_subdirectory(ChewingPreferences)

set(CPACK_PACKAGE_CHECKSUM SHA256)
set(CPACK_PACKAGE_VERSION 24.10-rc.1)
set(CPACK_SOURCE_IGNORE_FILES "/build" "/target" "/dist" "/\\\\..*")
set(CPACK_SOURCE_GENERATOR ZIP)
include(CPack)
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ChewingPreferences/ChewingPreferences.exe.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
name="Chewing.Windows-chewing-tsf.ChewingPreferences"
version="1.0.0.0"
version="24.10.314.0"
processorArchitecture="*"
type="win32"
/>
Expand Down
Binary file modified ChewingPreferences/ChewingPreferences.rc
Binary file not shown.
Binary file modified ChewingTextService/ChewingTextService.rc
Binary file not shown.
85 changes: 85 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# git-cliff ~ default configuration file
# https://git-cliff.org/docs/configuration
#
# Lines starting with "#" are comments.
# Configuration options are organized into tables and keys.
# See documentation for more information on available options.

[changelog]
# template for the changelog header
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
body = """
{% if version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }}\
{% endfor %}
{% endfor %}\n
"""
# template for the changelog footer
footer = """
<!-- generated by git-cliff -->
"""
# remove the leading and trailing s
trim = true
# postprocessors
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/chewing/windows-chewing-tsf" }, # replace repository URL
]
# render body even when there are no releases to process
# render_always = true
# output file path
# output = "test.md"

[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = true
# process each line of a commit as an individual commit
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
# Replace issue numbers
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))" },
# Check spelling of the commit with https://github.com/crate-ci/typos
# If the spelling is incorrect, it will be automatically fixed.
#{ pattern = '.*', replace_command = 'typos --write-changes -' },
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->📚 Documentation" },
{ message = "^perf", group = "<!-- 4 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 2 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 5 -->🎨 Styling" },
{ message = "^test", group = "<!-- 6 -->🧪 Testing" },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore|^ci|^build", group = "<!-- 7 -->⚙️ Miscellaneous Tasks" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
{ message = "^revert", group = "<!-- 9 -->◀️ Revert" },
]
# filter out the commits that are not matched by commit parsers
filter_commits = false
# sort the tags topologically
topo_order = false
# sort the commits inside sections by oldest/newest order
sort_commits = "oldest"
tag_pattern = "v[0-9].*"
ignore_tags = "v2024.10.0-alpha.1"
2 changes: 1 addition & 1 deletion installer/windows-chewing-tsf.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Codepage="65001"
Language="1028"
Manufacturer="新酷音輸入法開發團隊"
Version="24.10.258.0"
Version="24.10.314.0"
UpgradeStrategy="majorUpgrade"
UpgradeCode="8085e4ce-205d-4c44-9450-59ba34163b2a">
<MajorUpgrade AllowDowngrades="yes" />
Expand Down
2 changes: 1 addition & 1 deletion libIME/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libime2"
version = "0.1.0"
version = "24.10.314"
edition = "2021"

[lib]
Expand Down
24 changes: 12 additions & 12 deletions tsfreg/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "tsfreg"
version = "0.1.0"
edition = "2021"

[dependencies]
windows = { version = "0.58.0", features = [
"Win32_Globalization",
"Win32_System_Com",
"Win32_UI_TextServices",
"Win32_UI_Input_KeyboardAndMouse",
] }
[package]
name = "tsfreg"
version = "24.10.314"
edition = "2021"

[dependencies]
windows = { version = "0.58.0", features = [
"Win32_Globalization",
"Win32_System_Com",
"Win32_UI_TextServices",
"Win32_UI_Input_KeyboardAndMouse",
] }

0 comments on commit 65a2f29

Please sign in to comment.