Skip to content

Make clean and package target for nrf52 platform also run on Windows - #106

Open
bobby-mcbuilder wants to merge 1 commit into
attermann:masterfrom
bobby-mcbuilder:master
Open

Make clean and package target for nrf52 platform also run on Windows#106
bobby-mcbuilder wants to merge 1 commit into
attermann:masterfrom
bobby-mcbuilder:master

Conversation

@bobby-mcbuilder

@bobby-mcbuilder bobby-mcbuilder commented Aug 10, 2026

Copy link
Copy Markdown

Problem to Solve
Wanted to upload latest changes, in my case the "Airtime Limit" feature, to wiscore_rak4631 environmenent on Win11.
Realized that extra_script.py heavily relies on Posix shell-commands, but PlatformIO, SCons and Python don't.

Proposed Solution
In a first step make clean and package target for nrf52 also run on Windows. This is already useful to upload the resulting zip-file with the Web-Installer. The upload target is for another pull-request.

  • replacing shell commands with SCons file actions where possible
  • using PlatformIOs $PYTHONEXE for Python scripts
  • pathlib for filesystem path handling (backslash, forward-slash...)

Other Solutions
Python's subprocess module with output-redirection to run release_hashes.py (proposed solution still relies on shell)

Testing
Environments:

  • wiscore_rak4631
  • heltec_wifi_lora_32_V4

Host Platforms:

  • Win11 25H2
  • WSL2/Ubuntu 26.04

User-facing changes
A few build log-lines changed slightly (lines about rm, mkdir, cp...)

Additional Dependencies
pathlib (Python built-in)

Edit: removed comments about zip-file handling as it is not involved in this pull-request

* replacing shell commands with SCons file actions
* using PlatformIOs $PYTHONEXE for Python scripts
* pathlib for filesystem path handling
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.

1 participant