Skip to content
Closed
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ The port isn't downloaded ready-made. It's built on your PC from your own copy.
and otherwise tells you what to do.
3. Double-click **`Build.bat`**. On Linux or macOS, run **`./Build.sh`** from a terminal instead (see
[docs/linux.md](docs/linux.md) for Linux).
Want a desktop shortcut with the Leonida icon? Run `powershell -ExecutionPolicy Bypass -File scripts\make_shortcut.ps1`.

It finds your copy of the game by itself: it looks in Downloads, Desktop, Documents (also where Windows keeps them,
such as in OneDrive), Games, your home folder and the top of every drive, two folders deep. It recognises the
Expand Down
11 changes: 11 additions & 0 deletions scripts/make_shortcut.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Creates a "Leonida" shortcut (with the project icon) on the Desktop that runs Build.bat.
# Usage: powershell -ExecutionPolicy Bypass -File scripts\make_shortcut.ps1
$root = Split-Path -Parent $PSScriptRoot
$desktop = [Environment]::GetFolderPath('Desktop')
$lnk = (New-Object -ComObject WScript.Shell).CreateShortcut((Join-Path $desktop 'Leonida.lnk'))
$lnk.TargetPath = Join-Path $root 'Build.bat'
$lnk.WorkingDirectory = $root
$lnk.IconLocation = (Join-Path $root 'assets\logo.ico') + ',0'
$lnk.Description = 'Leonida - Game Builder'
$lnk.Save()
Write-Host "Created $($lnk.FullName)"