Skip to content

Installation scripts for Windows PowerShell#108

Merged
pedjaradenkovic merged 2 commits intomainfrom
feat/windows-installation-scripts
Feb 23, 2026
Merged

Installation scripts for Windows PowerShell#108
pedjaradenkovic merged 2 commits intomainfrom
feat/windows-installation-scripts

Conversation

@zanjonke
Copy link
Contributor

@zanjonke zanjonke commented Feb 19, 2026

Windows PowerShell installation scirpts

This PR introduces PowerShell executable scripts for installing codeplain cli. I tested this in a docker image with powershell installed on a mac machine. Here is the Dockerfile

FROM ubuntu:24.04
RUN apt-get update && apt-get install -y curl git unzip python3 libicu74 libssl3t64 \
    && curl -L -o /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v7.4.7/powershell-7.4.7-linux-arm64.tar.gz \
    && mkdir -p /opt/microsoft/powershell/7 \
    && tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/7 \
    && chmod +x /opt/microsoft/powershell/7/pwsh \
    && ln -s /opt/microsoft/powershell/7/pwsh /usr/bin/pwsh \
    && rm /tmp/powershell.tar.gz \
    && apt-get clean
CMD ["pwsh"]

And here is how I started it

$ docker build -t codeplain-ps .
$ docker run -it --rm -v "$(pwd)/install:/install" codeplain-ps

This should drop you into a PowerShell environment where I could run the following

PS /> ./install/install.ps1

The installation process is the same as with the install.sh. I added my API key and ran hello world python example.

TODO (for windows compatibility)

- [x] Unit testing, conformance testing and prepare env scripts need to be adapted for windows
The initial dockerfile did not have python installed.

Copy link
Contributor

@pedjaradenkovic pedjaradenkovic left a comment

Choose a reason for hiding this comment

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

Tested in VM, works as expected.

We'll check it this afetrnoon on real Win machine.

@pedjaradenkovic pedjaradenkovic merged commit cc06d60 into main Feb 23, 2026
10 checks passed
@pedjaradenkovic pedjaradenkovic deleted the feat/windows-installation-scripts branch February 23, 2026 10:03
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.

2 participants