mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-22 00:54:26 +08:00
1.9 KiB
1.9 KiB
Desktop Packaging Guide
Prerequisites
- Install
.NET SDK 10 - Windows installer build only:
- Install
Inno Setup 6(ISCC.exe)
- Install
Local packaging commands
Windows installer (win-x64)
.\scripts\package.ps1 -RuntimeIdentifier win-x64 -Version 1.0.1
Output:
- Published files:
artifacts/publish/win-x64 - Installer:
artifacts/installer
Linux package (linux-x64)
pwsh ./scripts/package.ps1 -RuntimeIdentifier linux-x64 -Version 1.0.1
Output:
- Published files:
artifacts/publish/linux-x64 - Zip package:
artifacts/packages/LanMontainDesktop-1.0.1-linux-x64.zip
macOS package (osx-x64)
pwsh ./scripts/package.ps1 -RuntimeIdentifier osx-x64 -Version 1.0.1
Output:
- Published files:
artifacts/publish/osx-x64 - Zip package:
artifacts/packages/LanMontainDesktop-1.0.1-osx-x64.zip
Optional script flags
# Publish only (skip Windows installer step)
.\scripts\package.ps1 -RuntimeIdentifier win-x64 -SkipInstaller
# Publish only (skip Linux/macOS zip package step)
pwsh ./scripts/package.ps1 -RuntimeIdentifier linux-x64 -SkipArchive
Runtime dependency notes
- Linux build does not bundle a native
libvlcpackage from NuGet.- Install VLC runtime on target machine, for example:
- Ubuntu/Debian:
sudo apt install vlc libvlc-dev
- Ubuntu/Debian:
- Install VLC runtime on target machine, for example:
- macOS packaging target in CI is currently
osx-x64.
CI workflow
- Workflow file:
.github/workflows/windows-ci.yml - Workflow name:
Desktop CI
Jobs:
Validate Build (Windows)runs on every push and pull request.- Package jobs run on manual trigger or
v*tag push:Package Windows(win-x64installer)Package Linux(linux-x64zip)Package macOS(osx-x64zip)
Trigger manual packaging
- Open GitHub Actions.
- Choose
Desktop CI. - Click
Run workflow. - Optional: set
versioninput, for example1.0.1.
Trigger by tag
git tag v1.0.1
git push origin v1.0.1