Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/pr-windows-packaging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Windows Installer Packaging


on:
push:
paths:
- 'setup-lando.ps1'
pull_request:
paths:
- 'setup-lando.ps1'

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install PS2EXE
shell: powershell
run: Install-Module -Name ps2exe -Force -Scope CurrentUser

- name: Convert PowerShell script to EXE
shell: powershell
run: |
$scriptPath = "${{ github.workspace }}/setup-lando.ps1"
$outputPath = "${{ github.workspace }}/setup-lando.exe"
Invoke-ps2exe -inputFile $scriptPath -outputFile $outputPath -supportOS

- name: Upload EXE as artifact
uses: actions/upload-artifact@v4
id: artifact-upload-step
with:
name: setup-lando-exe
path: ${{ github.workspace }}/setup-lando.exe

- name: Output artifact URL
run: echo 'Artifact URL is ${{ steps.artifact-upload-step.outputs.artifact-url }}'
2 changes: 1 addition & 1 deletion setup-lando.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ param(
)

$LANDO_DEFAULT_MV = "3"
$LANDO_SETUP_PS1_URL = "https://get.lando.dev/setup-lando.ps1"
$LANDO_SETUP_PS1_URL = "https://raw.githubusercontent.com/lando/setup-lando/setup-windoze/setup-lando.ps1"
$LANDO_SETUP_SH_URL = "https://get.lando.dev/setup-lando.sh"
$LANDO_APPDATA = "$env:LOCALAPPDATA\Lando"

Expand Down