Skip to content

Add Windows compatibility with native batch and PowerShell scripts#5

Merged
NW-Lab merged 2 commits intomainfrom
copilot/fix-4
Sep 13, 2025
Merged

Add Windows compatibility with native batch and PowerShell scripts#5
NW-Lab merged 2 commits intomainfrom
copilot/fix-4

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Sep 13, 2025

This PR addresses the Windows compatibility concern raised in the issue. The repository previously only provided a bash script (build_test.sh) for build automation, which doesn't work natively on Windows systems.

Changes Made

New Windows Scripts

  • build_test.bat - Native Windows Command Prompt script with identical functionality to the bash version
  • build_test.ps1 - PowerShell script with enhanced colored output and better error handling

Both scripts provide the same build testing, hardware setup instructions, and pairing guidance as the original bash script.

Enhanced Documentation

  • docs/WINDOWS_SETUP.md - Comprehensive Windows setup guide covering:
    • Installation of required software (Git, Python, VS Code)
    • PlatformIO setup via VS Code extension or command line
    • Windows-specific troubleshooting (COM ports, USB drivers, PowerShell execution policies)
    • Alternative Arduino IDE setup instructions

Updated Existing Documentation

  • README.md - Added Windows-specific build instructions and troubleshooting sections
  • arduino_ide_version/README_Arduino.md - Enhanced with Windows library paths and setup notes

Usage Examples

Windows Command Prompt:

build_test.bat

PowerShell:

.\build_test.ps1

Cross-platform PlatformIO:

pio run --target upload

The solution maintains backward compatibility while providing native Windows support. All three script variants (.sh, .bat, .ps1) produce identical output and functionality.

Fixes #4.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: NW-Lab <8869009+NW-Lab@users.noreply.github.com>
Copilot AI changed the title [WIP] Windowsのビルド Add Windows compatibility with native batch and PowerShell scripts Sep 13, 2025
Copilot AI requested a review from NW-Lab September 13, 2025 14:32
@NW-Lab NW-Lab marked this pull request as ready for review September 13, 2025 14:54
Copilot AI review requested due to automatic review settings September 13, 2025 14:54
@NW-Lab NW-Lab merged commit 9d2ac52 into main Sep 13, 2025
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds native Windows compatibility to the VS Code KeyPad project by providing Windows-specific build scripts and comprehensive documentation. The PR addresses the Windows compatibility issue by creating batch and PowerShell alternatives to the existing bash script.

  • Added native Windows batch script (build_test.bat) and PowerShell script (build_test.ps1) with identical functionality to the bash version
  • Created comprehensive Windows setup guide with installation instructions, troubleshooting, and Windows-specific considerations
  • Updated existing documentation with Windows-specific instructions and cross-platform compatibility notes

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/WINDOWS_SETUP.md New comprehensive Windows setup guide covering installation, troubleshooting, and platform-specific considerations
build_test.ps1 New PowerShell script with enhanced colored output and error handling for Windows users
build_test.bat New Windows Command Prompt batch script providing identical functionality to the bash version
arduino_ide_version/README_Arduino.md Enhanced with Windows-specific library paths and setup notes
README.md Updated with Windows-specific build instructions and troubleshooting sections

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

Windowsのビルド

3 participants