Skip to content

Add open.py to open file after resolving symlink#1284

Merged
hiroyuki-komatsu merged 1 commit into
google:masterfrom
yukawa:issue_1283
May 19, 2025
Merged

Add open.py to open file after resolving symlink#1284
hiroyuki-komatsu merged 1 commit into
google:masterfrom
yukawa:issue_1283

Conversation

@yukawa
Copy link
Copy Markdown
Collaborator

@yukawa yukawa commented May 11, 2025

Description

When Mozc64.msi is built with Bazel, it is placed under a symlinked directory, which msiexec.exe does not recognize. To avoid this pitfall this commit introduces a helper script open.py to open the file after resolving symlink so that the real path can be passed to 'msiexec.exe'.

  python build_tools/open.py bazel-bin/win32/installer/Mozc64.msi

With above the build instructions can be simplified as the readers can just copy and paste the commands to build the installer then install it.

Closes #1283.

Issue IDs

Steps to test new behaviors (if any)

  • OS: Windows 11 24H2
  • Steps:
    1. bazelisk build --config oss_windows --config release_build package
    2. python build_tools/open.py bazel-bin/win32/installer/Mozc64.msi

Comment thread docs/build_mozc_in_windows.md
Comment thread docs/build_mozc_in_windows.md Outdated
Comment thread src/build_tools/open.py Outdated
Comment thread src/build_tools/open.py Outdated
When 'Mozc64.msi' is built with Bazel, it is placed under a symlinked
directory, which 'msiexec.exe' does not recognize. To avoid this pitfall
this commit introduces a helper script `open.py` to open the file after
resolving symlink so that the real path can be passed to 'msiexec.exe'.

  python build_tools/open.py bazel-bin/win32/installer/Mozc64.msi

With above the build instructions can be simplified as the readers can
just copy and paste the commands to build the installer then install it.

Closes google#1283.
@yukawa
Copy link
Copy Markdown
Collaborator Author

yukawa commented May 12, 2025

Squashed then rebased.

@hiroyuki-komatsu hiroyuki-komatsu merged commit 13025e7 into google:master May 19, 2025
1 check passed
@hiroyuki-komatsu
Copy link
Copy Markdown
Collaborator

We have merged your PR.
Thank you for the contributions!

@yukawa yukawa deleted the issue_1283 branch May 19, 2025 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider adding a helper script to install Mozc64.msi from terminal for Windows

2 participants