Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1.33 KB

README.md

File metadata and controls

19 lines (12 loc) · 1.33 KB

az-vm-laz-build

This project contains PowerShell scripts that use the Azure CLI to create, run, and delete an Azure Windows VM to build a Lazarus project.

This project does not use Lazarus, or Free Pascal. It supports building a Windows executable for a separate project that does.


The source project being built is developed using the Lazarus IDE running on Linux. A Linux executable is created in that environment. This set of scripts affords building a Windows executable, on a Windows 11 VM, using the Windows version of Lazarus, in a (mostly) automated way.

The scripts are organized in steps that can be run individually.

The az-run-all.ps1 script executes all steps from provisioning through deleting the resource group. If all goes well, a Windows version of the Lazarus project is built from source and the resulting executable is downloaded and available locally.

The az-run-most.ps1 script runs every step except cleanup. This can be used to do additional work on the VM, such as testing or debugging, via Remote Desktop.